This is an automated email from the ASF dual-hosted git repository.
ivandika3 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 125c05a815c HDDS-17077. Wait for double buffer flush before checking
deletedTable in TestKeyDeletingService (#11573)
125c05a815c is described below
commit 125c05a815c41bc12ed184e12365145191710a38
Author: Siyao Meng <[email protected]>
AuthorDate: Mon Oct 19 19:15:09 2026 -0700
HDDS-17077. Wait for double buffer flush before checking deletedTable in
TestKeyDeletingService (#11573)
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../org/apache/hadoop/ozone/om/service/TestKeyDeletingService.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/service/TestKeyDeletingService.java
b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/service/TestKeyDeletingService.java
index d3c7001ec17..945ba02fb60 100644
---
a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/service/TestKeyDeletingService.java
+++
b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/service/TestKeyDeletingService.java
@@ -252,6 +252,8 @@ void checkIfDeleteServiceIsDeletingKeys()
() -> getDeletedKeyCount() >= initialDeletedCount + keyCount,
100, 10000);
assertThat(getRunCount()).isGreaterThan(initialRunCount);
+ // deletedKeyCount is updated once the purge request is applied, before
the double buffer flushes it to the DB.
+ om.awaitDoubleBufferFlush();
try (ReclaimableKeyFilter filter = new ReclaimableKeyFilter(om,
om.getOmSnapshotManager(),
((OmMetadataManagerImpl)om.getMetadataManager()).getSnapshotChainManager(),
null,
keyManager, om.getMetadataManager().getLock())) {
@@ -432,6 +434,7 @@ void checkDeletedTableCleanUpForSnapshot() throws Exception
{
1000, 100000);
assertThat(getRunCount())
.isGreaterThan(initialRunCount);
+ om.awaitDoubleBufferFlush();
try (ReclaimableKeyFilter filter = new ReclaimableKeyFilter(om,
om.getOmSnapshotManager(),
((OmMetadataManagerImpl)om.getMetadataManager()).getSnapshotChainManager(),
null,
keyManager, om.getMetadataManager().getLock())) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]