Skip to content

Conversation

@jhuan31
Copy link

@jhuan31 jhuan31 commented Mar 29, 2020

…void ping being blocked by long socket closing time

Copy link
Contributor

@ztzg ztzg left a comment

Choose a reason for hiding this comment

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

LGTM (non-binding), but 1. untested, and 2. see my documentation question on the Learner side of this change.

@jhuan31
Copy link
Author

jhuan31 commented Apr 4, 2020

@ztzg I just updated the doc. As for testing, this feature has been enabled in our production zookeepers for a couple months :)

@ztzg
Copy link
Contributor

ztzg commented Apr 6, 2020

@jhuan31: Great; thanks :)

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

Overall good.
I left two comments, PTAL

if (sock != null) {
long startTime = Time.currentElapsedTime();
sock.close();
ServerMetrics.getMetrics().SOCKET_CLOSING_TIME.add(Time.currentElapsedTime() - startTime);
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be useful to record this value even in case of failure ?

Copy link
Author

Choose a reason for hiding this comment

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

I'm hesitating... This metric is to measure the real time for closing a socket. If it fails, say, the socket is closed already, then the elapsed time is not really the time for closing the socket.

Copy link
Contributor

@symat symat left a comment

Choose a reason for hiding this comment

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

nice, thanks for the PR!
I added a few small comments.

Also: I am wondering if we should make this the default behaviour when quorum TLS is enabled. But I don't know if this can have any side-effect. So maybe keeping it optional is the safest way forward.

Copy link
Contributor

@symat symat left a comment

Choose a reason for hiding this comment

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

thanks for your changes, I added a few more requests, please take a look.

…void ping being blocked by long socket closing time
Copy link
Contributor

@symat symat left a comment

Choose a reason for hiding this comment

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

thanks for the fixes! it looks good to me now.
@eolivelli @anmolnar PTAL

@jhuan31
Copy link
Author

jhuan31 commented Jun 10, 2020

@symat @eolivelli I've addressed requested changes. Could you please take a look? Thanks!

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

Looks good.
I will merge tomorrow.
Thank you

@asfgit asfgit closed this in 908c448 Oct 3, 2020
RokLenarcic pushed a commit to RokLenarcic/zookeeper that referenced this pull request Aug 31, 2022
…void ping being blocked by long socket closing time

Author: Jie Huang <[email protected]>

Reviewers: ztzg, hanm, eolivelli, symat

Closes apache#1301 from jhuan31/ZOOKEEPER-3774
RokLenarcic pushed a commit to RokLenarcic/zookeeper that referenced this pull request Aug 31, 2022
…void ping being blocked by long socket closing time

Author: Jie Huang <[email protected]>

Reviewers: ztzg, hanm, eolivelli, symat

Closes apache#1301 from jhuan31/ZOOKEEPER-3774
RokLenarcic pushed a commit to RokLenarcic/zookeeper that referenced this pull request Aug 31, 2022
…void ping being blocked by long socket closing time

Author: Jie Huang <[email protected]>

Reviewers: ztzg, hanm, eolivelli, symat

Closes apache#1301 from jhuan31/ZOOKEEPER-3774
RokLenarcic pushed a commit to RokLenarcic/zookeeper that referenced this pull request Sep 3, 2022
…void ping being blocked by long socket closing time

Author: Jie Huang <[email protected]>

Reviewers: ztzg, hanm, eolivelli, symat

Closes apache#1301 from jhuan31/ZOOKEEPER-3774
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.

5 participants