Examples: a failed departure does not name the departed members

Open Beginner friendly
#517 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
backend

Research direction

Start with the listed call sites in the examples, tutorial, demo, and cluster test, then compare them with tellus/examples/cluster.rs:108, which already reports departure.departed(). Add the departed members to each failure report and check the listed spots, especially the ten named in the issue. Done when each report includes departed members and the quoted site prose remains accurate.

Written by the indexing model from the issue text.

Description

documentation

Departure::is_acknowledged is false if unacknowledged, timed_out or departed is non-empty (tellus/src/cluster/leave.rs:47). Every caller below checks is_acknowledged and on failure reports only unacknowledged and timed_out. A departure which fails only because a member left the cluster itself before it acknowledged therefore reports "departure not acknowledged by [], timed out for []", and the member which caused it, listed in Departure::departed since #453, is not named.

Add departure.departed() to the report at:

  • tellus/examples/how_to/observe_a_cluster.rs:176
  • tellus/examples/how_to/shut_down_gracefully.rs:184
  • tellus/examples/how_to/remove_a_member.rs:116
  • tellus/examples/how_to/publish_to_a_topic.rs:159
  • tellus/examples/how_to/form_without_the_lowest_seed.rs:120
  • tellus/examples/how_to/roll_out_a_new_message_shape.rs:126
  • tellus/examples/how_to/hand_over_a_reference.rs:109
  • tellus/examples/tutorials/clustered/05_leave.rs:160
  • tellus-cluster-demo/src/bin/node.rs:655
  • tellus/tests/cluster.rs:482

tellus/examples/cluster.rs:108 already reports it. The site quotes two of these spots, in shut down gracefully (anchor shut-down) and the leave tutorial (anchor manager-node); their prose stays true.

Dominant language
Rust
Stars
37
Forks
1
Avg merge
4h 56m
Merged PRs (30d)
219

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tellus-rs/tellus

All issues in tellus-rs/tellus

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.