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

Add test that shows clfs behavior on dups #5181

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Mar 6, 2024

No description provided.

@wallyqs wallyqs requested a review from a team as a code owner March 6, 2024 20:27
Base automatically changed from neil/clseq to main March 6, 2024 22:48
server/jetstream_cluster_3_test.go Outdated Show resolved Hide resolved
@derekcollison
Copy link
Member

I think the test we want stays under any snapshot limits. Had lots of CLFS increments and then switches leaders.

Signed-off-by: Waldemar Quevedo <wally@nats.io>
var wg sync.WaitGroup

// The test will be successful if it runs for this long without dup issues.
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute)
Copy link
Member

Choose a reason for hiding this comment

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

Can the test be meaningful running for less time?

Copy link
Member

Choose a reason for hiding this comment

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

In my testing yesterday it was difficult to trip the problem straight away, it would normally need the leader to have bounced around a few times.

Copy link
Member Author

Choose a reason for hiding this comment

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

on v2.10.11 it would have happened around the 3rd or 4th leader election in this test

server/jetstream_cluster_3_test.go Outdated Show resolved Hide resolved
server/jetstream_cluster_3_test.go Outdated Show resolved Hide resolved
Signed-off-by: Neil Twigg <neil@nats.io>
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

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.

None yet

3 participants