-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Assert if we're logging after final txg was set #16795
base: master
Are you sure you want to change the base?
Conversation
This issue was recently resolved by #16782. Are you still seeing this with this patch applied? |
Here's an example: https://github.com/openzfs/zfs/actions/runs/11938548960/job/33284373903 - it's (barely) visible in vm1 serial console log |
I'm going to force push the other three PRs I have open rebased on current master to re-check, I've seen this but thought this might be something separate so I didn't re-validate whether it fixes it, so let's find out :) |
Pushed, so in ~3hrs we'll know :) |
I agree with Brian that I should have fixed one of the case. Related to this change I think instead of ignoring the messages we should assert it, otherwise it is very difficult to diagnose it. The logging is only a symptom. |
Good idea, I'll let the tests in the other PRs finish and redo this one to VERIFY or an ASSERT, which one fits better? |
I'd say ASSERT() + ignore, since it should not be fatal for production, but would be good to catch on debug. BTW, logging the message in the panic was really helpful for diagnostics. |
So maybe no change would be for the best here? :) |
I meant using
I am not saying the patch is correct, but it was helpful. |
@amotin I think the change as you've made makes sense, there doesn't seem to be anything left to figure out, so I'd say the change is yours, would you mind if I mark you as an author? Maybe I'd just change the format to include what's going on, like |
This change was developed under this PR: openzfs#16795 Signed-off-by: Pavel Snajdr <[email protected]>
2d36e59
to
6539e23
Compare
This change was developed under this PR: openzfs#16795 Signed-off-by: Pavel Snajdr <[email protected]>
6539e23
to
2ee4d2b
Compare
(forgot to change it into an actual assert, that's why the second push) |
There is another entrance to |
This change was developed under this PR: openzfs#16795 Signed-off-by: Pavel Snajdr <[email protected]>
2ee4d2b
to
67d2427
Compare
This change was developed under this PR: openzfs#16795 Signed-off-by: Pavel Snajdr <[email protected]>
67d2427
to
84cfff6
Compare
Right, how about I just duplicate the assert in Didn't know I could expect more logging paths, but they seem to have in common that they call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, except I don't like the extra empty line added before if (err) {
.
oh oops I'll remove it |
This change was developed under this PR: openzfs#16795 Signed-off-by: Pavel Snajdr <[email protected]>
84cfff6
to
fa8d4b8
Compare
Funny, I can't use the 3UF assertion in a way I could with printf, the varargs are required it seems... can't seem to find any variant that would take str without VA? So I'll do it this dumber way :D |
This change was developed under this PR: openzfs#16795 Signed-off-by: Pavel Snajdr <[email protected]>
fa8d4b8
to
30a680a
Compare
Motivation and Context
Running into this from time to time when running ZTS
Description
This should avoid this VERIFY trip:
How Has This Been Tested?
Types of changes
Checklist:
Signed-off-by
.