Repository navigation
Conversation
…aloss The test verifies that an INSERT into an S3-backed table throws when the S3 proxy always fails CompleteMultipartUpload. It was flaky and slow in CI, timing out at the cleanup DROP under the 600s client timeout. Two independent causes: 1. async_insert defaults to true, so the INSERT was routed through the async queue. The client returned after the WaitForAsyncInsert timeout (satisfying pytest.raises), but a background flush kept retry-storming the always-failing proxy and raced the cleanup DROP. The test was designed for the synchronous S3 write-failure path, so disable async_insert on the INSERT to restore those semantics. 2. The disk config set retry_attempts, but S3 disk request settings are read with the s3_ prefix (loadFromConfigForObjectStorage passes setting_name_prefix = "s3_"), so the bare key was silently ignored and the 500-attempt default stayed active. Even synchronously this made the INSERT take about 300s. Rename the key to s3_retry_attempts so the intended cap of 2 attempts takes effect. With both fixes the test fails synchronously in about 6s. Validated with 6/6 passing runs locally (amd_tsan integration image), each call phase 5.5-6.8s.
1 task done
Collaborator
Author
|
cc @kssenii could you review? Test-only fix for the flaky Pre-PR validation gate:
|
Member
|
Wasn't this fixed by reverting #106353? |
Member
|
Indeed, it was. |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The integration test
test_s3_aws_sdk_has_slightly_unreliable_behaviour/test.py::test_datalossis flaky and slow in CI. It times out at the cleanupDROPunder the 600s client timeout, e.g. onIntegration tests (amd_asan_ubsan, db disk, old analyzer).The test asserts that an
INSERTinto an S3-backed table throws when the S3 proxy always failsCompleteMultipartUpload. Two independent causes broke it:async_insertdefaults totrue, so theINSERTwas routed through the async queue. The client returned after theWaitForAsyncInserttimeout (satisfyingpytest.raises), while a background flush kept retry-storming the always-failing proxy and raced the cleanupDROP. The test was written for the synchronous S3 write-failure path, so this disablesasync_inserton theINSERT.The disk config set
retry_attempts, but S3 disk request settings are read with thes3_prefix (loadFromConfigForObjectStoragepassessetting_name_prefix = "s3_"), so the bare key was silently ignored and the 500-attempt default stayed active. Even synchronously this made theINSERTtake about 300s. The key is renamed tos3_retry_attemptsso the intended cap of 2 takes effect.With both fixes the test fails synchronously in about 6s. Validated with 6/6 passing runs locally on the
amd_tsanintegration image, each call phase 5.5-6.8s.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes