tarantool / tarantool/tt

tt clean should remove empty config dirs left after vshard bootstrap

Open
#642 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1sp bug teamE
Dominant language
Go
Stars
113
Forks
18
Avg merge
4d 11h
Merged PRs (30d)
23

Description

If there are empty directories left after tt clean (create by vshard bootstraping):

├── var
│   ├── lib
│   │   └── tarantool_column_store
│   │       ├── r-1
│   │       │   ├── config
│   │       │   └── config.backup
│   │       └── s1-1
│   │           ├── config
│   │           └── config.backup

Subsequent start and --bootstrap-vshard fails with the following error:
Failed to get current topology replicasets: Failed to get current topology: [string "local function func(...) local cartridge = re..."]:1: section vshard must be a table

Removing empty 'config' directories fixes this issue.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the implementation of tt clean and reproduce the issue using a Tarantool application bootstrapped with vshard. Inspect how empty config and config.backup directories are handled; done means tt clean removes the empty directories and a subsequent start --bootstrap-vshard succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.