Skip to content
Permalink
Browse files

8243452: JFR: Could not create chunk in repository with over 200 reco…

…rdings

Reviewed-by: mgronlun
  • Loading branch information
Erik Gahlin
Erik Gahlin committed May 7, 2020
1 parent 28f6cd5 commit 6dd84434934544542137f7b7567158e067e68590
@@ -87,7 +87,7 @@ synchronized RepositoryChunk newChunk(ZonedDateTime timestamp) {
}
return new RepositoryChunk(repository, timestamp);
} catch (Exception e) {
String errorMsg = String.format("Could not create chunk in repository %s, %s", repository, e.getMessage());
String errorMsg = String.format("Could not create chunk in repository %s, %s: %s", repository, e.getClass(), e.getMessage());
Logger.log(LogTag.JFR, LogLevel.ERROR, errorMsg);
jvm.abort(errorMsg);
throw new InternalError("Could not abort after JFR disk creation error");
@@ -75,7 +75,7 @@ private static SafePath findFileName(SafePath directory, LocalDateTime time) thr
p = directory.toPath().resolve(extendedName);
}
p = directory.toPath().resolve(filename + "_" + System.currentTimeMillis() + FILE_EXTENSION);
return SecuritySupport.toRealPath(new SafePath(p));
return new SafePath(p);
}

void finish(Instant endTime) {

0 comments on commit 6dd8443

Please sign in to comment.