removed the null check on `knownSegments`

> and this can cause the race condition if we remove `lock` of this class

But I am not removing the `lock` here, so don't understand where is the race 
condition then ?

> Why not use `computeIfAbsent()`?

It seems `computeIfAbsent()` also calls `doGet()`. Why do you think, this will 
not cause race condition if we remove the `lock`

[ Full content available at: 
https://github.com/apache/incubator-druid/pull/6094 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to