Skip to content
Permalink
Browse files
8243452: JFR: Could not create chunk in repository with over 200 reco…
…rdings

Backport-of: 6dd8443
  • Loading branch information
Ekaterina Vergizova committed May 20, 2021
1 parent 32f107a commit e7fc2017b8ada53e965c32947fc3a290056d3daa
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/jdk.jfr/share/classes/jdk/jfr/internal/Repository.java
  2. +1 −1 src/jdk.jfr/share/classes/jdk/jfr/internal/RepositoryChunk.java
@@ -84,7 +84,7 @@ synchronized RepositoryChunk newChunk(Instant 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");
@@ -80,7 +80,7 @@ private static SafePath findFileName(SafePath directory, String name, String ext
p = directory.toPath().resolve(extendedName);
}
p = directory.toPath().resolve(name + "_" + System.currentTimeMillis() + extension);
return SecuritySupport.toRealPath(new SafePath(p));
return new SafePath(p);
}

public SafePath getUnfishedFile() {

1 comment on commit e7fc201

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on e7fc201 May 20, 2021

Please sign in to comment.