uschindler commented on code in PR #15864:
URL: https://github.com/apache/lucene/pull/15864#discussion_r2979541845


##########
lucene/core/src/test/org/apache/lucene/internal/tests/TestTestSecrets.java:
##########
@@ -37,4 +46,70 @@ public void testCannotSet() {
     expectThrows(AssertionError.class, () -> 
TestSecrets.setIndexPackageAccess(null));
     expectThrows(AssertionError.class, () -> 
TestSecrets.setSegmentReaderAccess(null));
   }
+
+  public void testDeadlock() throws Exception {

Review Comment:
   We have a test for the codec/postingsformat deadlock: 
https://github.com/apache/lucene/blob/48379f06383329c1105dbd42e1b59ba608f0a1e3/lucene/core/src/test/org/apache/lucene/codecs/TestCodecLoadingDeadlock.java#L50
   
   This one is using some randomness to trigger different combinations of 
initialization. Maybe we can include the test here. It is realted, as most 
class loading deadlocks occur in Lucene around loading IndexWriter together 
with codecs/postings/docvalues format and.... TestSecrents



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to