8243452: JFR: Could not create chunk in repository with over 200 recordings
Reviewed-by: mgronlun
This commit is contained in:
parent
28f6cd5917
commit
6dd8443493
@ -87,7 +87,7 @@ public final class Repository {
|
||||
}
|
||||
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 @@ final class RepositoryChunk {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user