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

   deadlock was happening as:
   * `markCacheSynced` holds `datasourceToSegmentCache` lock; waits 
`HeapMemoryDatasourceSegmentCache` for an empty one
   * `writeCacheForDataSource` acquires `HeapMemoryDatasourceSegmentCache` lock 
and tries to `HeapMemorySegmentMetadataCache#getCacheWithReference` which needs 
the  `datasourceToSegmentCache` lock
   
   tests like `KafkaClusterMetricsTest` may start hanging due to this
   
   see stacktrace and repro 
[here](https://github.com/apache/druid/commit/0656c91f56b905d21a84f0bcd13194ea94bbbf75#diff-a78f4b6325af1f9555e1c62fb2d0a06020dcad2c6c821aea3f9460b646a32862)
   


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