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

Issue 482: Reevaluating number of client connections dynamically in the teardown script #483

Conversation

nishant-yt
Copy link
Contributor

Signed-off-by: Nishant Gupta Nishant_Gupta3@dell.com

Change log description

Currently the CONN_COUNT variable is only evaluated once in the zookeeperTeardown.sh script
As a result, the loop would always take 30 seconds if there were client connections present when the script started to run, and ZK pod would terminate with 137 error code with the default termination grace period set to 30s. Need to make sure CONN_COUNT gets reevaluated every cycle and allows the code to break out of the loop earlier.

Purpose of the change

Fixes #482

What the code does

Moves the CONN_COUNT variable inside the for loop

How to verify it

All e2e should pass

…he teardown script

Signed-off-by: Nishant Gupta <Nishant_Gupta3@dell.com>
@codecov
Copy link

codecov bot commented Jun 8, 2022

Codecov Report

Merging #483 (446681e) into master (406b7e7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #483   +/-   ##
=======================================
  Coverage   85.04%   85.04%           
=======================================
  Files          12       12           
  Lines        1605     1605           
=======================================
  Hits         1365     1365           
  Misses        155      155           
  Partials       85       85           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 406b7e7...446681e. Read the comment docs.

Copy link
Contributor

@anishakj anishakj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@jkhalack jkhalack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anishakj anishakj merged commit 1cc1844 into master Jun 8, 2022
amuraru pushed a commit to adobe/zookeeper-operator that referenced this pull request Jun 8, 2022
…he teardown script (pravega#483)

Signed-off-by: Nishant Gupta <Nishant_Gupta3@dell.com>
mmoscher pushed a commit to mmoscher/zookeeper-operator that referenced this pull request Oct 12, 2022
…he teardown script (pravega#483)

Signed-off-by: Nishant Gupta <Nishant_Gupta3@dell.com>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
cheleb pushed a commit to cheleb/zookeeper-operator that referenced this pull request Apr 15, 2023
…he teardown script (pravega#483)

Signed-off-by: Nishant Gupta <Nishant_Gupta3@dell.com>
Signed-off-by: Marco Moscher <moscher@modell-aachen.de>
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.

Number of client connections not reevaluated dynamically in the teardown script
3 participants