replication: deleting a replica does not release its name

Open Beginner friendly
#13,663 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
70/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
lua
Domain
databases

Research direction

Start by tracing how named replicas are registered and deleted from _cluster, then follow where ER_INSTANCE_NAME_DUPLICATE checks whether a name is occupied. The issue does not name files or tests, so locate the relevant code and tests before making a change. Done means deleting a registration frees its name so a replica can be registered with that same name.

Written by the indexing model from the issue text.

Description

bug

Deleting a named replica from _cluster may leave its name occupied. Registering a replica with the same name then fails with ER_INSTANCE_NAME_DUPLICATE. The name should be released when the registration is deleted.

Dominant language
Lua
Stars
3.7k
Forks
432
Avg merge
1d 2h
Merged PRs (30d)
124

Getting set up

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 tarantool/tarantool

All issues in tarantool/tarantool

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.