You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ju...@apache.org on 2025/06/13 02:39:41 UTC
(hbase) branch branch-2 updated: HBASE-29384 Ensure profiler output directory exists before writing output (#7082)
This is an automated email from the ASF dual-hosted git repository.
junegunn pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 287d7c9f90e HBASE-29384 Ensure profiler output directory exists before writing output (#7082)
287d7c9f90e is described below
commit 287d7c9f90ef001c05fe8863097c4ea697848921
Author: JinHyuk Kim <tk...@naver.com>
AuthorDate: Fri Jun 13 11:38:02 2025 +0900
HBASE-29384 Ensure profiler output directory exists before writing output (#7082)
---
.../src/main/java/org/apache/hadoop/hbase/http/ProfileServlet.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/hbase-http/src/main/java/org/apache/hadoop/hbase/http/ProfileServlet.java b/hbase-http/src/main/java/org/apache/hadoop/hbase/http/ProfileServlet.java
index e92b4f9ae01..122d04ff175 100644
--- a/hbase-http/src/main/java/org/apache/hadoop/hbase/http/ProfileServlet.java
+++ b/hbase-http/src/main/java/org/apache/hadoop/hbase/http/ProfileServlet.java
@@ -198,6 +198,7 @@ public class ProfileServlet extends HttpServlet {
File outputFile =
new File(OUTPUT_DIR, "async-prof-pid-" + pid + "-" + event.name().toLowerCase() + "-"
+ ID_GEN.incrementAndGet() + "." + output.name().toLowerCase());
+ Files.createDirectories(Paths.get(OUTPUT_DIR));
List<String> cmd = new ArrayList<>();
Path profilerScriptPath = Paths.get(asyncProfilerHome, "bin", PROFILER_SCRIPT);
if (!Files.exists(profilerScriptPath)) {