Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v23.3.x] Fix CI failure in test_concurrent_append_flush #15729

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #15271
Fixes: #15728,

Add stable_offset, flushed_offset and merged writes count to the
stream appender.

(cherry picked from commit 664115a)
run_concurrent_append_flush is a fuzzer-like test and we may have
hard-to-diagnose failures there (e.g., see issue redpanda-data#13035) and to help
diagnose it we want to capture
some information from the segment_appender at each step of the
test.

Introduce segment_appender_info to do this.

(cherry picked from commit 4e4a1e3)
Relates to log_segment_appender_test::test_concurrent_append_flush,
which is a fuzzer-style test, and output it when we fail.

In storage_single_thread_rpunit concurrent flush test we now log
test context which will be printed if the test fails. Critically this
includes the seem used to generate the random series of actions to
be performed on the appender.

In addition we generate a single seed per invocation and then use that
seed rather than the random helper methods which use an unspecified
random seed each time.

Finally we record more information about the operations performed in
test and output the full action sequence on failure.

Issue redpanda-data#13035.

(cherry picked from commit b02c28c)
In test_concurrent_append_flush, which is a fuzzer style test,
we now get() all futures returned by flush calls during the fuzz
portion, instead of only the last flush.

It is possible in some cases for prior futures to be unavailable
even after the last future has resolved which caused occasional
CI failures. See 13035 for more analysis.

Fixes redpanda-data#13035.

(cherry picked from commit cc82d0d)
@vbotbuildovich vbotbuildovich added this to the v23.3.x-next milestone Dec 18, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Dec 18, 2023
@piyushredpanda piyushredpanda marked this pull request as ready for review December 18, 2023 18:54
@piyushredpanda
Copy link
Contributor

/dt

@piyushredpanda piyushredpanda merged commit 3646247 into redpanda-data:v23.3.x Dec 19, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants