# HG changeset patch # User egahlin # Date 1567099917 -7200 # Node ID 5c8039344562b707bea9b962cc8834c1fe2831f1 # Parent b77540d274f9a354715645abadefafb7bf8d8c80 Abort directory stream after end diff -r b77540d274f9 -r 5c8039344562 src/jdk.jfr/share/classes/jdk/jfr/consumer/EventDirectoryStream.java --- a/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventDirectoryStream.java Thu Aug 29 19:30:32 2019 +0200 +++ b/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventDirectoryStream.java Thu Aug 29 19:31:57 2019 +0200 @@ -63,7 +63,7 @@ super(acc, active); this.fileAccess = fileAccess; this.active = active; - repositoryFiles = new RepositoryFiles(fileAccess, p ); + repositoryFiles = new RepositoryFiles(fileAccess, p); } @Override @@ -104,7 +104,7 @@ } else { awaitnewEvent = processUnordered(awaitnewEvent); } - if (segmentStart > end) { + if (chunkParser.getStartNanos() + chunkParser.getChunkDuration() > end) { close(); return; }