Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Tags: karega/chain

Tags

sdk-java-1.1.4

Toggle sdk-java-1.1.4's commit message
sdk/java: version 1.1.4 with TLS 1.2 default

Closes chain#1339

chain-core-server-1.1.5

Toggle chain-core-server-1.1.5's commit message
cmd/cored: tick version to 1.1.5

Closes chain#1340

chain-core-docker-1.1.2

Toggle chain-core-docker-1.1.2's commit message
cmd/cored: tick version to 1.1.5

Closes chain#1340

sdk-java-1.2.1

Toggle sdk-java-1.2.1's commit message
sdk/java: version 1.2.1 with TLS 1.2 default

Closes chain#1341

chain-core-server-1.2.1

Toggle chain-core-server-1.2.1's commit message
database/raft: wait for ConfChange to be applied

When adding a new node to the cluster, wait for the conf change to be
committed and applied before taking a state snapshot and responding
to the new node.

Previously, Join had a race condition between the application of the
conf change entry and the taking of the snapshot. If the snapshot was
taken before the conf change was committed or applied, the new node
would try to boot its state machine from a state that did not include
itself in the configuration. It could mistakeningly think that it is a
single-node cluster and try to elect itself, panicking when its node
id doesn't exist in the progress list: See issue chain#1330.

Waiting for the conf change to be applied ensures that:
* The /raft/join endpoint only returns if adding the node to the cluster
  was committed.
* The snapshot returned from the /raft/join endpoint includes the new
  node in its configuration.

This is a backport fix for the 1.2.x release line.

Closes chain#1335

chain-core-mac-1.2.1

Toggle chain-core-mac-1.2.1's commit message
database/raft: wait for ConfChange to be applied

When adding a new node to the cluster, wait for the conf change to be
committed and applied before taking a state snapshot and responding
to the new node.

Previously, Join had a race condition between the application of the
conf change entry and the taking of the snapshot. If the snapshot was
taken before the conf change was committed or applied, the new node
would try to boot its state machine from a state that did not include
itself in the configuration. It could mistakeningly think that it is a
single-node cluster and try to elect itself, panicking when its node
id doesn't exist in the progress list: See issue chain#1330.

Waiting for the conf change to be applied ensures that:
* The /raft/join endpoint only returns if adding the node to the cluster
  was committed.
* The snapshot returned from the /raft/join endpoint includes the new
  node in its configuration.

This is a backport fix for the 1.2.x release line.

Closes chain#1335

chain-core-docker-1.2.1

Toggle chain-core-docker-1.2.1's commit message
database/raft: wait for ConfChange to be applied

When adding a new node to the cluster, wait for the conf change to be
committed and applied before taking a state snapshot and responding
to the new node.

Previously, Join had a race condition between the application of the
conf change entry and the taking of the snapshot. If the snapshot was
taken before the conf change was committed or applied, the new node
would try to boot its state machine from a state that did not include
itself in the configuration. It could mistakeningly think that it is a
single-node cluster and try to elect itself, panicking when its node
id doesn't exist in the progress list: See issue chain#1330.

Waiting for the conf change to be applied ensures that:
* The /raft/join endpoint only returns if adding the node to the cluster
  was committed.
* The snapshot returned from the /raft/join endpoint includes the new
  node in its configuration.

This is a backport fix for the 1.2.x release line.

Closes chain#1335