hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-15639 Unguarded access to stackIndexes in Procedure#toStringDetails()
Date Wed, 13 Apr 2016 15:42:36 GMT
Repository: hbase
Updated Branches:
  refs/heads/master ae7e5e29f -> d41a7e631


HBASE-15639 Unguarded access to stackIndexes in Procedure#toStringDetails()


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/d41a7e63
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d41a7e63
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d41a7e63

Branch: refs/heads/master
Commit: d41a7e63103b6f289aae49928c15d44ba2d6d6ce
Parents: ae7e5e2
Author: tedyu <yuzhihong@gmail.com>
Authored: Wed Apr 13 08:42:30 2016 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Wed Apr 13 08:42:30 2016 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/procedure2/Procedure.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/d41a7e63/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/Procedure.java
----------------------------------------------------------------------
diff --git a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/Procedure.java
b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/Procedure.java
index 781bad9..2cc67be 100644
--- a/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/Procedure.java
+++ b/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/Procedure.java
@@ -252,10 +252,11 @@ public abstract class Procedure<TEnvironment> implements Comparable<Procedure>
{
     sb.append(" lastUpdate=");
     sb.append(getLastUpdate());
 
-    if (stackIndexes != null) {
+    int[] stackIndices = getStackIndexes();
+    if (stackIndices != null) {
       sb.append("\n");
       sb.append("stackIndexes=");
-      sb.append(Arrays.toString(getStackIndexes()));
+      sb.append(Arrays.toString(stackIndices));
     }
 
     return sb.toString();


Mime
View raw message