cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

log: fix documentation of buffered writes error

Open dhartunian opened this issue 2 years ago • 2 comments

Describe the problem

The error returned when auditable: true and buffering: is enabled in https://github.com/cockroachdb/cockroach/pull/132742 is incorrect. It references the buffered-writes option which is different from buffering.

https://github.com/cockroachdb/cockroach/blob/56c0f1e14d0720b93ff7cfc1f571799d298544c8/pkg/util/log/logconfig/validate.go#L370-L378

Expected: "File-based audit logging cannot coexist with buffering configuration. Disable either the buffering configuration ("buffering") or auditable log ("auditable") configuration."

Additionally, we should add a nil check for the Auditable pointer to match fc.BufferedWrites above.

Jira issue: CRDB-43462

dhartunian avatar Oct 21 '24 18:10 dhartunian

Hi @dhartunian, please add branch-* labels to identify which branch(es) this C-bug affects.

:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

blathers-crl avatar Oct 21 '24 18:10 blathers-crl

This is addressed as part of #132899. Changes are picked as part of 24.3 release. I am closing the issue as it is already fixed.

aa-joshi avatar Oct 23 '24 05:10 aa-joshi