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

Fix ControllerEraseTest.test_erase_controller_log #8400

Merged
merged 4 commits into from
Jan 26, 2023

Conversation

VadimPlh
Copy link
Contributor

@VadimPlh VadimPlh commented Jan 25, 2023

This pr added new admin_api request, which returns last_applied_offset and commited_index for controller log. And test now delete all segment with start_offset > last_applied_offset

Problem in test was:

Test delete last segment from disk and after startup node should signal that last_applied_offset does not present on the disk.
But in this test run node only replicated last controller log segment, but not applied it. So last_applied_offset was from another segment on the disk, which test did not delete.

Fixes #8217

Backports Required

  • none - not a bug fix
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v22.3.x
  • v22.2.x
  • v22.1.x

UX Changes

  • none

Release Notes

  • new admin_api request /v1/debug/controller_status

src/v/redpanda/admin_server.cc Outdated Show resolved Hide resolved
tests/rptest/tests/controller_erase_test.py Outdated Show resolved Hide resolved
jcsp
jcsp previously approved these changes Jan 25, 2023
@VadimPlh
Copy link
Contributor Author

Failure #8179

@piyushredpanda piyushredpanda merged commit 1a28daa into redpanda-data:dev Jan 26, 2023
@VadimPlh
Copy link
Contributor Author

/backport v22.3.x

@vbotbuildovich
Copy link
Collaborator

Failed to run cherry-pick command. I executed the below command:

git cherry-pick -x 81da9f4b2b86425abbafd8f011cc0cf9193955d5 7f141bf54d4b8d5557b68683beeba70faa2805e0 acca5ef0d0465142f95e21e84b781ebc56714e9a 5d6a92d057d466bb260b962896a1fcba03d48b3a

Workflow run logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI Failure (search victim assert) in ControllerEraseTest.test_erase_controller_log
4 participants