Comment 1 for bug 1411532

Revision history for this message
Mike Hanlon (mike-hanlon) wrote :

MS tracing and gdb confirm that the following is happening:

Thread 1 opens $ZSM000 with 0x400 option, to obtain fnum 2
Thread 1 does BWRITEREADX on fnum 2 (“query started message”) and starts executing the query.
Thread 2 does BWRITEREADX on fnum 2 (“query finished message”)
Thread 2 does BAWAITIOXTS on fnum -2 and gets the reply to the “query finished message”.
Thread 2 does BAWAITIOXTS on fnum -2 and on fnum 2 and eventually times out, and aborts leaving the stack trace show in the bug description.

The final BAWAITIOXTS will not get the completion of the “query started message”, even though the server has replied. This is consistent with thread safe completion, as confirmed by Dave.