Apache9 commented on code in PR #7741:
URL: https://github.com/apache/hbase/pull/7741#discussion_r2807122517


##########
hbase-common/src/main/java/org/apache/hadoop/hbase/io/TagCompressionContext.java:
##########
@@ -127,6 +159,20 @@ public void uncompressTags(InputStream src, byte[] dest, 
int offset, int length)
     }
   }
 
+  private byte[] getDeferredOrDictEntry(short dictIdx) {
+    if (deferAdditions) {
+      int deferredIdx = dictIdx - deferredBaseIndex;

Review Comment:
   Is this algorithm always right?
   
   The Dictionary interface does not guarantee that the newly added entry will 
have the current size as its index, and in the implementation, LRUDictionary 
may move entries when it is being accessed...



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

Reply via email to