YARN-7400. Incorrect log preview displayed in jobhistory server ui. Contributed by Xuan Gong.
(cherry picked from commit d57dba9942
)
This commit is contained in:
parent
08c3efa4a0
commit
552f74e6b7
|
@ -221,8 +221,8 @@ public class IndexedFileAggregatedLogsBlock extends LogAggregationHtmlBlock {
|
|||
__(" for the full log.").__();
|
||||
}
|
||||
long totalSkipped = 0;
|
||||
while (totalSkipped < start) {
|
||||
long ret = in.skip(start - totalSkipped);
|
||||
while (totalSkipped < startIndex) {
|
||||
long ret = in.skip(startIndex - totalSkipped);
|
||||
if (ret == 0) {
|
||||
//Read one byte
|
||||
int nextByte = in.read();
|
||||
|
|
Loading…
Reference in New Issue