`vshard bootstrap` unclear error without replicaset setup
Open
Nobody has claimed this yet.
2sp
bug
teamE
- Dominant language
- Go
- Stars
- 113
- Forks
- 18
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 23
Description
Unclear errors on replicaset vshard bootstrap:
$ tt start app1
• Starting an instance [app1:s2-master]...
• Starting an instance [app1:s2-replica]...
• Starting an instance [app1:stateboard]...
• Starting an instance [app1:router]...
• Starting an instance [app1:s1-master]...
• Starting an instance [app1:s1-replica]...
$ tt replicaset vshard bootstrap app1
• Discovery application...
⨯ [string "local function func(...) return { uuid = box...."]:1: attempt to index field 'cfg' (a function value)
$ tt replicaset vshard bootstrap --cartridge app1
• Discovery application...
⨯ [string "local function func(...) return { uuid = box...."]:1: attempt to index field 'cfg' (a function value)
The following command should be run to avoid such errors:
$ tt cartridge replicasets setup --name app1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported tt replicaset vshard bootstrap app1 commands after tt start app1, with and without tt cartridge replicasets setup --name app1. Trace the bootstrap command's handling of missing replicaset setup; done when it reports a clear, actionable prerequisite instead of the Lua indexing error.
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
- 45/100