[ https://issues.apache.org/jira/browse/HDDS-2034?focusedWorklogId=320108&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-320108 ]
ASF GitHub Bot logged work on HDDS-2034: ---------------------------------------- Author: ASF GitHub Bot Created on: 29/Sep/19 03:22 Start Date: 29/Sep/19 03:22 Worklog Time Spent: 10m Work Description: ChenSammi commented on pull request #1469: HDDS-2034. Async RATIS pipeline creation and destroy through heartbea… URL: https://github.com/apache/hadoop/pull/1469#discussion_r329335901 ########## File path: hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/safemode/SafeModeHandler.java ########## @@ -129,7 +129,8 @@ private void cleanupPipelines() { List<Pipeline> pipelineList = scmPipelineManager.getPipelines(); pipelineList.forEach((pipeline) -> { try { - if (pipeline.getPipelineState() == Pipeline.PipelineState.ALLOCATED) { + if (pipeline.getPipelineState() == Pipeline.PipelineState.ALLOCATED && + pipeline.isAllocationTimeout()) { scmPipelineManager.finalizeAndDestroyPipeline(pipeline, false); Review comment: Right, there is a TODO. Will complete the logic in HDDS-2177, "Add a srubber thread to detect creation failure pipelines in ALLOCATED state". This patch is too big. I'd like to keep mandatory change in this patch and have others in new tasks. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 320108) Time Spent: 9h 20m (was: 9h 10m) > Async RATIS pipeline creation and destroy through heartbeat commands > -------------------------------------------------------------------- > > Key: HDDS-2034 > URL: https://issues.apache.org/jira/browse/HDDS-2034 > Project: Hadoop Distributed Data Store > Issue Type: Sub-task > Reporter: Sammi Chen > Assignee: Sammi Chen > Priority: Major > Labels: pull-request-available > Time Spent: 9h 20m > Remaining Estimate: 0h > > Currently, pipeline creation and destroy are synchronous operations. SCM > directly connect to each datanode of the pipeline through gRPC channel to > create the pipeline to destroy the pipeline. > This task is to remove the gRPC channel, send pipeline creation and destroy > action through heartbeat command to each datanode. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org