You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[yugabyte#30307] DocDB: Convert spammy logs to DETAIL level
Summary:
Introduces a new `DETAIL_LEVEL` to the RocksDB `InfoLogLevel` enum, providing a way to tag high-frequency informational logs with a "DETAIL: " prefix while keeping them visible at the default INFO log level. This enables downstream log filtering/grep without changing log visibility semantics.
Summary of changes:
- Added DETAIL_LEVEL to InfoLogLevel enum and GetFilterLogLevel() helper so DETAIL and INFO share the same visibility threshold
- Added per-entry log level to LogBuffer so buffered DETAIL entries flush with the correct level
- Added log-level support to EventLogger/EventLoggerStream so individual event log call sites can opt into DETAIL
- Unified the "DETAIL: " string literal into the shared YB_DETAIL_LOG_PREFIX macro
- Using all of the above for log level migrations (INFO/DEBUG -> DETAIL)
Jira: DB-20188
Test Plan:
Jenkins: all tests
Added some unit tests to:
`yb_rocksdb_logger-test.cc`, `auto_roll_logger_test.cc` and `env_test.cc`
Verification through logs of local test runs:
`ybd release --cxx-test flush-test --gtest_filter '*.TestFlushPicksOldestInactiveTabletAfterCompaction'`
Some DETAIL log lines:
```
[ts-1] I0212 22:54:26.167357 86911 memtable_list.cc:410] DETAIL: T 08a2e6c27d134601876040adbd3c012a P 51dea67900734de7b314d7687b3ad0ea [R]: [default] Level-0 commit table #14 started
[ts-1] I0212 22:54:26.167373 86911 memtable_list.cc:426] DETAIL: T 08a2e6c27d134601876040adbd3c012a P 51dea67900734de7b314d7687b3ad0ea [R]: [default] Level-0 commit table #14: memtable #1 done
[ts-1] I0212 22:54:26.167378 86911 event_logger.cc:89] DETAIL: T 08a2e6c27d134601876040adbd3c012a P 51dea67900734de7b314d7687b3ad0ea [R]: EVENT_LOG_v1 {"time_micros": 1770936866166824, "job": 5, "event": "flush_finished", "lsm_state": [4]}
[ts-1] I0212 22:54:26.169718 87257 tablet_retention_policy.cc:203] DETAIL: T 08a2e6c27d134601876040adbd3c012a P 51dea67900734de7b314d7687b3ad0ea: SanitizeHistoryCutoff, cutoff from the provider { cotables_cutoff_ht: <invalid> primary_cutoff_ht: <max> }
```
Reviewers: hsunder, mlillibridge, sergei, arybochkin
Reviewed By: mlillibridge, arybochkin
Subscribers: sanketh, ybase
Differential Revision: https://phorge.dev.yugabyte.com/D50302
0 commit comments