arunsarin85 opened a new pull request, #10200:
URL: https://github.com/apache/ozone/pull/10200

   ## What changes were proposed in this pull request?
   
   - Add snapshot/snapshot-defrag.robot: Robot Framework tests that exercise 
snapshot behavior while the OM is configured for periodic snapshot defrag in 
the unsecure compose/ozone environment.
   
   - Enable ozone.snapshot.defrag.service.interval only on the OM service in 
docker-compose.yaml 
   
   Please describe your PR in detail:
   snapshot defrag basics from the user-visible side: reads, listing, diff, and 
delete, with waits so background defrag can run.
   
   Scenarios in snapshot-defrag.robot (8 tests):
   
   1. Read snapshot data right after create - New snapshot’s .snapshot path 
matches the file that was stored (/etc/hosts).
   2. After waiting, snapshot and live bucket still match - Add another key on 
the live bucket, wait ~65s, then the first snapshot still has the old content 
and the live key matches /etc/passwd.
   3. Snapshot list still shows active - ozone sh snapshot ls lists the 
snapshot and SNAPSHOT_ACTIVE.
   4. Second snapshot sees all keys so far - Third key + second snapshot; older 
snapshot still only reflects the first key; newer snapshot can read all three 
keys.
   5. snapshot diff starts a new job - CLI diff between the two snapshots shows 
the usual “new job” / --get-report messaging.
   6. snapshot diff JSON lists added keys - --get-report --json completes with 
DONE and lists the keys that appeared after the first snapshot.
   7. Same JSON diff after another wait - Second ~65s wait, then run the JSON 
diff again and still expect the same key paths in the report (stability after 
more defrag time).
   8. Delete older snapshot, younger one still readable - Delete the first 
snapshot; listing shows SNAPSHOT_DELETED; keys are still readable through the 
second snapshot path.
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-15181
   
   ## How was this patch tested?
   
   Robot / Docker: execute_robot_test scm snapshot/snapshot-defrag.robot 
against hadoop-ozone/dist/target/ozone-*/compose/ozone after mvn clean package 
-DskipTests -Pdist (correct /opt/hadoop mount).
   
   <img width="802" height="377" alt="image" 
src="https://github.com/user-attachments/assets/9b97c2d3-b288-48b8-9f93-a764a56f4b37";
 />
   
   
[robot-001.xml](https://github.com/user-attachments/files/27434987/robot-001.xml)
   
   


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