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

Quick fixes for two ZTS failures #12165

Merged
merged 1 commit into from
Jun 1, 2021
Merged

Conversation

rincebrain
Copy link
Contributor

@rincebrain rincebrain commented May 30, 2021

Motivation and Context

On FreeBSD 14, these two tests started erroring out every time.

Description

When you look at the bot log (in one case; the other test requires patching to not write stderr to /dev/null), the reason the tests are erroring is that zdb is spitting out zdb: dmu_object_info() failed, errno 2 (2 is ENOENT), which is what I expect to happen if you try to use zdb on an object too fast after it's created, I hypothesized because they're not flushed out yet.

So I threw in a zpool sync before the first zdb use in each test.

Of course, that leaves the open question of what's changed? The same tests on the same git rev pass on 13-STABLE (examining all the failures of the last 20 on FreeBSD stable/13 amd64 (TEST), none of them report either of these tests)...

How Has This Been Tested?

The tests failed every time I tried before these changes and passed every time I've tried after.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

@jwk404 jwk404 requested a review from a user June 1, 2021 14:52
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Thanks for figuring this out! I had made it to zdb failing but wasn't sure why yet.

One nit, we have been preferring sync_pool $TESTPOOL in tests.

On FreeBSD 14, these two tests started erroring out like the
objects they're attempting to examine don't exist.

Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
@rincebrain
Copy link
Contributor Author

One day, I will remember to search for macros before using raw commands.

Today is evidently not that day.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Jun 1, 2021
@jwk404 jwk404 merged commit 6c7c720 into openzfs:master Jun 1, 2021
behlendorf pushed a commit to behlendorf/zfs that referenced this pull request Jun 3, 2021
On FreeBSD 14, these two tests started erroring out like the
objects they're attempting to examine don't exist.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes openzfs#12165
behlendorf pushed a commit to behlendorf/zfs that referenced this pull request Jun 8, 2021
On FreeBSD 14, these two tests started erroring out like the
objects they're attempting to examine don't exist.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes openzfs#12165
behlendorf pushed a commit to behlendorf/zfs that referenced this pull request Jun 9, 2021
On FreeBSD 14, these two tests started erroring out like the
objects they're attempting to examine don't exist.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes openzfs#12165
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants