Bug #80854 | no whitespace between timestamp and threadid columns | ||
---|---|---|---|
Submitted: | 24 Mar 2016 18:38 | Modified: | 15 Jun 2016 17:55 |
Reporter: | Viktor Štujber | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Logging | Severity: | S3 (Non-critical) |
Version: | 5.7, 5.7.11 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[24 Mar 2016 18:38]
Viktor Štujber
[25 Mar 2016 3:26]
Tsubasa Tanaka
I have a same issue and my patch has already been fixed by (only) 5.8 at Bug#79868. Doesn't this fix at 5.7?
[25 Mar 2016 3:43]
Viktor Štujber
Interesting. No, the last change to log.cc on github was oct 2015. Your issue was closed but no action was taken. Latest 5.7 release still has this problem. Your approach was to use a tab character ("\t") instead of a space, however you use a separate write call to do it, which seems a bit awkward. But it points out an inconsistency I missed: the Id column is surrounded by spaces, but the Command column is followed by a tab. It might be useful to normalize the file format to be fully tab-separated, maybe like this: -length= my_snprintf(buff, 32, "%5u ", thread_id); +length= my_snprintf(buff, 32, "\t%5u\t", thread_id);
[25 Mar 2016 6:13]
Tsubasa Tanaka
I've just get to be same as another line which is putting tab character in File_query_log::write_general. https://github.com/mysql/mysql-server/blob/5.7/sql/log.cc#L692-L693
[26 Mar 2016 5:47]
MySQL Verification Team
Hello Viktor Štujber, Thank you for the report. Thanks, Umesh
[15 Jun 2016 17:55]
Paul DuBois
Posted by developer: Noted in 5.7.14 changelog. Lines written to the error log had no space separating the timestamp and thread ID columns if the thread ID took five or more characters.