Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-1654. Ensure container state on datanode gets synced to disk whennever state change happens. #923

Closed
wants to merge 3 commits into from

Conversation

bshashikant
Copy link
Contributor

No description provided.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 31 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 @author 0 The patch does not contain any @author tags.
-1 test4tests 0 The 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 _
+1 mvninstall 496 trunk passed
+1 compile 275 trunk passed
+1 checkstyle 78 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 812 branch has no errors when building and testing our client artifacts.
+1 javadoc 155 trunk passed
0 spotbugs 330 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 511 trunk passed
_ Patch Compile Tests _
+1 mvninstall 448 the patch passed
+1 compile 273 the patch passed
+1 javac 273 the patch passed
+1 checkstyle 73 the patch passed
+1 mvnsite 0 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 704 patch has no errors when building and testing our client artifacts.
+1 javadoc 178 the patch passed
+1 findbugs 544 the patch passed
_ Other Tests _
-1 unit 152 hadoop-hdds in the patch failed.
-1 unit 1145 hadoop-ozone in the patch failed.
+1 asflicense 58 The patch does not generate ASF License warnings.
6111
Reason Tests
Failed junit tests hadoop.ozone.container.common.impl.TestHddsDispatcher
hadoop.ozone.container.common.statemachine.commandhandler.TestBlockDeletion
hadoop.ozone.client.rpc.TestWatchForCommit
hadoop.ozone.client.rpc.TestOzoneRpcClient
hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis
hadoop.ozone.client.rpc.TestSecureOzoneRpcClient
hadoop.ozone.client.rpc.TestOzoneAtRestEncryption
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-923/1/artifact/out/Dockerfile
GITHUB PR #923
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 5e37e1335ebb 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / a91d24f
Default Java 1.8.0_212
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-923/1/artifact/out/patch-unit-hadoop-hdds.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-923/1/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-923/1/testReport/
Max. process+thread count 5190 (vs. ulimit of 5500)
modules C: hadoop-hdds/container-service U: hadoop-hdds/container-service
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-923/1/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 26 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 @author 0 The patch does not contain any @author tags.
-1 test4tests 0 The 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 _
+1 mvninstall 518 trunk passed
+1 compile 281 trunk passed
+1 checkstyle 80 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 922 branch has no errors when building and testing our client artifacts.
+1 javadoc 166 trunk passed
0 spotbugs 337 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 528 trunk passed
_ Patch Compile Tests _
+1 mvninstall 458 the patch passed
+1 compile 289 the patch passed
+1 javac 289 the patch passed
+1 checkstyle 84 the patch passed
+1 mvnsite 0 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 724 patch has no errors when building and testing our client artifacts.
+1 javadoc 166 the patch passed
+1 findbugs 548 the patch passed
_ Other Tests _
-1 unit 167 hadoop-hdds in the patch failed.
-1 unit 1191 hadoop-ozone in the patch failed.
+1 asflicense 49 The patch does not generate ASF License warnings.
6360
Reason Tests
Failed junit tests hadoop.ozone.container.common.impl.TestHddsDispatcher
hadoop.ozone.client.rpc.TestOzoneAtRestEncryption
hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis
hadoop.ozone.client.rpc.TestBlockOutputStreamWithFailures
hadoop.ozone.client.rpc.TestOzoneRpcClient
hadoop.hdds.scm.pipeline.TestSCMPipelineManager
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-923/2/artifact/out/Dockerfile
GITHUB PR #923
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 2413c00c2d31 4.4.0-143-generic #169~14.04.2-Ubuntu SMP Wed Feb 13 15:00:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / a91d24f
Default Java 1.8.0_212
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-923/2/artifact/out/patch-unit-hadoop-hdds.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-923/2/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-923/2/testReport/
Max. process+thread count 4171 (vs. ulimit of 5500)
modules C: hadoop-hdds/container-service U: hadoop-hdds/container-service
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-923/2/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 36 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 @author 0 The patch does not contain any @author tags.
-1 test4tests 0 The 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 _
+1 mvninstall 510 trunk passed
+1 compile 293 trunk passed
+1 checkstyle 90 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 902 branch has no errors when building and testing our client artifacts.
+1 javadoc 177 trunk passed
0 spotbugs 332 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 519 trunk passed
_ Patch Compile Tests _
+1 mvninstall 462 the patch passed
+1 compile 304 the patch passed
+1 javac 304 the patch passed
+1 checkstyle 94 the patch passed
+1 mvnsite 0 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 688 patch has no errors when building and testing our client artifacts.
+1 javadoc 181 the patch passed
+1 findbugs 538 the patch passed
_ Other Tests _
-1 unit 152 hadoop-hdds in the patch failed.
-1 unit 1482 hadoop-ozone in the patch failed.
+1 asflicense 46 The patch does not generate ASF License warnings.
6662
Reason Tests
Failed junit tests hadoop.ozone.container.common.impl.TestHddsDispatcher
hadoop.ozone.client.rpc.TestOzoneRpcClient
hadoop.ozone.client.rpc.TestOzoneAtRestEncryption
hadoop.ozone.client.rpc.TestFailureHandlingByClient
hadoop.ozone.client.rpc.TestSecureOzoneRpcClient
hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-923/3/artifact/out/Dockerfile
GITHUB PR #923
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 2a24167232fc 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / a91d24f
Default Java 1.8.0_212
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-923/3/artifact/out/patch-unit-hadoop-hdds.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-923/3/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-923/3/testReport/
Max. process+thread count 5284 (vs. ulimit of 5500)
modules C: hadoop-hdds/container-service U: hadoop-hdds/container-service
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-923/3/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@bharatviswa504 bharatviswa504 left a comment

Choose a reason for hiding this comment

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

Hi @bshashikant
Thanks for the fix.
I have one comment. Rest LGTM.

@bharatviswa504
Copy link
Contributor

+1 LGTM.

@bharatviswa504
Copy link
Contributor

This patch needs to be rebased I believe, previously there is a bug where acceptance test run used to hang. To get a Jenkins run, this needs to be rebased.

@bshashikant
Copy link
Contributor Author

/retest

@bshashikant
Copy link
Contributor Author

The unit test failures are not related and acceptance test results show it all passed in the details. I am going to commit this patch.

@bshashikant
Copy link
Contributor Author

Thanks @bharatviswa504 for the review. I have committed this change to trunk.

@bshashikant bshashikant deleted the HDDS-1654 branch July 18, 2019 11:40
asfgit pushed a commit that referenced this pull request Jul 18, 2019
…nnever state change happens. Cotributed by Shashikant Banerjee. (#923)
shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
Being a sync call, eventHubManagers can cause the container-start or the runLoop to block.
Like so,
"Samza StreamProcessor Container Thread-0" # 340 daemon prio=5 os_prio=0 tid=0x00007f5e38427800 nid=0x579e waiting on condition [0x00007f5e888cc000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000005c1e04bf0> (a java.util.concurrent.CompletableFuture$Signaller)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1693)
	at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3323)
	at java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1729)
	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
	at com.microsoft.azure.eventhubs.EventHubClient.lambda$createReceiverSync$7(EventHubClient.java:336)
	at com.microsoft.azure.eventhubs.EventHubClient$$Lambda$371/65833266.execute(Unknown Source)
	at com.microsoft.azure.eventhubs.impl.ExceptionUtil.sync(ExceptionUtil.java:191)
	at com.microsoft.azure.eventhubs.EventHubClient.createReceiverSync(EventHubClient.java:336)
	at org.apache.samza.system.eventhub.consumer.EventHubSystemConsumer.initializeEventHubsManagers(EventHubSystemConsumer.java:320)
	- locked <0x00000005c1e04cd0> (a com.linkedin.samza.eventhub.consumer.LiEventHubSystemConsumer)
	at org.apache.samza.system.eventhub.consumer.EventHubSystemConsumer.start(EventHubSystemConsumer.java:355)
	at org.apache.samza.system.SystemConsumers$$anonfun$start$5.apply(SystemConsumers.scala:168)
	at org.apache.samza.system.SystemConsumers$$anonfun$start$5.apply(SystemConsumers.scala:168)
	at scala.collection.Iterator$class.foreach(Iterator.scala:727)
	at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
	at scala.collection.MapLike$DefaultValuesIterable.foreach(MapLike.scala:206)
	at org.apache.samza.system.SystemConsumers.start(SystemConsumers.scala:168)
	at org.apache.samza.container.SamzaContainer.startConsumers(SamzaContainer.scala:999)
	at org.apache.samza.container.SamzaContainer.run(SamzaContainer.scala:779)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

This PR introduces a bound on it.

Author: Ray Matharu <rmatharu@linkedin.com>

Reviewers: Jagadish <jagadish@apache.org>

Closes apache#923 from rmatharu/test-bounded-event-hub-init
amahussein pushed a commit to amahussein/hadoop that referenced this pull request Oct 29, 2019
…nnever state change happens. Cotributed by Shashikant Banerjee. (apache#923)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants