Jackie-Jiang opened a new pull request, #20296:
URL: https://github.com/apache/pinot/pull/20296

   Server startup can deadlock when Helix concurrently opens existing text 
indexes and creates realtime text indexes. Lucene 9.12.0 has a class 
initialization cycle between `IndexWriter`, `TestSecrets`, and 
`ConcurrentMergeScheduler` ([Lucene 
#12419](https://github.com/apache/lucene/issues/12419)). The [compatibility 
failure during rollback to Pinot 
1.5.0](https://github.com/apache/pinot/actions/runs/44070961025/job/133996755187)
 captured this cycle in its thread dump: segment transitions remain blocked and 
server readiness times out.
   
   Initialize `IndexWriter` synchronously before the server starts parallel 
segment loading. The compatibility verifier also uses a Java 11 bootstrap to 
perform the initialization inside each tested server JVM, including older 
releases during initial startup and rollback. Its generated launcher preserves 
the distribution's dependencies, JVM options, arguments, and PID handling. 
Readiness checks and timeouts remain unchanged.
   
   Added standalone launcher regression tests and wired them into compatibility 
CI.
   
   Validation:
   
   - Scoped server reactor build and `BaseServerStarterTest`: 3 tests passed.
   - `python3 compatibility-verifier/test_server_startup.py`: 4 tests passed.
   - `python3 compatibility-verifier/test_server_readiness.py`: 7 tests passed.
   - Fresh-JVM Lucene 9.12.0 reproducer: deadlock observed without 
preinitialization; 20/20 processes completed concurrent index reads and writes 
with preinitialization.
   - Scoped Spotless, Checkstyle, license formatting/checks, shell syntax, and 
diff whitespace checks passed.
   
   The full compatibility suite has not been rerun locally; CI will validate 
the complete upgrade/rollback sequence.
   


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