BIND 10 #1704: log output mixed
BIND 10 Development
do-not-reply at isc.org
Fri Mar 23 09:57:37 UTC 2012
#1704: log output mixed
-------------------------------------+-------------------------------------
Reporter: jreed | Owner:
Type: | Status: new
defect | Milestone:
Priority: | Sprint-20120403
medium | Resolution:
Component: | Sensitive: 0
logging | Sub-Project: Core
Keywords: | Estimated Difficulty: 15
Defect Severity: N/A | Total Hours: 0
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by vorner):
Hello
I believe I can guess the reason. If there's a lot of logging or long
message, the IO library could buffer the messages a little bit ‒
especially if it is being output to a pipe or file through '>'. However,
that could mean one process writes part of the message and wants to write
the second part later (because the write call couldn't write everything at
once, so it needed to retry). However, a different component have called
its own write() in between and inserted the text in the middle. I heard
this can be circumvented with files opened in „append“ mode and writing by
blocks no bigger than some constant. But that is a magic.
So we either need to output to different files or have some kind of
synchronisation (if that was the actual problem, but I can't imagine
anything else). Or maybe logging through a different logger process that
would mix it all together, but that would likely be slow.
--
Ticket URL: <http://bind10.isc.org/ticket/1704#comment:8>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list