From 7c2d7d8e7f9e4dd668d80bbb052ed9a064a5d727 Mon Sep 17 00:00:00 2001 From: ryakhovskiy Date: Mon, 8 Aug 2022 12:03:40 +0200 Subject: [PATCH] HBASE-26775 - add synchronized modifier to the toString() method of ProcedureEvent.java (#4681) Signed-off-by: Duo Zhang (cherry picked from commit 74726617b8418f9cd0b1f3ae209cfc42adbf26cd) (cherry picked from commit 0713d0380b6f95029dc642c0f5ab6a1fd5dc7495) Change-Id: I833973940c02f0f3cda767c9f4f0231b174c28ed --- .../java/org/apache/hadoop/hbase/procedure2/ProcedureEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureEvent.java b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureEvent.java index ab1929fb8ce7..63aadcbb4d40 100644 --- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureEvent.java +++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureEvent.java @@ -126,7 +126,7 @@ public ProcedureDeque getSuspendedProcedures() { } @Override - public String toString() { + public synchronized String toString() { return getClass().getSimpleName() + " for " + object + ", ready=" + isReady() + ", " + suspendedProcedures; }