ansh0014 commented on PR #14088: URL: https://github.com/apache/trafficserver/pull/14088#issuecomment-6937012141
> Reviewed head `592e31916511c3a971d005bd4e01a37850647559`. I independently checked the record registration and logging reload paths and agree with the two existing inline findings: > > * **[P1] Fix the callback record name before asserting attachment success.** The callback list contains `proxy.config.log.error_log_filename`, but the registered record is `proxy.config.error.logfile.filename`. `ConfigRegistry::attach()` propagates the failed callback registration as -1, so the new assertion aborts startup in assertion-enabled builds. [Existing inline finding](https://github.com/apache/trafficserver/pull/14088#discussion_r4585877899). > * **[P1] Make fast-buffer reloads safe before enabling runtime switching.** With configured fast-buffered access logs, setting `proxy.config.log.log_fast_buffer` from 1 to 0 now triggers `Log::change_configuration()`. Its flush of the previous manager calls `force_new_buffer()` and then `_checkout_write()`, which dereferences `m_log_buffer` even though fast-mode objects never initialize that shared buffer. Handle flushing and retirement of thread-local buffers safely, or require a restart for this setting. [Existing inline finding](https://github.com/apache/trafficserver/pull/14088#discussion_r4585877836). > > Please add regression coverage for assertion-enabled startup and both fast-buffer mode transitions with an access log configured. A direct Uranium replay test would fit the request/logging portion, with a native pytest scenario if runtime configuration control requires it. > > Validation: checked all 26 callback names against the record definitions (the error-log entry is the only unregistered name), and traced object construction, comparison, transfer, and reload flushing at the PR head. No runtime tests were run. No additional actionable findings. Thanks for the review, @bneradt! I've updated everything based on your feedback: - Fixed the callback record name to `proxy.config.error.logfile.filename` so all callback names match their record definitions and `ink_assert` succeeds cleanly at startup. - Marked `proxy.config.log.log_fast_buffer` as `RECU_RESTART_TS` in `RecordsConfig.cc` and removed `:reloadable:` from `records.yaml.en.rst` to avoid the flush/retirement crash. - Ran all Catch2 logging unit tests (`test_Log*` and `test_LogEntryJson`) and they all pass cleanly (38/38). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
