[
https://issues.apache.org/jira/browse/HDDS-4734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-4734:
---------------------------------
Labels: pull-request-available (was: )
> Validate update state in PipelineStateMap.updatePipelineState
> -------------------------------------------------------------
>
> Key: HDDS-4734
> URL: https://issues.apache.org/jira/browse/HDDS-4734
> Project: Hadoop Distributed Data Store
> Issue Type: Improvement
> Reporter: Janus Chow
> Priority: Major
> Labels: pull-request-available
>
> The function of PipelineStateMap.updatePipelineState will update the
> pipeline's state according to the new state in the parameter.
> There is a chance that the new state is the same, say for Pipeline A, the old
> state is OPEN, and the caller is updating the state of Pipeline A to OPEN
> again, the direct impact is that _query2Openpipelines_ will add two Pipeline
> A for the same query.
> Or the differential control of the state is controlled by the higher level
> invoker, that the caller will always update a different state for a pipeline.
> I think it would be good to add a validator here that if the state is not
> changed, we return directly.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]