Skip to content

HDDS-1451 : SCMBlockManager findPipeline and createPipeline are not lock protected. - #799

Merged
anuengineer merged 4 commits into
apache:trunkfrom
avijayanhwx:HDDS-1451-trunk
May 20, 2019
Merged

HDDS-1451 : SCMBlockManager findPipeline and createPipeline are not lock protected.#799
anuengineer merged 4 commits into
apache:trunkfrom
avijayanhwx:HDDS-1451-trunk

Conversation

@avijayanhwx

Copy link
Copy Markdown
Contributor

The getPipelines() and createPipeline() already seem to have a lock in their implementation. However, the problem described here involves a race condition between the call to getPipelines and createPipelines in BlockManagerImpl#allocateBlock. The fix is to add another getPipelines check after a failed createPipeline call to get any newly created pipelines.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec42Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1mvninstall415trunk passed
+1compile197trunk passed
+1checkstyle51trunk passed
+1mvnsite0trunk passed
+1shadedclient883branch has no errors when building and testing our client artifacts.
+1javadoc123trunk passed
0spotbugs242Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs425trunk passed
_ Patch Compile Tests _
+1mvninstall400the patch passed
+1compile202the patch passed
+1javac202the patch passed
+1checkstyle55the patch passed
+1mvnsite0the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient798patch has no errors when building and testing our client artifacts.
+1javadoc135the patch passed
+1findbugs472the patch passed
_ Other Tests _
-1unit173hadoop-hdds in the patch failed.
-1unit1435hadoop-ozone in the patch failed.
-1asflicense41The patch generated 1 ASF License warnings.
5991
ReasonTests
Failed junit testshadoop.ozone.client.rpc.TestWatchForCommit
hadoop.ozone.om.TestOzoneManagerHA
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-799/1/artifact/out/Dockerfile
GITHUB PR#799
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux 79fd163f71d1 4.4.0-144-generic #170~14.04.1-Ubuntu SMP Mon Mar 18 15:02:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / 7f0e2c6
Default Java1.8.0_191
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-799/1/artifact/out/patch-unit-hadoop-hdds.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-799/1/artifact/out/patch-unit-hadoop-ozone.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-799/1/testReport/
asflicensehttps://builds.apache.org/job/hadoop-multibranch/job/PR-799/1/artifact/out/patch-asflicense-problems.txt
Max. process+thread count5076 (vs. ulimit of 5500)
modulesC: hadoop-hdds/server-scm U: hadoop-hdds/server-scm
Console outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-799/1/console
versionsgit=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@avijayanhwx

Copy link
Copy Markdown
ContributorAuthor

/label ozone

@elekelek added the ozone label May 8, 2019
@avijayanhwx

Copy link
Copy Markdown
ContributorAuthor

/retest

@mukul1987mukul1987 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The patch looks good to me. Please change the log lines to add the type and factor.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec45Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1mvninstall559trunk passed
+1compile252trunk passed
+1checkstyle67trunk passed
+1mvnsite0trunk passed
+1shadedclient1065branch has no errors when building and testing our client artifacts.
+1javadoc159trunk passed
0spotbugs294Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs529trunk passed
_ Patch Compile Tests _
+1mvninstall530the patch passed
+1compile253the patch passed
+1javac253the patch passed
+1checkstyle73the patch passed
+1mvnsite0the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient794patch has no errors when building and testing our client artifacts.
+1javadoc146the patch passed
+1findbugs552the patch passed
_ Other Tests _
-1unit204hadoop-hdds in the patch failed.
-1unit1915hadoop-ozone in the patch failed.
+1asflicense48The patch does not generate ASF License warnings.
7326
ReasonTests
Failed junit testshadoop.ozone.client.rpc.TestBlockOutputStream
hadoop.ozone.TestMiniChaosOzoneCluster
hadoop.ozone.om.TestOzoneManagerHA
hadoop.ozone.om.TestOzoneManager
hadoop.ozone.client.rpc.TestContainerStateMachine
hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis
hadoop.ozone.client.rpc.TestOzoneRpcClient
hadoop.ozone.client.rpc.TestBCSID
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-799/2/artifact/out/Dockerfile
GITHUB PR#799
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux ecd9e7269767 4.4.0-144-generic #170~14.04.1-Ubuntu SMP Mon Mar 18 15:02:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / c183bd8
Default Java1.8.0_212
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-799/2/artifact/out/patch-unit-hadoop-hdds.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-799/2/artifact/out/patch-unit-hadoop-ozone.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-799/2/testReport/
Max. process+thread count3676 (vs. ulimit of 5500)
modulesC: hadoop-hdds/server-scm U: hadoop-hdds/server-scm
Console outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-799/2/console
versionsgit=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@anuengineer

Copy link
Copy Markdown
Contributor

@avijayanhwx the patch looks good to me. Can you please confirm that the test failures are not due to this patch. Thanks in Advance.

@avijayanhwx

Copy link
Copy Markdown
ContributorAuthor

@avijayanhwx the patch looks good to me. Can you please confirm that the test failures are not due to this patch. Thanks in Advance.

@anuengineer The failures seem unrelated. I have rebased with latest trunk. We can see how this run goes and then commit it.

@anuengineer

Copy link
Copy Markdown
Contributor

+1, LGTM. Thanks.

@anuengineer
anuengineer merged commit f633002 into apache:trunkMay 20, 2019
shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
As per subject, table descriptors moved are
- LocalTableDescriptor
- RemoteTableDescriptor
- HybridTableDescriptor
- GuavaCacheTableDescriptor
- CachingTableDescriptor
Author: Wei Song <wsong@linkedin.com>
Reviewers: Prateek Maheshwari <pmaheshwari@linkedin.com>
Closesapache#799 from weisong44/SAMZA-1981
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@avijayanhwx@hadoop-yetus@anuengineer@mukul1987@elek