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

De-flake TestNoRaceJetStreamClusterGhostConsumers #5985

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

MauriceVanVeen
Copy link
Member

Consumer removal has exponential backoff starting from startInterval moving all the way up to max 5 minutes. This lowers that max for these tests.

Signed-off-by: Maurice van Veen github@mauricevanveen.com

@MauriceVanVeen
Copy link
Member Author

CI just demonstrated it can still flake after this.. will need to investigate further.

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison
Copy link
Member

Let me know when you convert off of draft..

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen force-pushed the maurice/de-flake-js-cluster-ghost-consumers branch from 8c61cad to 06fda16 Compare October 15, 2024 20:44
Copy link
Member Author

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

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

Made one additional change, both CI jobs now passed first try as well.
Marking ready for review.

@@ -6675,8 +6677,10 @@ func TestNoRaceJetStreamClusterGhostConsumers(t *testing.T) {
time.Sleep(5 * time.Second)
cancel()

checkFor(t, 30*time.Second, time.Second, func() error {
m, err := nc.Request("$JS.API.CONSUMER.LIST.TEST", nil, time.Second)
subj := fmt.Sprintf(JSApiConsumerListT, "TEST")
Copy link
Member Author

Choose a reason for hiding this comment

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

Made consistent with TestJetStreamClusterGhostEphemeralsAfterRestart now as well.

@MauriceVanVeen MauriceVanVeen marked this pull request as ready for review October 15, 2024 21:07
@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner October 15, 2024 21:07
@derekcollison derekcollison merged commit a39bcf9 into main Oct 15, 2024
5 checks passed
@derekcollison derekcollison deleted the maurice/de-flake-js-cluster-ghost-consumers branch October 15, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants