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

tests/robustness: switch to kill if no panic after 10sec #663

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

fuweid
Copy link
Member

@fuweid fuweid commented Jan 4, 2024

If file doesn't grow in 10 sec, bbolt won't trigger the following errors:

  • lackOfDiskSpace
  • mapError
  • resizeFileError
  • unmapError

We should switch to kill instead of waiting for panic. In order to trigger these errors, we should increase value size to 512.

@fuweid
Copy link
Member Author

fuweid commented Jan 4, 2024

ping @ahrtr

Comment on lines 144 to 145
t.Log("bbolt should stop with panic in 10 seconds")
t.Log("switch to kill")
Copy link
Member

Choose a reason for hiding this comment

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

Probably we should fail the test in such case, because it doesn't run as expected.

Suggested change
t.Log("bbolt should stop with panic in 10 seconds")
t.Log("switch to kill")
t.Log("bbolt is supposed to be already stopped, but actually not yet; forcibly kill it")

Copy link
Member Author

Choose a reason for hiding this comment

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

Hard to tell. If that storage is too fast, before we invoke failpoint, db size has been resized and the size is large enough.

If file doesn't grow in 10 sec, bbolt won't trigger the following
errors:

* lackOfDiskSpace
* mapError
* resizeFileError
* unmapError

We should switch to kill instead of waiting for panic. In order to
trigger these errors, we should increase value size to 512.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
@fuweid fuweid force-pushed the fuweid/fix-powerfailure branch from 5cf6e34 to 49eb212 Compare January 4, 2024 08:17
@ahrtr ahrtr merged commit 25ab4cb into etcd-io:main Jan 4, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants