yifan-c commented on code in PR #4514:
URL: https://github.com/apache/cassandra/pull/4514#discussion_r2590543443


##########
test/unit/org/apache/cassandra/schema/SystemDistributedKeyspaceCompressionDictionaryTest.java:
##########
@@ -156,8 +156,8 @@ public void testRetrieveSpecificDictionary() throws 
Exception
         .as("Should retrieve correct dictionary by ID")
         .isEqualTo(testDictionary2.dictId());
 
-        dict1.close();
-        dict2.close();
+        dict1.selfRef().close();
+        dict2.selfRef().close();

Review Comment:
   yeah. It is probably a good idea. 
   I removed `AutoCloseable` from the dictionary interface, thinking it might 
be confusing to have both close and reference count. The `close()` is not 
really close, but just decrement the reference count. 
   I can add just the `close()` method, w/o implementing `Closeable` and 
document the behavior. 



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