You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "hemantk-12 (via GitHub)" <gi...@apache.org> on 2023/03/15 00:13:09 UTC

[GitHub] [ozone] hemantk-12 opened a new pull request, #4401: HDDS-8069. [Snapshot] Compaction DAG SST cleanup potentially crashing OM on startup

hemantk-12 opened a new pull request, #4401:
URL: https://github.com/apache/ozone/pull/4401

   ## What changes were proposed in this pull request?
   Problem: As part of jira-[HDDS-7873](https://issues.apache.org/jira/browse/HDDS-7873), we added an optimization to early prune out SST files that won't be needed for compaction DAG base snap diff. More details in [PR-4235](https://github.com/apache/ozone/pull/4235).
   Files are removed from back dir but compaction logs don't get updated because those are needed for DAG traversal based diffing. On OM restart, we count number of keys in the file present in compaction log. It is possible that file has been deleted due to above optimization which is causing OM crash.
   
   This change is to log the exception instead throwing exception on OM restart. It will not affect Compaction DAG based snap diff because If file is not present during diff, it will throw the `FileNotFoundException`.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-8069
   
   ## How was this patch tested?
   Unit tests.
   


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] smengcl merged pull request #4401: HDDS-8069. [Snapshot] Compaction DAG reconstruction logic potentially crashing OM on startup

Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl merged PR #4401:
URL: https://github.com/apache/ozone/pull/4401


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] smengcl commented on a diff in pull request #4401: HDDS-8069. [Snapshot] Compaction DAG SST cleanup potentially crashing OM on startup

Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on code in PR #4401:
URL: https://github.com/apache/ozone/pull/4401#discussion_r1137754052


##########
hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDBCheckpointDiffer.java:
##########
@@ -986,6 +980,8 @@ private CompactionNode addNodeToDAG(String file, String snapshotID,
       numKeys = getSSTFileSummary(file);
     } catch (RocksDBException e) {
       LOG.warn("Can't get num of keys in SST '{}': {}", file, e.getMessage());
+    } catch (FileNotFoundException e) {
+      LOG.info("Can't fine SST '{}'", file, e);

Review Comment:
   ```suggestion
         LOG.info("Can't find SST '{}'", file, e);
   ```



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] smengcl commented on a diff in pull request #4401: HDDS-8069. [Snapshot] Compaction DAG SST cleanup potentially crashing OM on startup

Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on code in PR #4401:
URL: https://github.com/apache/ozone/pull/4401#discussion_r1138232024


##########
hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDBCheckpointDiffer.java:
##########
@@ -208,20 +214,11 @@ public RocksDBCheckpointDiffer(String metadataDir,
           pruneCompactionDagDaemonRunIntervalInMs,
           TimeUnit.MILLISECONDS
       );
+    } else {
+      executor = null;

Review Comment:
   nit
   ```suggestion
         this.executor = null;
   ```



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] smengcl commented on pull request #4401: HDDS-8069. [Snapshot] Compaction DAG reconstruction logic potentially crashing OM on startup

Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on PR #4401:
URL: https://github.com/apache/ozone/pull/4401#issuecomment-1471718668

   Thanks @hemantk-12 for the patch.


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org