-
Notifications
You must be signed in to change notification settings - Fork 451
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
No crash reason in logs despite roachtest: tpcc/mixed-headroom/n5cpu16 failing due to process exiting with exit code 1 #2039
Comments
@renatolabs and I think the two bugs together lead to the bad behavior of no log entry in the logs. In the context of the roachtest mentioned above, as already discussed here, we call the pebble default logger instead of the CRDB logging lib. That is, we do the following as per these lines:
Above should be fine, as it is exactly what log does: https://cs.opensource.google/go/go/+/master:src/log/log.go;l=226! BUT we also are affected by the bug @srosenberg found:
I don't understand the details of the bug @srosenberg found. In particular, I'd note I have found many panics in the stderr logs in production, suggesting that a successful flush at least happens in that case. Stan, do you want to elaborate on it a bit? |
Whoops. I meant to open this in the CRDB repo. |
Closing in favor of cockroachdb/cockroach#90483. |
@renatolabs was debugging a roachtest failure and did the following the discover that the cause of the failure was #2019:
This indicates a bug of some kind. We do not expect to have a process crash without any info about the crash reason in the logs, if the CRDB process is doing the crashing (as opposed to the OOM killer or similar). With that said, it might be a test-only bug.
Here's a theory: Within a roachtest context but NOT within a production context, we are using the pebble default logger, instead of the CRDB logger. The latter takes care to get a log line in an expected file; the former does not seem to, based on the presence of this bug. See the pebble default logger here:
pebble/logger.go
Line 29 in bee0c60
github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/logger.go:32 +0x49
is in the stacktrace, and that corresponds to this line in the code:pebble/logger.go
Line 32 in bee0c60
The text was updated successfully, but these errors were encountered: