Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: dont os.exit() in session disconnect trigger #223

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

nshy
Copy link
Contributor

@nshy nshy commented Dec 15, 2023

We are going to make Tarantool shutdown graceful. Particularly for iproto graceful shutdown we wait while all connections are finished. On connection disconnect session disconnect triggers are invoked. If trigger hangs then graceful shutdown will hang too. And os.exit() do hang, it sleeps forever.

So 110-disconnect-trigger-check.t test now hangs with iproto graceful shutdown patch.

Making os.exit() from disconnect trigger does not seem as a product case. So let's just change the test not to use os.exit().

Required for full-ci pass of tarantool/tarantool#9457

We are going to make Tarantool shutdown graceful. Particularly for
iproto graceful shutdown we wait while all connections are finished.
On connection disconnect session disconnect triggers are invoked. If
trigger hangs then graceful shutdown will hang too. And os.exit() do
hang, it sleeps forever.

So 110-disconnect-trigger-check.t test now hangs with iproto graceful
shutdown patch.

Making os.exit() from disconnect trigger does not seem as a product
case. So let's just change the test not to use os.exit().

Required for full-ci pass of tarantool/tarantool#9457
@LeonidVas LeonidVas self-requested a review December 15, 2023 08:34
@LeonidVas LeonidVas merged commit e99ce45 into tarantool:master Dec 15, 2023
21 checks passed
@nshy nshy deleted the dont-os-exit-in-disconnect-trigger branch January 29, 2024 07:29
@oleg-jukovec oleg-jukovec mentioned this pull request May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants