-
Notifications
You must be signed in to change notification settings - Fork 3.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
docs: new RFC on logging modernization #51990
Conversation
53de666
to
c575081
Compare
Thanks @knz. This might be out of scope for this RFC, but what is the job of the For example, today customers request getting access to DDL events in their audit logs. However, DDL events are not recorded in audit logs so customers workaround that by querying |
I don't have an opinion about keeping There are arguments either way. |
52200: util/log: improvements, simplifications and bug fixes r=irfansharif a=knz Fixes #52026 Fixes #52176 Fixes #52128 Fixes #51332 Supersedes #51499, #51410 For context, I was working on #51990, #51499 and #51410 when I stumbled upon bug #52128 in the logging package. I decided to clean up the code and fix that bug, and I ended up removing a lot of complexity and add many missing comments. Example CI output: ![image](https://user-images.githubusercontent.com/642886/89288431-efaedc80-d655-11ea-97d9-b096b580d951.png) By removing the complexity, I removed the problem otherwise solved by #51499 & #51410 and I removed the source of the flake causing #52026 and #52176. Salient bits in this PR: - **util/log: reinforce the behavior of log file rotation** - "This patch "does the right thing" by opening the new file before switching over whatever redirection may have been set up from the old file to the new one." - **util/log: simplify TestLogScope+don't capture internal stderr writes** - "This complexity was thus removed and the doc clarified that TestLogScope is only valid under the default configuration, when there was no file output configured yet and no secondary loggers active yet." - "However we also have other reasons to dislike the stderr redirect in tests, so I decided to remove it here instead of conjuring new code." - **pgwire: un-skip TestauthenticationAndHBARules** Co-authored-by: Raphael 'kena' Poss <knz@thaumogen.net>
d43614f
to
b373b66
Compare
b994760
to
6445b78
Compare
6445b78
to
4450a0d
Compare
4450a0d
to
5a01d0a
Compare
Merging this as "completed" since the work was, in fact, completed. bors r+ |
Build failed: |
Release note: None
5a01d0a
to
1bbda55
Compare
bors r+ |
(Split all the eventlog-related changes into a different RFC, see #58374) |
Text of RFC here:
https://github.com/knz/cockroach/blob/20200728-rfc-log/docs/RFCS/20200728_log_modernization.md
Release note: None