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 for CI Failure (Failed bounds check: offset 1823 not consumable) in DeleteRecordsTest.test_delete_records_segment_deletion #14434

Merged

Conversation

graphcareful
Copy link
Contributor

@graphcareful graphcareful commented Oct 25, 2023

Backports Required

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

Release Notes

  • none

- Adds a retry when calling rpk consume, it may be the case due to a
concurrent node failure that rpk will not retry and return an error,
causing the test to fail.

- Fixes: redpanda-data#14151
Copy link
Contributor

@rockwotj rockwotj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should RPK itself have retries built in?

@graphcareful
Copy link
Contributor Author

Should RPK itself have retries built in?

Not really sure, I asked Travis, here is the relevant thread https://redpandadata.slack.com/archives/C04LYNJQUGN/p1697207759960509

Copy link
Contributor

@rockwotj rockwotj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small nit otherwise LGTM

except Exception as _:
return False
retries = 3
while retries > 0:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the wait until helper here and in the other place?

def check_bounds():
  r = self.rpk.consume(...)
  return r.count('_') == 1

wait_until(
            check_bounds,
            timeout_sec=5,
            backoff_sec=1,
            err_msg=f"rob's awesome error message here",
            retry_on_exc=True,
        )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think with retry_on_exc we can , sure

@vbotbuildovich
Copy link
Collaborator

new failures detected in https://buildkite.com/redpanda/redpanda/builds/39805#018b688d-0e6c-4c60-bca0-f0773581563f: "rptest.tests.topic_recovery_test.TopicRecoveryTest.test_time_based_retention.cloud_storage_type=CloudStorageType.S3"

@piyushredpanda
Copy link
Contributor

#13547 seems to be the failure.

@piyushredpanda piyushredpanda merged commit d830494 into redpanda-data:dev Oct 26, 2023
11 checks passed
@vbotbuildovich
Copy link
Collaborator

/backport v23.2.x

@vbotbuildovich
Copy link
Collaborator

Failed to create a backport PR to v23.2.x branch. I tried:

git remote add upstream https://github.com/redpanda-data/redpanda.git
git fetch --all
git checkout -b backport-pr-14434-v23.2.x-808 remotes/upstream/v23.2.x
git cherry-pick -x fc3837ed7f0839120987d9c9b47849f2708f21dc

Workflow run logs.

@graphcareful
Copy link
Contributor Author

Something wrong happened here, I thought I force pushed guess i didn't then work that wasn't ready was merged

@graphcareful
Copy link
Contributor Author

I will open a new PR

@rockwotj
Copy link
Contributor

rockwotj commented Oct 27, 2023

Happy to review 👍

graphcareful pushed a commit to graphcareful/redpanda that referenced this pull request Oct 27, 2023
- PR redpanda-data#14434 was merged too early before edits were made, this change
represents the intended edits that were not force-pushed before merge.
graphcareful pushed a commit to graphcareful/redpanda that referenced this pull request Nov 28, 2023
- PR redpanda-data#14434 was merged too early before edits were made, this change
represents the intended edits that were not force-pushed before merge.

(cherry picked from commit 1f12a7f)
@graphcareful graphcareful mentioned this pull request Nov 28, 2023
7 tasks
graphcareful pushed a commit to graphcareful/redpanda that referenced this pull request Nov 28, 2023
- PR redpanda-data#14434 was merged too early before edits were made, this change
represents the intended edits that were not force-pushed before merge.

(cherry picked from commit 1f12a7f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants