hgromer commented on code in PR #7480:
URL: https://github.com/apache/hbase/pull/7480#discussion_r2560107356


##########
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java:
##########
@@ -324,14 +332,15 @@ public void write(ImmutableBytesWritable row, V cell) 
throws IOException {
               }
             }
           }
-          wl = getNewWriter(tableNameBytes, family, conf, favoredNodes);
+          wi = getNewWriter(tableNameBytes, family, conf, favoredNodes);
 
         }
 
         // we now have the proper WAL writer. full steam ahead
         PrivateCellUtil.updateLatestStamp(kv, this.now);
-        wl.writer.append((ExtendedCell) kv);
-        wl.written += length;
+        wi.writer.append((ExtendedCell) kv);
+        wi.written += length;
+        wi.maxSequenceId = Math.max(kv.getSequenceId(), wi.maxSequenceId);

Review Comment:
   Any concerns that `Cell#getSequenceId` is removed in HBase 3? Any plans for 
how we should handle that?



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