Details
-
Bug
-
Status: Accepted
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Reported by gabriel.hartmann@gmail.com, there appears to be a bug in the pailer when the entire chunk that's been paged does not contain a newline.
An example log file contained a line that is 63319 bytes long, and the pailer chunk size is only 32768 bytes. The pailer tries to truncate everything in front of the first newline in the chunk, but since there isn't one in this case, the entire chunk gets truncated:
https://github.com/apache/mesos/blob/1.5.0/src/webui/master/static/js/jquery.pailer.js#L204-L209
Not sure what the fix is here, maybe to keep reading until we see a newline (seems problematic in the case that there's a huge amount of data with no newlines), or to just display the whole chunk in this case without any newlines (not sure if there will be any display bugs here).