tarantool / tarantool/tt

Unable to clean instance after machine restart

Open
#1,117 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

My machine was restarted while running a tt application. As expected, after restart I've got

tt status
 INSTANCE             STATUS                      PID  MODE  CONFIG  BOX  UPSTREAM                                   
 single-instance:app  ERROR. The process is dead

But in case I've trying to clean the app, I get an error.

tt clean single-instance
   • instance `app` must be stopped

And in case I try to "stop" it beforehand, I get an error as well.

tt stop single-instance -y
   • can't get pid of running process: failed to check if the process 378540 is running: no such process

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 tt status, tt stop, and tt clean command entry points and reproduce the sequence after a machine restart. Trace how the dead process and its PID are handled, then verify that a dead instance can be cleaned without requiring the nonexistent process to be stopped.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.