echonesis commented on code in PR #9689:
URL: https://github.com/apache/ozone/pull/9689#discussion_r2756895905
##########
hadoop-ozone/dist/src/main/compose/ozonesecure-ha/test-repair-tools.sh:
##########
@@ -98,5 +98,14 @@ echo "Test keys created"
echo "Restarting OM after key creation to flush and generate sst files"
docker restart "${om_container}"
+wait_for_om_leader
+
+echo "Deleting test keys to create tombstones"
+docker exec "${om_container}" bash -c "kinit -kt
/etc/security/keytabs/testuser.keytab testuser/[email protected] && ozone fs -rm
-R -skipTrash ofs://omservice/vol1/bucket1"
+echo "Test keys deleted"
+
+echo "Restarting OM after key deletion to flush tombstones to sst files"
+docker restart "${om_container}"
+wait_for_om_leader
Review Comment:
These changes are related - the stricter `Ratis` directory checks affect
startup timing.
The `wait_for_om_leader` ensures proper ordering after container restarts.
--
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]