swamirishi commented on code in PR #9131:
URL: https://github.com/apache/ozone/pull/9131#discussion_r2465455123


##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOMDbCheckpointServletInodeBasedXfer.java:
##########
@@ -586,6 +592,119 @@ public void testBootstrapLockBlocksMultipleServices() 
throws Exception {
     assertTrue(servicesSucceeded.get() > 0, "Services should have succeeded 
after lock release");
   }
 
+  /**
+   * Tests the full checkpoint servlet flow to ensure snapshot paths are read
+   * from checkpoint metadata (frozen state) rather than live OM metadata 
(current state).
+   * Scenario:
+   * 1. Create snapshots S1, S2
+   * 2. Create Snapshot S3
+   * 3. Checkpoint is created (freezes state with S1, S2)
+   * 4. S2 gets purged from live OM (after checkpoint creation)
+   * 5. Servlet processes checkpoint - should still include S2 data
+   */
+  @Test
+  public void testCheckpointIncludesSnapshotsFromFrozenState() throws 
Exception {

Review Comment:
   nit: Do we need a mini ozone cluster test case for this? I believe we can do 
with a unit test case here instead of a full mini ozone cluster test. We can 
think about moving this test into unit test 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: [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]

Reply via email to