Skip to content

Commit e2c6921

Browse files
committed
Disable revoking individual node grants on close until ES-10920 is fixed
1 parent 95eb04b commit e2c6921

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/framework/src/main/java/org/elasticsearch/entitlement/bootstrap/TestEntitlementsRule.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,10 @@ private static Path absolutePath(String path) {
191191

192192
@Override
193193
public void close() {
194-
onClose.accept(this);
194+
// wipePendingDataDirectories in tests requires entitlement delegation to work as this uses server's FileSystemUtils.
195+
// until ES-10920 is solved, node grants cannot be removed until the test suite completes unless explicitly removing all node
196+
// grants using revokeNodeGrants where feasible.
197+
// onClose.accept(this);
195198
}
196199

197200
@Override

test/framework/src/main/java/org/elasticsearch/node/MockNode.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ public synchronized boolean awaitClose(long timeout, TimeUnit timeUnit) throws I
296296
try {
297297
return super.awaitClose(timeout, timeUnit);
298298
} finally {
299-
// wipePendingDataDirectories requires entitlement delegation to work due to this using FileSystemUtils ES-10920
300299
IOUtils.closeWhileHandlingException(entitlementGrant);
301300
}
302301
}

0 commit comments

Comments
 (0)