clintropolis opened a new pull request, #14130:
URL: https://github.com/apache/druid/pull/14130

   ### Description
   Through a bit of luck, stumbled into a possible bug with broker parallel 
merging on certain java versions which can result in all worker threads 
becoming completely blocked effectively blocking queries.
   
   I have adjusted the `ParallelMergeCombiningSequenceTest` to check that the 
pool becomes idle after a short period whenever an exception occurs. The adjust 
tests fail pretty consistently for me with java 11 and 17, but can repeat 
indefinitely on java 8 and java 20 on my laptop. Some of these timeout tests 
are still ever so slightly racy since the exception message can vary slightly 
depending on which part in the code triggers the timeout exception, but the 
true important part is that previously missing a check that the pool becomes 
idle.
   
   I still haven't determined why this happens, perhaps a java bug or at least 
some issue with how we are trying to configure/use the pool on these versions.
   
   #### Release note
   Broker parallel merge is now disabled for Java versions greater than 8 and 
less than 20 due to a bug with how this mechanism operates on these versions 
that can result in all pool threads becoming blocked effectively halting the 
ability to process most queries. Java 8 and Java 20 do not appear to exhibit 
these symptoms and so still have parallel result merging enabled by default.
   
   
   <hr>
   
   <!-- Check the items by putting "x" in the brackets for the done things. Not 
all of these items apply to every PR. Remove the items which are not done or 
not relevant to the PR. None of the items from the checklist below are strictly 
necessary, but it would be very helpful if you at least self-review the PR. -->
   
   This PR has:
   
   - [ ] been self-reviewed.
      - [ ] using the [concurrency 
checklist](https://github.com/apache/druid/blob/master/dev/code-review/concurrency.md)
 (Remove this item if the PR doesn't have any relation to concurrency.)
   - [ ] added documentation for new or modified features or behaviors.
   - [ ] a release note entry in the PR description.
   - [ ] added Javadocs for most classes and all non-trivial methods. Linked 
related entities via Javadoc links.
   - [ ] added or updated version, license, or notice information in 
[licenses.yaml](https://github.com/apache/druid/blob/master/dev/license.md)
   - [ ] added comments explaining the "why" and the intent of the code 
wherever would not be obvious for an unfamiliar reader.
   - [ ] added unit tests or modified existing tests to cover new code paths, 
ensuring the threshold for [code 
coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md)
 is met.
   - [ ] added integration tests.
   - [ ] been tested in a test Druid cluster.
   


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