• unknown's avatar
    Bug#34891 sp_notembedded.test fails sporadically · 77a0a8ac
    unknown authored
    The problem is that since MyISAM's concurrent_insert is on by
    default some concurrent SELECT statements might not see changes
    made by INSERT statements in other connections, even if the
    INSERT statement has returned.
    
    The solution is to disable concurrent_insert so that INSERT
    statements returns after the data is actually visible to other
    statements.
    
    
    mysql-test/r/flush_read_lock_kill.result:
      Restore old value of @@global.concurrent_insert
    mysql-test/r/kill.result:
      Restore old value of @@global.concurrent_insert
    mysql-test/r/sp_notembedded.result:
      Update test case result
    mysql-test/t/flush_read_lock_kill.test:
      Restore old value of @@global.concurrent_insert so it
      doesn't affect other tests.
    mysql-test/t/kill.test:
      Restore old value of @@global.concurrent_insert so it
      doesn't affect other tests.
    mysql-test/t/sp_notembedded.test:
      Disable and restore concurrent_insert value at the end of the
      test case. The test case for Bug 29936 requires that the inserted
      rows need to be visible before a SELECT statement is queued in
      another connection.
      
      Remove sleep at the start of the test, it's not necessary to log
      the result of the processlist command, showing the warnings has
      the same end result.
    77a0a8ac
flush_read_lock_kill.result 384 Bytes