[jira] [Updated] (IGNITE-13577) Add support to graceful shutdown for ZookeeperDiscoverySpi

2020-11-05 Thread Yaroslav Molochkov (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-13577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yaroslav Molochkov updated IGNITE-13577:

Fix Version/s: 2.9.1

> Add support to graceful shutdown for ZookeeperDiscoverySpi
> --
>
> Key: IGNITE-13577
> URL: https://issues.apache.org/jira/browse/IGNITE-13577
> Project: Ignite
>  Issue Type: Improvement
>  Components: zookeeper
>Reporter: Ivan Daschinskiy
>Assignee: Ivan Daschinskiy
>Priority: Major
>  Labels: zookeeper
> Fix For: 2.10, 2.9.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Proposed design:
> *LN* -- node that performs graceful shutdown
> *CRD* -- Leader (coordinator) of Ignite cluster
> *N* -- Other nodes of Ignite cluster.
> # *LN* create PERSISTENT *flag* znode with path //sf/
> # *LN* delete own znode in //n as usual.
> # *CRD* receives notification and check if exists *flag* for this node
> #  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
> # *CRD* save event as usual, then delete *flag*.
> #  *CRD* and *N* process events as usual.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (IGNITE-13577) Add support to graceful shutdown for ZookeeperDiscoverySpi

2020-10-28 Thread Ivan Daschinskiy (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-13577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Daschinskiy updated IGNITE-13577:
--
Fix Version/s: 2.10

> Add support to graceful shutdown for ZookeeperDiscoverySpi
> --
>
> Key: IGNITE-13577
> URL: https://issues.apache.org/jira/browse/IGNITE-13577
> Project: Ignite
>  Issue Type: Improvement
>Reporter: Ivan Daschinskiy
>Assignee: Ivan Daschinskiy
>Priority: Major
> Fix For: 2.10
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Proposed design:
> *LN* -- node that performs graceful shutdown
> *CRD* -- Leader (coordinator) of Ignite cluster
> *N* -- Other nodes of Ignite cluster.
> # *LN* create PERSISTENT *flag* znode with path //sf/
> # *LN* delete own znode in //n as usual.
> # *CRD* receives notification and check if exists *flag* for this node
> #  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
> # *CRD* save event as usual, then delete *flag*.
> #  *CRD* and *N* process events as usual.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (IGNITE-13577) Add support to graceful shutdown for ZookeeperDiscoverySpi

2020-10-28 Thread Ivan Daschinskiy (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-13577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Daschinskiy updated IGNITE-13577:
--
Labels: zookeeper  (was: )

> Add support to graceful shutdown for ZookeeperDiscoverySpi
> --
>
> Key: IGNITE-13577
> URL: https://issues.apache.org/jira/browse/IGNITE-13577
> Project: Ignite
>  Issue Type: Improvement
>  Components: zookeeper
>Reporter: Ivan Daschinskiy
>Assignee: Ivan Daschinskiy
>Priority: Major
>  Labels: zookeeper
> Fix For: 2.10
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Proposed design:
> *LN* -- node that performs graceful shutdown
> *CRD* -- Leader (coordinator) of Ignite cluster
> *N* -- Other nodes of Ignite cluster.
> # *LN* create PERSISTENT *flag* znode with path //sf/
> # *LN* delete own znode in //n as usual.
> # *CRD* receives notification and check if exists *flag* for this node
> #  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
> # *CRD* save event as usual, then delete *flag*.
> #  *CRD* and *N* process events as usual.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (IGNITE-13577) Add support to graceful shutdown for ZookeeperDiscoverySpi

2020-10-28 Thread Ivan Daschinskiy (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-13577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Daschinskiy updated IGNITE-13577:
--
Component/s: zookeeper

> Add support to graceful shutdown for ZookeeperDiscoverySpi
> --
>
> Key: IGNITE-13577
> URL: https://issues.apache.org/jira/browse/IGNITE-13577
> Project: Ignite
>  Issue Type: Improvement
>  Components: zookeeper
>Reporter: Ivan Daschinskiy
>Assignee: Ivan Daschinskiy
>Priority: Major
> Fix For: 2.10
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Proposed design:
> *LN* -- node that performs graceful shutdown
> *CRD* -- Leader (coordinator) of Ignite cluster
> *N* -- Other nodes of Ignite cluster.
> # *LN* create PERSISTENT *flag* znode with path //sf/
> # *LN* delete own znode in //n as usual.
> # *CRD* receives notification and check if exists *flag* for this node
> #  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
> # *CRD* save event as usual, then delete *flag*.
> #  *CRD* and *N* process events as usual.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (IGNITE-13577) Add support to graceful shutdown for ZookeeperDiscoverySpi

2020-10-28 Thread Ivan Daschinskiy (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-13577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Daschinskiy updated IGNITE-13577:
--
Description: 
Proposed design:

*LN* -- node that performs graceful shutdown
*CRD* -- Leader (coordinator) of Ignite cluster
*N* -- Other nodes of Ignite cluster.

# *LN* create PERSISTENT *flag* znode with path //sf/
# *LN* delete own znode in //n as usual.
# *CRD* receives notification and check if exists *flag* for this node
#  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
# *CRD* save event as usual, then delete *flag*.
#  *CRD* and *N* process events as usual.

  was:
Proposed design:

*LN* -- node that performs graceful shutdown
*CRD* -- Leader (coordinator) of Ignite cluster
*N* -- Other nodes of Ignite cluster.

# *LN* create PERSISTENT *flag* znode with path //sf/
# *LN* delete own znode in //n as usual.
# *CRD* receives notification and check if exists *flag* for this node
#  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
# *CRD* save event as usual, then delete *flag*.
# Cluster process events as usual.


> Add support to graceful shutdown for ZookeeperDiscoverySpi
> --
>
> Key: IGNITE-13577
> URL: https://issues.apache.org/jira/browse/IGNITE-13577
> Project: Ignite
>  Issue Type: Improvement
>Reporter: Ivan Daschinskiy
>Assignee: Ivan Daschinskiy
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Proposed design:
> *LN* -- node that performs graceful shutdown
> *CRD* -- Leader (coordinator) of Ignite cluster
> *N* -- Other nodes of Ignite cluster.
> # *LN* create PERSISTENT *flag* znode with path //sf/
> # *LN* delete own znode in //n as usual.
> # *CRD* receives notification and check if exists *flag* for this node
> #  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
> # *CRD* save event as usual, then delete *flag*.
> #  *CRD* and *N* process events as usual.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (IGNITE-13577) Add support to graceful shutdown for ZookeeperDiscoverySpi

2020-10-28 Thread Ivan Daschinskiy (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-13577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Daschinskiy updated IGNITE-13577:
--
Description: 
Proposed design:

*LN* -- node that performs graceful shutdown
*CRD* -- Leader (coordinator) of Ignite cluster
*N* -- Other nodes of Ignite cluster.

# *LN* create PERSISTENT *flag* znode with path //sf/
# *LN* delete own znode in //n as usual.
# *CRD* receives notification and check if exists *flag* for this node
#  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
# *CRD* save event as usual, then delete *flag*.
# Cluster process events as usual.

  was:
Proposed design:

*LN* -- node that performs graceful shutdown
*CRD* -- Leader (coordinator) of Ignite cluster
*N* -- Other nodes of Ignite cluster.

# *LN* create EPHEMERAL *latch* znode with path //nl/ and set 
watcher on it
# *LN* delete own znode in //n as usual.
# *LN* blocks with timeout stop until *latch* exists.
# *CRD* receives notification and check if exists *latch* for this node
#  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
# *N* acks events.
# *CRD* on receiving all acks remove *latch* for leaving node if exists.
# *LN* receives notification and proceed with node stop.


> Add support to graceful shutdown for ZookeeperDiscoverySpi
> --
>
> Key: IGNITE-13577
> URL: https://issues.apache.org/jira/browse/IGNITE-13577
> Project: Ignite
>  Issue Type: Improvement
>Reporter: Ivan Daschinskiy
>Assignee: Ivan Daschinskiy
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Proposed design:
> *LN* -- node that performs graceful shutdown
> *CRD* -- Leader (coordinator) of Ignite cluster
> *N* -- Other nodes of Ignite cluster.
> # *LN* create PERSISTENT *flag* znode with path //sf/
> # *LN* delete own znode in //n as usual.
> # *CRD* receives notification and check if exists *flag* for this node
> #  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
> # *CRD* save event as usual, then delete *flag*.
> # Cluster process events as usual.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (IGNITE-13577) Add support to graceful shutdown for ZookeeperDiscoverySpi

2020-10-19 Thread Ivan Daschinskiy (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-13577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Daschinskiy updated IGNITE-13577:
--
Description: 
Proposed design:

*LN* -- node that performs graceful shutdown
*CRD* -- Leader (coordinator) of Ignite cluster
*N* -- Other nodes of Ignite cluster.

# *LN* create EPHEMERAL *latch* znode with path //nl/ and set 
watcher on it
# *LN* delete own znode in //n as usual.
# *LN* blocks with timeout stop until *latch* exists.
# *CRD* receives notification and check if exists *latch* for this node
#  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
# *N* acks events.
# *CRD* on receiving all acks remove *latch* for leaving node if exists.
# *LN* receives notification and proceed with node stop.

  was:
Proposed design:

*LN* -- node that performs graceful shutdown
*CRD* -- Leader (coordinator) of Ignite cluster
*N* -- Other nodes of Ignite cluster.

#  While elected, *CRD* set watches on //ns
# *LN* create EPHEMERAL znode on //ns
# *LN* blocks stop until receive NODE_LEFT event.
# *CRD* receives notification and reset watches on //ns
# *CRD* generate NODE_LEFT event.
# *LN* receives events and continue stop process
# *N* acks message and remove node from local node map.
# *CRD* on receiving all acks checks that there is no nodes on //ns and 
//n
related to *LN* and remove them if they presents.


> Add support to graceful shutdown for ZookeeperDiscoverySpi
> --
>
> Key: IGNITE-13577
> URL: https://issues.apache.org/jira/browse/IGNITE-13577
> Project: Ignite
>  Issue Type: Improvement
>Reporter: Ivan Daschinskiy
>Assignee: Ivan Daschinskiy
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Proposed design:
> *LN* -- node that performs graceful shutdown
> *CRD* -- Leader (coordinator) of Ignite cluster
> *N* -- Other nodes of Ignite cluster.
> # *LN* create EPHEMERAL *latch* znode with path //nl/ and set 
> watcher on it
> # *LN* delete own znode in //n as usual.
> # *LN* blocks with timeout stop until *latch* exists.
> # *CRD* receives notification and check if exists *latch* for this node
> #  *CRD* generate NODE_LEFT event with flag fail=false, otherwise fail=true
> # *N* acks events.
> # *CRD* on receiving all acks remove *latch* for leaving node if exists.
> # *LN* receives notification and proceed with node stop.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (IGNITE-13577) Add support to graceful shutdown for ZookeeperDiscoverySpi

2020-10-13 Thread Ivan Daschinskiy (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-13577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Daschinskiy updated IGNITE-13577:
--
Description: 
Proposed design:

*LN* -- node that performs graceful shutdown
*CRD* -- Leader (coordinator) of Ignite cluster
*N* -- Other nodes of Ignite cluster.

#  While elected, *CRD* set watches on //ns
# *LN* create EPHEMERAL znode on //ns
# *LN* blocks stop until receive NODE_LEFT event.
# *CRD* receives notification and reset watches on //ns
# *CRD* generate NODE_LEFT event.
# *LN* receives events and continue stop process
# *N* acks message and remove node from local node map.
# *CRD* on receiving all acks checks that there is no nodes on //ns and 
//n
related to *LN* and remove them if they presents.

  was:
Proposed design:

*LN* -- node that performs graceful shutdown
*CRD* -- Leader (coordinator) of Ignite cluster
*N* -- Other nodes of Ignite cluster.

#  While elected, *CRD* set watches on //ns
# *LN* create EPHEMERAL znode on //ns
# *LN* blocks stop until receive NODE_LEFT event.
# *CRD* receives notification and reset watches on //ns
# *CRD* generate NODE_LEFT event.
# *LN* receives events and continue stop process
# *CRD* on receiving all acks checks that there is no nodes on //ns and 
//n
related to *LN* and remove them if they presents.


> Add support to graceful shutdown for ZookeeperDiscoverySpi
> --
>
> Key: IGNITE-13577
> URL: https://issues.apache.org/jira/browse/IGNITE-13577
> Project: Ignite
>  Issue Type: Improvement
>Reporter: Ivan Daschinskiy
>Assignee: Ivan Daschinskiy
>Priority: Major
>
> Proposed design:
> *LN* -- node that performs graceful shutdown
> *CRD* -- Leader (coordinator) of Ignite cluster
> *N* -- Other nodes of Ignite cluster.
> #  While elected, *CRD* set watches on //ns
> # *LN* create EPHEMERAL znode on //ns
> # *LN* blocks stop until receive NODE_LEFT event.
> # *CRD* receives notification and reset watches on //ns
> # *CRD* generate NODE_LEFT event.
> # *LN* receives events and continue stop process
> # *N* acks message and remove node from local node map.
> # *CRD* on receiving all acks checks that there is no nodes on //ns and 
> //n
> related to *LN* and remove them if they presents.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (IGNITE-13577) Add support to graceful shutdown for ZookeeperDiscoverySpi

2020-10-13 Thread Ivan Daschinskiy (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-13577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Daschinskiy updated IGNITE-13577:
--
Description: 
Proposed design:

*LN* -- node that performs graceful shutdown
*CRD* -- Leader (coordinator) of Ignite cluster
*N* -- Other nodes of Ignite cluster.

#  While elected, *CRD* set watches on //ns
# *LN* create EPHEMERAL znode on //ns
# *LN* blocks stop until receive NODE_LEFT event.
# *CRD* receives notification and reset watches on //ns
# *CRD* generate NODE_LEFT event.
# *LN* receives events and continue stop process
# *CRD* on receiving all acks checks that there is no nodes on //ns and 
//n
related to *LN* and remove them if they presents.

  was:
Proposed design:

*LN* -- node that performs graceful shutdown
*CRD* -- Leader (coordinator) of Ignite cluster
*N* -- Other nodes of Ignite cluster.

#  While elected, *LN* set watches on //ns
# *LN* create EPHEMERAL znode on //ns
# *LN* blocks stop until receive NODE_LEFT event.
# *CRD* receives notification and reset watches on //ns
# *CRD* generate NODE_LEFT event.
# *LN* receives events and continue stop process
# *CRD* on receiving all acks checks that there is no nodes on //ns and 
//n
related to *LN* and remove them if they presents.


> Add support to graceful shutdown for ZookeeperDiscoverySpi
> --
>
> Key: IGNITE-13577
> URL: https://issues.apache.org/jira/browse/IGNITE-13577
> Project: Ignite
>  Issue Type: Improvement
>Reporter: Ivan Daschinskiy
>Assignee: Ivan Daschinskiy
>Priority: Major
>
> Proposed design:
> *LN* -- node that performs graceful shutdown
> *CRD* -- Leader (coordinator) of Ignite cluster
> *N* -- Other nodes of Ignite cluster.
> #  While elected, *CRD* set watches on //ns
> # *LN* create EPHEMERAL znode on //ns
> # *LN* blocks stop until receive NODE_LEFT event.
> # *CRD* receives notification and reset watches on //ns
> # *CRD* generate NODE_LEFT event.
> # *LN* receives events and continue stop process
> # *CRD* on receiving all acks checks that there is no nodes on //ns and 
> //n
> related to *LN* and remove them if they presents.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)