We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 840fe43 commit 58dca69Copy full SHA for 58dca69
server/tserver/src/main/java/org/apache/accumulo/tserver/RowLocks.java
@@ -34,6 +34,10 @@
34
35
class RowLocks {
36
37
+ // The compute function in Concurrent Hash Map supports atomic execution of the remapping function
38
+ // and will only execute it once. Properly computing the reference counts relies on this specific
39
+ // behavior. Not all concurrent map implementations have the desired behavior. For example
40
+ // ConcurrentSkipListMap.compute is not atomic and may execute the function multiple times.
41
private final Map<ByteSequence,RowLock> rowLocks = new ConcurrentHashMap<>();
42
43
static class RowLock {
0 commit comments