Gabriel39 commented on code in PR #71239:
URL: https://github.com/apache/doris/pull/71239#discussion_r4784833349
##########
docker/thirdparties/docker-compose/iceberg/encryption/IcebergEncryptionFixture.java:
##########
@@ -245,6 +399,26 @@ private void proxyKms(HttpExchange request) throws
IOException {
+ "\"message\":\"Fixture decrypt permission
revoked\"}");
return;
}
+ // One immutable snapshot prevents concurrent requests from mixing
modes and budgets.
+ KmsFault fault = kmsFault.getAndUpdate(value -> value.remaining()
> 0
+ ? new KmsFault(value.mode(), value.delayMillis(),
value.remaining() - 1) : value);
+ if (fault.delayMillis() > 0) {
Review Comment:
Fixed in 780bd93b15da.
Delay only the immutable fault reservation whose remaining budget is
positive. The fixture now exposes a delayedRequests counter, and the native
integration suite checks that one throttle delays exactly once, its successful
retry does not delay, and a later zero-budget request adds no delay. The
assertions use counters rather than a wall-clock threshold. An actual JFR
control with valid ciphertext confirms zero versus one server sleep across
three direct decrypt requests per phase.
##########
regression-test/suites/external_table_p0/iceberg/test_iceberg_encryption_native_read_integration.groovy:
##########
@@ -197,11 +360,44 @@ suite("test_iceberg_encryption_native_read_integration",
"p0,external,nonConcurr
assertEquals([1, 2, 3, 4], (sql "SELECT id FROM ${encrypted} ORDER
BY id").collect { it[0] as Integer })
assertEquals(4L, (sql "SELECT COUNT(*) FROM ${encrypted}")[0][0]
as Long)
}
+ long beforeRestart = fixture("/kms/access", "GET").decryptRequests as
Long
+ restartFrontend.call()
Review Comment:
Fixed in 780bd93b15da.
Always attempt both KMS restoration actions, then run SQL cleanup only if
the active child JDBC connection is live. Cleanup preserves the original
restart/reconnect failure and suppresses secondary cleanup failures;
cleanup-only failures still fail the suite. The enclosing connection/process
cleanup follows the same rule. Four framework tests cover closed JDBC,
suppressed SQL failure, continued KMS restoration and cleanup-only failure.
--
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]