commit | 0766d2cd23afb29f0eb42cf95b09d3d2984c14fa | [log] [tgz] |
---|---|---|
author | bshashikant <shashikant@apache.org> | Thu Jun 24 20:24:22 2021 +0530 |
committer | GitHub <noreply@github.com> | Thu Jun 24 20:24:22 2021 +0530 |
tree | ed6f06af6a7080b89c32267f4862c10cc9bae225 | |
parent | 93fb7145daaba29682a88d028ba49784fd56022f [diff] |
HDDS-5381. SCM terminated with exit status 1: null. (#2362)
diff --git a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/PipelineStateManagerV2Impl.java b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/PipelineStateManagerV2Impl.java index 7f52d93..9ad3043 100644 --- a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/PipelineStateManagerV2Impl.java +++ b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/PipelineStateManagerV2Impl.java
@@ -247,9 +247,9 @@ throws IOException { PipelineID pipelineID = PipelineID.getFromProtobuf(pipelineIDProto); Pipeline.PipelineState oldState = null; + lock.writeLock().lock(); try { oldState = getPipeline(pipelineID).getPipelineState(); - lock.writeLock().lock(); // null check is here to prevent the case where SCM store // is closed but the staleNode handlers/pipeline creations // still try to access it.