You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "swamirishi (via GitHub)" <gi...@apache.org> on 2025/10/30 03:00:37 UTC
[PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
swamirishi opened a new pull request, #9221:
URL: https://github.com/apache/ozone/pull/9221
## What changes were proposed in this pull request?
Change SstFileInfo to track fileName as the name of the file without sst extension similar to CompactionFileInfo and CompactionNode class. Refactor CompactionNode to extend SstFileInfo since it shares all the common fields.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13856
## How was this patch tested?
Added 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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "sreejasahithi (via GitHub)" <gi...@apache.org>.
sreejasahithi commented on code in PR #9221:
URL: https://github.com/apache/ozone/pull/9221#discussion_r2476602011
##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestOmSnapshotManager.java:
##########
@@ -85,7 +85,7 @@
import org.apache.hadoop.ozone.om.snapshot.OmSnapshotLocalDataManager;
import org.apache.hadoop.ozone.om.snapshot.OmSnapshotUtils;
import org.apache.hadoop.util.Time;
-import org.apache.ozone.compaction.log.SstFileInfo;
+import org.apache.ozone.rocksdb.util.SstFileInfo;
Review Comment:
@swamirishi Thanks for working on this,
Could you please make the required changes to testCreateNewSnapshotLocalYaml as it would lead to test failure because the test still expects filenames with .sst, causing mismatch.
--
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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "sreejasahithi (via GitHub)" <gi...@apache.org>.
sreejasahithi commented on PR #9221:
URL: https://github.com/apache/ozone/pull/9221#issuecomment-3466275307
@swamirishi Thanks for working on this,
Could you please make the required changes to `testCreateNewSnapshotLocalYaml` as it would lead to test failure.
--
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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "sreejasahithi (via GitHub)" <gi...@apache.org>.
sreejasahithi commented on code in PR #9221:
URL: https://github.com/apache/ozone/pull/9221#discussion_r2476602011
##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestOmSnapshotManager.java:
##########
@@ -85,7 +85,7 @@
import org.apache.hadoop.ozone.om.snapshot.OmSnapshotLocalDataManager;
import org.apache.hadoop.ozone.om.snapshot.OmSnapshotUtils;
import org.apache.hadoop.util.Time;
-import org.apache.ozone.compaction.log.SstFileInfo;
+import org.apache.ozone.rocksdb.util.SstFileInfo;
Review Comment:
@swamirishi Thanks for working on this,
Could you please make the required changes to `testCreateNewSnapshotLocalYaml` as it would lead to test failure because the test still expects filenames with .sst, causing mismatch.
--
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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "jojochuang (via GitHub)" <gi...@apache.org>.
jojochuang commented on code in PR #9221:
URL: https://github.com/apache/ozone/pull/9221#discussion_r2480419968
##########
hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDiffUtils.java:
##########
@@ -106,7 +107,7 @@ public static void filterRelevantSstFiles(Set<String> inputFiles,
}
@VisibleForTesting
- static boolean shouldSkipNode(CompactionNode node,
+ static boolean shouldSkipNode(SstFileInfo node,
Review Comment:
seems unnecessary change.
--
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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "swamirishi (via GitHub)" <gi...@apache.org>.
swamirishi commented on PR #9221:
URL: https://github.com/apache/ozone/pull/9221#issuecomment-3472948202
Thank you @sreejasahithi and @jojochuang for reviewing 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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "swamirishi (via GitHub)" <gi...@apache.org>.
swamirishi commented on code in PR #9221:
URL: https://github.com/apache/ozone/pull/9221#discussion_r2481128870
##########
hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDiffUtils.java:
##########
@@ -106,7 +107,7 @@ public static void filterRelevantSstFiles(Set<String> inputFiles,
}
@VisibleForTesting
- static boolean shouldSkipNode(CompactionNode node,
+ static boolean shouldSkipNode(SstFileInfo node,
Review Comment:
We would need this change later
--
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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "sreejasahithi (via GitHub)" <gi...@apache.org>.
sreejasahithi commented on code in PR #9221:
URL: https://github.com/apache/ozone/pull/9221#discussion_r2476602011
##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestOmSnapshotManager.java:
##########
@@ -85,7 +85,7 @@
import org.apache.hadoop.ozone.om.snapshot.OmSnapshotLocalDataManager;
import org.apache.hadoop.ozone.om.snapshot.OmSnapshotUtils;
import org.apache.hadoop.util.Time;
-import org.apache.ozone.compaction.log.SstFileInfo;
+import org.apache.ozone.rocksdb.util.SstFileInfo;
Review Comment:
@swamirishi Thanks for working on this,
Could you please make the required changes to `testCreateNewSnapshotLocalYaml` as it would lead to test failure because the test still expects filenames with .sst, causing mismatch.
##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestOmSnapshotManager.java:
##########
Review Comment:
@swamirishi Thanks for working on this,
Could you please make the required changes to `testCreateNewSnapshotLocalYaml` as it would lead to test failure because the test still expects filenames with .sst, causing mismatch.
--
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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "swamirishi (via GitHub)" <gi...@apache.org>.
swamirishi commented on code in PR #9221:
URL: https://github.com/apache/ozone/pull/9221#discussion_r2477963350
##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestOmSnapshotManager.java:
##########
Review Comment:
Done moved the test to TestOmSnapshotLocalDataManager since the code has been refactored in the jira in HDDS-13783
--
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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #9221:
URL: https://github.com/apache/ozone/pull/9221#issuecomment-3479368726
@swamirishi please set fix version when resolving Jira issue after PR merge
--
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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "sreejasahithi (via GitHub)" <gi...@apache.org>.
sreejasahithi commented on code in PR #9221:
URL: https://github.com/apache/ozone/pull/9221#discussion_r2480103907
##########
hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/CompactionNode.java:
##########
@@ -17,34 +17,29 @@
package org.apache.ozone.rocksdiff;
+import java.util.Objects;
import org.apache.ozone.compaction.log.CompactionFileInfo;
+import org.apache.ozone.rocksdb.util.SstFileInfo;
/**
* Node in the compaction DAG that represents an SST file.
*/
-public class CompactionNode {
+public class CompactionNode extends SstFileInfo {
// Name of the SST file
- private final String fileName;
Review Comment:
Could you please remove this comment, as the fileName variable is removed now
--
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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "swamirishi (via GitHub)" <gi...@apache.org>.
swamirishi commented on code in PR #9221:
URL: https://github.com/apache/ozone/pull/9221#discussion_r2481141381
##########
hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/CompactionNode.java:
##########
@@ -17,34 +17,29 @@
package org.apache.ozone.rocksdiff;
+import java.util.Objects;
import org.apache.ozone.compaction.log.CompactionFileInfo;
+import org.apache.ozone.rocksdb.util.SstFileInfo;
/**
* Node in the compaction DAG that represents an SST file.
*/
-public class CompactionNode {
+public class CompactionNode extends SstFileInfo {
// Name of the SST file
- private final String fileName;
Review Comment:
done
--
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
Re: [PR] HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension [ozone]
Posted by "swamirishi (via GitHub)" <gi...@apache.org>.
swamirishi merged PR #9221:
URL: https://github.com/apache/ozone/pull/9221
--
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