java - Handling strategy for (ER_QUERY_INTERRUPTED) on mysql -
i'm writing infrastructure library our mysql servers. 1 of scenarios have handle temporary disconnection mysql server.
the test scenario start around 100000 inserts db , , stop db , bring back.
during scenario i'm obiously getting er_query_interrupted error on queries running during stop. question is:
can assume state of db (like query not started) or regard undefined behaiviour , drop problem down chain user?
well after testing following answears appeared. (and people) use innodb default mode transaction . because of if er_query_interrupted send client , query on server rolled . due error handling strategy in case resubmit queries such error.
Comments
Post a Comment