milleruntime commented on a change in pull request #2117:
URL: https://github.com/apache/accumulo/pull/2117#discussion_r648512335



##########
File path: 
server/tserver/src/main/java/org/apache/accumulo/tserver/log/SortedLogRecovery.java
##########
@@ -61,56 +66,58 @@
 
   private static final Logger log = 
LoggerFactory.getLogger(SortedLogRecovery.class);
 
-  private VolumeManager fs;
+  private final ServerContext context;
 
-  public SortedLogRecovery(VolumeManager fs) {
-    this.fs = fs;
+  public SortedLogRecovery(ServerContext context) {
+    this.context = context;
   }
 
-  static LogFileKey maxKey(LogEvents event) {
+  static LogFileKey maxKey(LogEvents event, KeyExtent extent) {
     LogFileKey key = new LogFileKey();
     key.event = event;
     key.tabletId = Integer.MAX_VALUE;
     key.seq = Long.MAX_VALUE;
+    key.tablet = extent;

Review comment:
       I did some refactoring in 6a94527457491cd0ff165122b93bfead6b9de85b so I 
could call formatRow for the range as well. Then I was able to drop the dummy 
value for filename.

##########
File path: 
server/tserver/src/main/java/org/apache/accumulo/tserver/log/SortedLogRecovery.java
##########
@@ -61,56 +66,58 @@
 
   private static final Logger log = 
LoggerFactory.getLogger(SortedLogRecovery.class);
 
-  private VolumeManager fs;
+  private final ServerContext context;
 
-  public SortedLogRecovery(VolumeManager fs) {
-    this.fs = fs;
+  public SortedLogRecovery(ServerContext context) {
+    this.context = context;
   }
 
-  static LogFileKey maxKey(LogEvents event) {
+  static LogFileKey maxKey(LogEvents event, KeyExtent extent) {
     LogFileKey key = new LogFileKey();
     key.event = event;
     key.tabletId = Integer.MAX_VALUE;
     key.seq = Long.MAX_VALUE;
+    key.tablet = extent;

Review comment:
       Sorry I missed the extent change so removed in 18a8e41




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to