bryancall opened a new issue, #14064:
URL: https://github.com/apache/trafficserver/issues/14064

   `LogConfig::register_config_callbacks()` lists the records whose change 
reloads logging. Six records that `LogConfig::read_configuration_variables()` 
reads, all marked `RECU_DYNAMIC` in RecordsConfig.cc, are missing from that 
list:
   
   - proxy.config.log.rolling_min_count
   - proxy.config.diags.logfile.rolling_min_count
   - proxy.config.output.logfile.rolling_min_count
   - proxy.config.log.log_fast_buffer
   - proxy.config.log.ascii_buffer_size
   - proxy.config.log.max_line_size
   
   A `traffic_ctl config set` on any of them updates the record, but logging 
doesn't pick up the change until some other logging record changes.
   
   For the three `rolling_min_count` records, adding them to the list is 
enough: the next reload registers the new count for error.log and custom logs, 
diags.log and manager.log, or traffic.out. The other three need more than that. 
A reload keeps a running log object when the new one compares equal, and 
[`LogObject::operator==`](https://github.com/apache/trafficserver/blob/8f8833cef28ed535795535adab09b450ae3092b5/include/proxy/logging/LogObject.h#L421-L429)
 doesn't compare the fast flag or the buffer sizes, so the running objects keep 
their old values. The docs already describe ascii_buffer_size and max_line_size 
as needing a restart. If that's the intent, marking those records restart-only 
may be simpler than making them reload.
   
   The same function also ignores the return value of 
`ConfigRegistry::attach()`, which is how the wrong name fixed in #14018 went 
unnoticed apart from a startup warning. Asserting on it, the way 
ReverseProxy.cc does, would make a misspelt name fail a debug build at startup.
   
   master and 10.2.x both have this.
   


-- 
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]

Reply via email to