forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C++] ClientImpl::handleClose shouldn't use statics (apache#7068)
ClientImpl::handleClose was using static variables to record the first error on closing a client. This is just wrong. A static stack variable in c++ acts like a global. So if errorClosing was ever set to true in a process, all clients closed in that process after that point would be errored with first error. This fixes a failure in BasicEndToEndTest.testDelayedMessages, which happens sporadically on C++, and always when running the tests in serial, probably due to a double close in some other test. Co-authored-by: Ivan Kelly <ikelly@splunk.com>
- Loading branch information
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters