hemantk-12 commented on code in PR #6069:
URL: https://github.com/apache/ozone/pull/6069#discussion_r1463873299
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOMRatisSnapshots.java:
##########
@@ -347,6 +347,15 @@ private void checkSnapshot(OzoneManager leaderOM,
OzoneManager followerOM,
Path leaderActiveDir = Paths.get(leaderMetaDir.toString(), OM_DB_NAME);
Path leaderSnapshotDir =
Paths.get(getSnapshotPath(leaderOM.getConfiguration(), snapshotInfo));
+
+ // Get list of live files on the leader.
+ RocksDB activeRocksDB =
((RDBStore)leaderOM.getMetadataManager().getStore()).getDb().getManagedRocksDb()
+ .get();
+ List<String> liveSstFiles = new ArrayList<>();
+ // strip the leading "/".
+ liveSstFiles.addAll(activeRocksDB.getLiveFiles().files.stream().map(s ->
s.substring(1)).collect(
+ Collectors.toList()));
Review Comment:
I also think it should be set for better search.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]