While cleaning up qpid-dispatch for a 1.6 follow-on release an intermittent failure in one of the tests was exposed. Analysis of the failure is in https://issues.apache.org/jira/browse/DISPATCH-1322 in an attached text document https://issues.apache.org/jira/secure/attachment/12965891/DISPATCH-1322-analysis.txt
Another part of the cleanup was fixing the failing test to better report what went wrong. See https://issues.apache.org/jira/browse/DISPATCH-1318
These issues happened using qpid-proton master @9ff0a. Temporarily the qpid-proton version was reverted to branch 0.27.x @560ba. Using proton 0.27.x branch the qpid-dispatch self test does not fail. It passed several thousand times in a loop. Moving proton back to the master branch brought the dispatch failures back.
From the qpid-dispatch perspective this issue is serious. If a receiver detaches a link while a sender is sending to it then the sender may lose a disposition.
No attempt yet has been made to bisect proton to see where the different behavior starts showing up. That may be the next best avenue of research.
Another theory for the error is that qpid-dispatch has been mishandling links all along.
To help expose the problem one may clone https://github.com/ChugR/qpid-dispatch , or add it as a remote, and then check out branch
DISPATCH-1318-cwip. Test system_tests_edge_router has been gutted to run only test_12 in a loop and to print details of the error(s).
ctest -VV -R edge