tarantool / tarantool/tt

Binary listening socket is not shorten

Open
#918 1 comment 0 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

Since #574 tt sets the TT_IPROTO_LISTEN_DEFAULT environment variable. If it is too long, tarantool can't start with a message like the following:

F> can't initialize storage: bind, called on fd 19, aka unix/:(socket): Address already in use

This logic is present for a console socket. I propose to add it for the iproto socket too.

https://github.com/tarantool/tt/blob/8421eff8c7d7ba2c9f38483805c2bc6dc7851933/cli/running/cluster_instance.go#L83-L88

The problem is reported by @andreyaksenov.

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 in cli/running/cluster_instance.go at the linked lines, and compare the existing console-socket shortening logic with how TT_IPROTO_LISTEN_DEFAULT is set. The change is done when an overly long iproto listening socket is shortened sufficiently for Tarantool to start without the reported bind error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.