1. 22 Mar, 2007 21 commits
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: manipulate some things to get infrastructure for event timeouts · 7652e96f
      unknown authored
      Index: ndb-work/storage/ndb/src/mgmsrv/MgmtSrvr.cpp
      ===================================================================
      
      
      storage/ndb/src/mgmsrv/ERROR_codes.txt:
        WL#3704 mgmapi timeouts: manipulate some things to get infrastructure for event timeouts
      storage/ndb/src/mgmsrv/MgmtSrvr.cpp:
        WL#3704 mgmapi timeouts: manipulate some things to get infrastructure for event timeouts
      storage/ndb/src/mgmsrv/Services.cpp:
        WL#3704 mgmapi timeouts: manipulate some things to get infrastructure for event timeouts
      storage/ndb/test/ndbapi/testMgm.cpp:
        WL#3704 mgmapi timeouts: manipulate some things to get infrastructure for event timeouts
      7652e96f
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: renumber mgmd err insert to not have duplicates. · 80220f70
      unknown authored
      Also add an ERROR_codes.txt file for mgmd
      
      Index: ndb-work/storage/ndb/src/mgmsrv/ERROR_codes.txt
      ===================================================================
      
      
      storage/ndb/src/mgmsrv/Services.cpp:
        WL#3704 mgmapi timeouts: renumber mgmd err insert to not have duplicates.
      storage/ndb/test/ndbapi/testMgm.cpp:
        WL#3704 mgmapi timeouts: renumber mgmd err insert to not have duplicates.
      storage/ndb/src/mgmsrv/ERROR_codes.txt:
        WL#3704 mgmapi timeouts: renumber mgmd err insert to not have duplicates.
      80220f70
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi · 446e5b36
      unknown authored
      In ndb_mgm_call, add checks for expired timeout in (Input|Output)Stream.
      In case of timeout, we set NdbMgmHandle->last_error and return NULL.
      
      In api calls not using ndb_mgm_call (or using it in conjunction with
      own IO), they'll need to check for timeouts manually. Macros are provided
      to do this.
      
      Add ndb_mgm_disconnect_quiet(h) to disconnect without checking errors
      (so we don't clobber NdbMgmHandle->last_error). This helps us provide
      the *consistent* semantic that on timeout we leave the NdbMgmHandle
      *disconnected*. We check for this in testMgm.
      
      Change CHECK_REPLY in mgmapi to also check for set error in handle->last_error
      This will pick up the ETIMEDOUT errors and return them to client (through
      returning correct failure code for API call and setting NdbMgmHandle error).
      Applications written to MGMAPI before this patch will behave as before,
      and even hopefully check get_last_error and report the error back to the
      end user!
      
      Adding the last CHECK_TIMEDOUT_RET and delete in ndb_mgm_call() we
      slightly change behaviour of mgmapi. Previously, if disconnect
      midway through a reply, where there were only optional parameters left,
      we'd get a Properties object from ndb_mgm_call() containing NULLs for
      the optional parameters, leading to interesting error messages. This
      enables the returning of the *real* message and actually improves the API
      without breaking compatibility.
      
      ndb_mgm_start_signallog
      ndb_mgm_stop_signallog
      ndb_mgm_log_signals
      ndb_mgm_set_trace
      ndb_mgm_insert_error
      ndb_mgm_set_int64_parameter [1]
      ndb_mgm_set_string_parameter [1]
      ndb_mgm_purge_stale_sessions [2]
       - return error code on error during ndb_mgm_call
      
      TODO:
      ndb_mgm_report_event [2]
      
      [1] marked for removal, unused.
      [2] return codes incorrect in CHECK_HANDLE/CONNECTED. undocumented.
      
      
      Server side:
       in Services (per session) add macro for injecting timeout error
       (just waiting 10 seconds before continuing... it does work!)
      
       We inject these errors in a number of critical places - including
       the tricky api functions that don't just use ndb_mgm_call but do
       their own thing (get_config, get_status and friends)
      
      ATRT:
       Expand testMgm to add timout tests for API. Fully automated.
       *THEORETICALLY* timing dependent - an ultra-slow network will
       cause problems and "fake" failures... I welcome other solutions.
      
       Tests aren't exhaustive, but cover the generics and the tricky bits.
       Also test some calling semantics (incl disconnected on error).
      
       It is encouraged to add *more* mgmapi tests, not less :)
      
      InputStream:
        Fix where timedout error is set
      
      
      Index: ndb-work/storage/ndb/src/mgmapi/mgmapi.cpp
      ===================================================================
      
      
      storage/ndb/src/common/util/InputStream.cpp:
        WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi
      storage/ndb/src/mgmapi/mgmapi.cpp:
        WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi
      storage/ndb/src/mgmapi/mgmapi_internal.h:
        WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi
      storage/ndb/src/mgmsrv/Services.cpp:
        WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi
      storage/ndb/test/ndbapi/testMgm.cpp:
        WL#3704 mgmapi timeouts: Return sane errors for timeout in mgmapi
      446e5b36
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Add bool timeout flag to Streams · 8293b317
      unknown authored
      Index: ndb-work/storage/ndb/include/util/InputStream.hpp
      ===================================================================
      
      
      storage/ndb/include/util/InputStream.hpp:
        WL#3704 mgmapi timeouts: Add bool timeout flag to Streams
      storage/ndb/include/util/OutputStream.hpp:
        WL#3704 mgmapi timeouts: Add bool timeout flag to Streams
      storage/ndb/src/common/util/InputStream.cpp:
        WL#3704 mgmapi timeouts: Add bool timeout flag to Streams
      storage/ndb/src/common/util/OutputStream.cpp:
        WL#3704 mgmapi timeouts: Add bool timeout flag to Streams
      storage/ndb/src/mgmsrv/Services.cpp:
        WL#3704 mgmapi timeouts: Add bool timeout flag to Streams
      storage/ndb/test/ndbapi/testMgm.cpp:
        WL#3704 mgmapi timeouts: Add bool timeout flag to Streams
      8293b317
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Rename inputstream timeout · 45f698c5
      unknown authored
      Index: ndb-work/storage/ndb/include/util/InputStream.hpp
      ===================================================================
      
      
      storage/ndb/include/util/InputStream.hpp:
        WL#3704 mgmapi timeouts: Rename inputstream timeout
      storage/ndb/src/common/util/InputStream.cpp:
        WL#3704 mgmapi timeouts: Rename inputstream timeout
      45f698c5
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: add ndb_mgm_set_timeout(h,ms) · ef41a27c
      unknown authored
      Add not so neat set_timeout call to make testMgm work
      
      Index: ndb-work/storage/ndb/include/mgmapi/mgmapi.h
      ===================================================================
      
      
      storage/ndb/include/mgmapi/mgmapi.h:
        WL#3704 mgmapi timeouts: add ndb_mgm_set_timeout(h,ms)
      storage/ndb/src/mgmapi/mgmapi.cpp:
        WL#3704 mgmapi timeouts: add ndb_mgm_set_timeout(h,ms)
      storage/ndb/test/ndbapi/testMgm.cpp:
        WL#3704 mgmapi timeouts: add ndb_mgm_set_timeout(h,ms)
      ef41a27c
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: Add ndb_mgmd error injection · b3dd80dd
      unknown authored
      Add error injection either for this connection or for whole server.
      
      Currently nothing for injecting errors into *another* connection... but that's
      perhaps getting tricky-dicky for this point in time. Perhaps needed for events
      if we don't do anything fancy.
      
      Index: ndb-work/storage/ndb/src/mgmsrv/MgmtSrvr.cpp
      ===================================================================
      
      
      storage/ndb/src/mgmsrv/MgmtSrvr.cpp:
        WL#3704 mgmapi timeouts: Add ndb_mgmd error injection
      storage/ndb/src/mgmsrv/MgmtSrvr.hpp:
        WL#3704 mgmapi timeouts: Add ndb_mgmd error injection
      storage/ndb/src/mgmsrv/Services.cpp:
        WL#3704 mgmapi timeouts: Add ndb_mgmd error injection
      storage/ndb/src/mgmsrv/Services.hpp:
        WL#3704 mgmapi timeouts: Add ndb_mgmd error injection
      storage/ndb/test/ndbapi/testMgm.cpp:
        WL#3704 mgmapi timeouts: Add ndb_mgmd error injection
      b3dd80dd
    • unknown's avatar
      [PATCH] WL#3704 mgmapi timeouts: use NdbMgmHandle write_timeout · 9f10e20f
      unknown authored
      Start using the write_timeout we already have in NdbMgmHandle
      
      Index: ndb-work/storage/ndb/src/mgmapi/mgmapi.cpp
      ===================================================================
      
      
      storage/ndb/src/mgmapi/mgmapi.cpp:
        WL#3704 mgmapi timeouts: use NdbMgmHandle write_timeout
      9f10e20f
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb · 582b0ba8
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
      
      
      storage/ndb/test/ndbapi/testNodeRestart.cpp:
        Auto merged
      582b0ba8
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca · 5118e111
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
      
      
      storage/ndb/test/ndbapi/testNodeRestart.cpp:
        Auto merged
      5118e111
    • unknown's avatar
      ndb - · ec2639f4
      unknown authored
        fix testprg
      
      
      storage/ndb/test/ndbapi/testNodeRestart.cpp:
        fix testprg
      ec2639f4
    • unknown's avatar
      ndb - fix test prg · c2bb8446
      unknown authored
      c2bb8446
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/50-work · f9771a0a
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
      
      
      f9771a0a
    • unknown's avatar
      ndb - · 4dee1e6a
      unknown authored
        fix test prg
      
      
      ndb/test/ndbapi/testNodeRestart.cpp:
        fix test prg
      4dee1e6a
    • unknown's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb · 7403890a
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      storage/ndb/src/mgmsrv/MgmtSrvr.cpp:
        Auto merged
      7403890a
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0-maint · 4e288dc3
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
      
      
      4e288dc3
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-maint · e4903c29
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      e4903c29
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1 · 04c8e7e4
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      04c8e7e4
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 8f69cbdb
      unknown authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
      
      
      8f69cbdb
    • unknown's avatar
      Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/50 · fd2996ad
      unknown authored
      into  quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/51
      
      
      fd2996ad
    • unknown's avatar
      Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.1 · b636ad25
      unknown authored
      into  quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/51
      
      
      include/my_global.h:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/help.result:
        Auto merged
      mysql-test/t/help.test:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      b636ad25
  2. 21 Mar, 2007 19 commits
    • unknown's avatar
      Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.0-runtime · b203723b
      unknown authored
      into  quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/50
      
      
      b203723b
    • unknown's avatar
      Update the result file with an updated comment. · 8ed9a540
      unknown authored
      8ed9a540
    • unknown's avatar
      Merge bodhi.local:/opt/local/work/mysql-5.0-runtime · c4311efa
      unknown authored
      into  bodhi.local:/opt/local/work/mysql-5.1-runtime
      
      
      c4311efa
    • unknown's avatar
      Try to fix events_logs_tests race on Windows. · 20fd65ff
      unknown authored
      
      mysql-test/t/events_logs_tests.test:
        Try to fix a race condition that breaks this test on Windows.
      20fd65ff
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1 · 817442e8
      unknown authored
      into  bodhi.local:/opt/local/work/mysql-5.1-runtime
      
      
      817442e8
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 54a0f623
      unknown authored
      into  bodhi.local:/opt/local/work/mysql-5.0-runtime
      
      
      54a0f623
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint · e772a22d
      unknown authored
      into  recycle.(none):/src/bug27144/my50-bug27144
      
      
      e772a22d
    • unknown's avatar
      Merge recycle.(none):/src/bug27144/my50-bug27144 · 9e6d54e4
      unknown authored
      into  recycle.(none):/src/bug27144/my51-bug27144
      
      
      mysql-test/t/sp-destruct.test:
        SCCS merged
      9e6d54e4
    • unknown's avatar
      Bug#27144 sp-destruct.test is disabled on Windows · 65c34cc8
      unknown authored
      - Update test to run properly on Windows.
      
      
      mysql-test/t/sp-destruct.test:
        Bug#27144 sp-destruct.test is disabled on Windows
        - Enabled test on Windows.
        - Replaced non-portable system commands (mkdir, rmdir, mv, cp, echo) 
        with the mysqltest builtin commands.
        - Replace Windows directory seperator in error ER_NOT_FROM_FILE with
        posix directory seperator for single test/result pair.
      65c34cc8
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint · 4390f788
      unknown authored
      into  recycle.(none):/src/bug23736/my50-bug23736
      
      
      4390f788
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new-maint · 26088046
      unknown authored
      into  recycle.(none):/src/bug23736/my51-bug23736
      
      
      26088046
    • unknown's avatar
      Fix warnings on Windows. · 858ff638
      unknown authored
      
      sql/event_data_objects.cc:
        Fix Windows 64 bit build warnings. No better fix exists at the moment.
      858ff638
    • unknown's avatar
      Fix a broken merge. · 33a51fd8
      unknown authored
      
      scripts/mysql_system_tables.sql:
        Add time_zone to the list of mysql.event columns.
      scripts/mysql_system_tables_fix.sql:
        Update after a bad merge: now mysql_system_tables_fix contains
        only alter definitions, no CREATE definitions (single definition
        source approach that was implemented by Magnus).
      33a51fd8
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb · a1368c8e
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
      
      
      a1368c8e
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca · 2d3b2458
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
      
      
      storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      2d3b2458
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/50-work · b278b210
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
      
      
      storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Auto merged
      b278b210
    • unknown's avatar
      ndb - bug#27283 · f5acedb6
      unknown authored
          Additional fix for 2-node case
      
      
      ndb/src/kernel/blocks/dbdih/Dbdih.hpp:
        Add error insert ref for errcode = 7181
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Make GSN_GCP_NODEFINISH always be sent to DIH node requesting it
      ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Make GSN_GCP_NODEFINISH always be sent to DIH node requesting it
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Make GSN_GCP_NODEFINISH always be sent to DIH node requesting it
      f5acedb6
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint · d344d81c
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint
      
      
      BitKeeper/etc/ignore:
        auto-union
      BitKeeper/deleted/.del-init_db.sql~e2b8d0c8390e8023:
        Auto merged
      BitKeeper/deleted/.del-test_db.sql:
        Auto merged
      scripts/make_binary_distribution.sh:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_acl.h:
        Auto merged
      mysql-test/install_test_db.sh:
        Manual merge
      mysql-test/mysql-test-run.pl:
        Manual merge
      netware/Makefile.am:
        Manual merge
      d344d81c
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0-maint · 2176fef4
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
      
      
      BitKeeper/etc/ignore:
        auto-union
      BitKeeper/deleted/.del-init_db.sql~e2b8d0c8390e8023:
        Auto merged
      BitKeeper/deleted/.del-test_db.sql:
        Auto merged
      mysql-test/install_test_db.sh:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      scripts/make_binary_distribution.sh:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_acl.h:
        Auto merged
      netware/Makefile.am:
        Manual merge
      2176fef4