saimayithri commented on issue #13358: URL: https://github.com/apache/trafficserver/issues/13358#issuecomment-6874052987
Heyy everyone, I continued investigating the NetHandler lock assertions, focusing on the VIO re-enable path. I was able to reproduce a lock contention scenario where a foreign thread acquires the NetHandler mutex during VIO re-enablement, preventing the owner thread from acquiring it for queue operations and triggering the assertion. I've made a change in `UnixNetVConnection::reenable()` to defer foreign-thread re-enables to the NetHandler's owner thread using the existing enable-list mechanism, while preserving the existing owner-thread paths. I've also added regression tests for these scenarios. The targeted tests, full `test_net` suite (107 cases, 3102 assertions), and additional integration tests are passing. I haven't reproduced the exact production workload, so I can't say for certain that this is the original crash's root cause. I'm planning to submit this as a separate PR, independent of #13362. Before doing so, I'd appreciate your thoughts on the approach. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
