mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Mahler (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-8571) Webui pailer stops paging if a line is bigger than 8*4096 bytes.
Date Tue, 13 Feb 2018 01:38:00 GMT
Benjamin Mahler created MESOS-8571:
--------------------------------------

             Summary: Webui pailer stops paging if a line is bigger than 8*4096 bytes.
                 Key: MESOS-8571
                 URL: https://issues.apache.org/jira/browse/MESOS-8571
             Project: Mesos
          Issue Type: Bug
          Components: webui
            Reporter: Benjamin Mahler


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).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message