Tristan971 commented on issue #8955:
URL: https://github.com/apache/trafficserver/issues/8955#issuecomment-1182062410

   Thanks for the prompt reply.
   
   First, I set debug.enabled to 1 because this is a dev server so the perf 
impact is irrelevant to me, but mostly because with 3 I wasn't seeing debug 
logs being printed at all 😅 
   
   However after a few tests I was surprisingly not always able to reproduce 
the issue. Looking at the git history (as I tried quite a few things 
yesterday), this is the piece of records.config that causes the issue:
   
   ```plain
   CONFIG proxy.config.log.max_secs_per_buffer INT 1
   CONFIG proxy.config.log.periodic_tasks_interval INT 1
   ```
   
   Commenting out `log.max_secs_per_buffer` does not fix the issue however, and 
it doesn't make sense to comment out `log.periodic_tasks_interval` alone (at 
least as per the docs).
   
   Attached is thus the full diags.log when present (I set diags to log to a 
file for the occasion, ofc)
   
   [diags.log](https://github.com/apache/trafficserver/files/9095401/diags.log)
   
   The last successful stderr output line was at 17:15:42, and the relevant (I 
suspect) bit is unfortunately not very informative:
   ```
   [Jul 12 17:15:42.786] [LOG_FLUSH] DEBUG: <Log.cc:1421 (flush_thread_main)> 
(log) Successfully wrote some stuff to stderr
   ...
   ...
   [Jul 12 17:15:46.833] [LOG_FLUSH] DEBUG: <LogFile.cc:275 (close_file)> 
(log-file) LogFile stderr is closed
   [Jul 12 17:15:46.833] [LOG_FLUSH] DEBUG: <LogFile.cc:242 (open_file)> 
(log-file) writing header to LogFile stderr
   [Jul 12 17:15:46.833] [LOG_FLUSH] DEBUG: <LogFile.cc:249 (open_file)> (log) 
exiting LogFile::open_file(), file=stderr presumably open
   [Jul 12 17:15:46.833] [LOG_FLUSH] ERROR: Failed to write log to stderr: 
[tried 101, wrote 0, Bad file descriptor]
   [Jul 12 17:15:47.633] [ET_NET 2] DEBUG: <traffic_server.cc:398 (periodic)> 
(log) in DiagsLogContinuation, checking on diags.log
   ```
   is about the first error information in there
   
   however I don't see anything else that'd be particularly obvious


-- 
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: issues-unsubscr...@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to