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



##########
File path: 
server/manager/src/main/java/org/apache/accumulo/manager/upgrade/Upgrader9to10.java
##########
@@ -738,33 +739,36 @@ static Path resolveRelativeDelete(String oldDelete, 
String upgradeProperty) {
   /**
    * Remove old temporary map files to prevent problems during recovery.
    */
-  static void dropSortedMapWALFiles(VolumeManager vm) {
-    Path recoveryDir = new Path("/accumulo/recovery");
-    try {
-      if (!vm.exists(recoveryDir)) {
-        log.info("There are no recovery files in /accumulo/recovery");
-        return;
-      }
-      List<Path> directoriesToDrop = new ArrayList<>();
-      for (FileStatus walDir : vm.listStatus(recoveryDir)) {
-        // map files will be in a directory starting with "part"
-        Path walDirPath = walDir.getPath();
-        for (FileStatus dirOrFile : vm.listStatus(walDirPath)) {
-          if (dirOrFile.isDirectory()) {
-            directoriesToDrop.add(walDirPath);
-            break;
+  static void dropSortedMapWALFiles(ServerContext context) {
+    VolumeManager vm = context.getVolumeManager();
+    for (Volume volume : vm.getVolumes()) {
+      Path recoveryDir = volume.prefixChild("/accumulo/recovery");

Review comment:
       Right, forgot about that. I think an IT would have caught that but 
unfortunately I think it's too involved to try and recreate. I will test with 
Uno one more time after we think the changes are solid.




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