Skip to content

Conversation

@anmolnar
Copy link
Contributor

Hopefully this will fix the findBugs issue on master in the right way.
@lvfangmin @hanm Please validate.

}

public int getGlobalOutstandingLimit() {
String sc = System.getProperty(GLOBAL_OUTSTANDING_LIMIT);
Copy link
Contributor

Choose a reason for hiding this comment

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

are we reading the system property and parsing the value at every call of shouldThrottle ?
can't we cache the value ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's the case. This is just a dumb revert, please see #712 as another approach for the same issue.

Copy link
Contributor

@hanm hanm left a comment

Choose a reason for hiding this comment

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

LGTM as this effectively resorts to the old approach which has no functional changes.

@eolivelli Does this look good to you? (I saw your code review feedback is 'Request changes' ).

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.

Ok let's fix master branch

@asfgit asfgit closed this in 1507f67 Nov 21, 2018
@hanm
Copy link
Contributor

hanm commented Nov 21, 2018

Committed to master. Thanks @eolivelli , @anmolnar.

@lvfangmin
Copy link
Contributor

Sorry, just saw this, @anmolnar what's the findbugs issue caused by that refactor?

@anmolnar anmolnar deleted the ZOOKEEPER-3177 branch March 11, 2019 18:57
RokLenarcic pushed a commit to RokLenarcic/zookeeper that referenced this pull request Sep 3, 2022
Hopefully this will fix the findBugs issue on master in the right way.
lvfangmin hanm Please validate.

Author: Andor Molnar <andor@apache.org>

Reviewers: Michael Han <hanm@apache.org>, Enrico Olivelli <eolivelli@gmail.com>

Closes apache#711 from anmolnar/ZOOKEEPER-3177
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.

4 participants