shibd commented on PR #15139:
URL: https://github.com/apache/pulsar/pull/15139#issuecomment-1097939550
In order to avoid the same problem, do we need to improve
`ConcurrentOpenHashMap`?
In `ConcurrentHashMap`, The same operation throws an exception, which makes
it easier to spot the problem.
For example below:
```
Map<String, String> map = new ConcurrentHashMap<>();
map.computeIfAbsent("test", (key) -> {
map.remove("test");
return "ok";
});
```
It will throw `java.lang.IllegalStateException: Recursive update`
--
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]