tarantool / tarantool/tt

Different current working dir for listen socket for different tarantool versions

Open
#495 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Create sample app in tt env:

$ cat instances.enabled/app1.lua 
box.cfg{listen='unix/:./aaaaaaa.sock'}

Start it with tarantool 1.10.15 and check where listen socket is created:

$ tt start app1 
   • Starting an instance [app1]...

$ ls -l var/run/app1/
total 4
srwxrwxr-x 1 psergee psergee 0 июн 15 16:06 aaaaaaa.sock
srwxrwxr-x 1 psergee psergee 0 июн 15 16:06 app1.control
-rw-r--r-- 1 psergee psergee 6 июн 15 16:06 app1.pid

Start it with tarantool 2.11 and check where listen socket is created:

$ tt start app1 
   • Starting an instance [app1]...

$ ls -l var/run/app1/
total 4
srwxrwxr-x 1 psergee psergee 0 июн 15 16:12 app1.control
-rw-r--r-- 1 psergee psergee 6 июн 15 16:12 app1.pid

$ ls -l ./aaaaaaa.sock 
srwxrwxr-x 1 psergee psergee 0 июн 15 16:12 ./aaaaaaa.sock

Listen socket is created in current working dir, which is not expected. Suppose, it must be in run dir.

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

Reproduce the behavior with the sample instances.enabled/app1.lua configuration and compare tt start app1 under Tarantool 1.10.15 and 2.11. Inspect how tt starts the instance and resolves the relative unix socket path. Done means the socket is created in the instance run directory rather than the caller's current working directory, with behavior checked for both versions.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.