|
44 | 44 | Otherwise the application receives updated metrics while the internal raft
|
45 | 45 | state is still stale.
|
46 | 46 |
|
47 |
| -- Fixed: [59ddc982](https://github.com/datafuselabs/openraft/commit/59ddc982100a390efd66632adbf25edd2c6e6a3c) avoid creating log-id with unitialized `matched.leader_id`.; by 张炎泼; 2022-07-26 |
| 47 | +- Fixed: [59ddc982](https://github.com/datafuselabs/openraft/commit/59ddc982100a390efd66632adbf25edd2c6e6a3c) avoid creating log-id with uninitialized `matched.leader_id`.; by 张炎泼; 2022-07-26 |
48 | 48 |
|
49 | 49 | When waiting for a newly added learner to become up to date,
|
50 | 50 | it tries to compare last-log-id and the reported `matched` replication
|
51 | 51 | state.
|
52 | 52 | But the `matched` may have not yet receive any update and is
|
53 |
| - unitialized, in such case, it tries to create a temp LogId with |
| 53 | + uninitialized, in such case, it tries to create a temp LogId with |
54 | 54 | `leader_id(0, 0)`, which is illegal.
|
55 | 55 |
|
56 | 56 | The fix is simple: do not use log-id. Just calculating replication lag by log index.
|
|
236 | 236 |
|
237 | 237 | - Changed: [f40c2055](https://github.com/datafuselabs/openraft/commit/f40c205532b4e75384a6eaaebb601447001d13f4) Add a `RaftTypeConfig` trait to configure common types; by Ivan Schréter; 2022-02-25
|
238 | 238 |
|
239 |
| -- Changed: [650e2352](https://github.com/datafuselabs/openraft/commit/650e23524b759219b9dea0d2fbe3e71859429115) Membership remove redundent field `learners`: the node ids that are in `Membership.nodes` but not in `Membership.configs` are learners; by 张炎泼; 2022-03-07 |
| 239 | +- Changed: [650e2352](https://github.com/datafuselabs/openraft/commit/650e23524b759219b9dea0d2fbe3e71859429115) Membership remove redundant field `learners`: the node ids that are in `Membership.nodes` but not in `Membership.configs` are learners; by 张炎泼; 2022-03-07 |
240 | 240 |
|
241 | 241 | - Changed: [81cd3443](https://github.com/datafuselabs/openraft/commit/81cd3443530a9ef260ded00f0a8b2825cefe8196) EffectiveMembership.log_id to Option<LogId>; by 张炎泼; 2022-04-05
|
242 | 242 |
|
|
588 | 588 |
|
589 | 589 | API changes:
|
590 | 590 |
|
591 |
| - - Removes `allow_lagging` paramenter from `Raft::change_membership()` |
| 591 | + - Removes `allow_lagging` parameter from `Raft::change_membership()` |
592 | 592 | - Removes error `LearnerIsLagging`
|
593 | 593 |
|
594 | 594 | Upgrade tip:
|
|
648 | 648 |
|
649 | 649 | ### Added:
|
650 | 650 |
|
651 |
| -- Added: [966eb287](https://github.com/datafuselabs/openraft/commit/966eb287ff9bc98112b7b5d69253cca2d86277f8) use a version to track metics change; by 张炎泼; 2022-03-03 |
| 651 | +- Added: [966eb287](https://github.com/datafuselabs/openraft/commit/966eb287ff9bc98112b7b5d69253cca2d86277f8) use a version to track metrics change; by 张炎泼; 2022-03-03 |
652 | 652 |
|
653 | 653 | Add `Versioned<D>` to track changes of an `Arc<D>`.
|
654 | 654 |
|
|
1380 | 1380 |
|
1381 | 1381 | - R0 to R1 `append_entries: entries=[{1,2}], prev_log_id = {1,1}, commit_index = 3`
|
1382 | 1382 | - R1 accepted this `append_entries` request but was not aware of that entry {2,3} is inconsistent to leader.
|
1383 |
| - Updating commit index to 3 allows it to apply an uncommitted entrie `{2,3}`. |
| 1383 | + Updating commit index to 3 allows it to apply an uncommitted entries `{2,3}`. |
1384 | 1384 |
|
1385 | 1385 | ## v0.6.2-alpha.15
|
1386 | 1386 |
|
|
1482 | 1482 |
|
1483 | 1483 | A membership change involves two steps: the joint config phase and the
|
1484 | 1484 | final config phase.
|
1485 |
| - Each phase has a corresponding log invovled. |
| 1485 | + Each phase has a corresponding log involved. |
1486 | 1486 |
|
1487 | 1487 | Previously the raft setup several channel to organize this workflow,
|
1488 | 1488 | which makes the logic hard to understand and introduces complexity when
|
1489 |
| - restarting or leadership transfered: it needs to re-establish the channels and tasks. |
| 1489 | + restarting or leadership transferred: it needs to re-establish the channels and tasks. |
1490 | 1490 |
|
1491 | 1491 | According to the gist of raft, all workflow should be log driven.
|
1492 | 1492 | Thus the new approach:
|
1493 |
| - - Write two log(the joint and the final) at once it recevies a |
| 1493 | + - Write two log(the joint and the final) at once it receives a |
1494 | 1494 | change-membership request.
|
1495 | 1495 | - All following job is done according to just what log is committed.
|
1496 | 1496 |
|
|
1546 | 1546 | logs to get the last membership that is included in state machine.
|
1547 | 1547 |
|
1548 | 1548 | By letting the state machine remember the membership log applied,
|
1549 |
| - the snapshto creation becomes more convinient and intuitive: it does not |
| 1549 | + the snapshto creation becomes more convenient and intuitive: it does not |
1550 | 1550 | need to scan the applied logs any more.
|
1551 | 1551 |
|
1552 | 1552 | ## v0.6.2-alpha.7
|
|
1609 | 1609 | a container of metadata of a snapshot.
|
1610 | 1610 | Reduce parameters.
|
1611 | 1611 |
|
1612 |
| - - Refactor: remove redundent param `delete_through` from |
| 1612 | + - Refactor: remove redundant param `delete_through` from |
1613 | 1613 | `finalize_snapshot_installation`.
|
1614 | 1614 |
|
1615 | 1615 | ## v0.6.2-alpha.4
|
|
1812 | 1812 | - Simplify CI test: test all in one action.
|
1813 | 1813 |
|
1814 | 1814 | - Disable clippy: it suggests inappropriate assert_eq to assert
|
1815 |
| - convertion which is used in a macro. |
| 1815 | + conversion which is used in a macro. |
1816 | 1816 |
|
1817 | 1817 | - Add makefile
|
1818 | 1818 |
|
|
0 commit comments