• Sergey Vojtovich's avatar
    MDEV-21599 - plugins.server_audit fails sporadically in buildbot · 06219c2a
    Sergey Vojtovich authored
    Fixed a couple of race conditions in the test case to ensure stable order
    of events. Also removed all sleeps. Test execution time is down from 18s
    to 0.15s.
    
    On disconnect audit event is triggered after control is returned to
    mysqltest client. Which means mysqltest may issue more commands
    concurrently before disconnect is actually logged.
    
    Similar problem happens with regular query execution: an event is
    triggered after control is returner to the client. Which may end
    up with unstable order of events in different connections.
    
    Delayed insert rows are enqueued separately and can either be combined
    into single event or go as separate events. Reduced number of inserted
    rows to 1 to stabilize result.
    
    Also backported 2b3f6ab4 from 10.5.
    06219c2a
server_audit.test 5.47 KB