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

[Fixed] close connection when flush fails during drain. #331

Merged
merged 2 commits into from
Aug 6, 2020

Conversation

matthiashanel
Copy link
Contributor

Fixeds #324

Signed-off-by: Matthias Hanel mh@synadia.com

Fixeds #324

Signed-off-by: Matthias Hanel <mh@synadia.com>
@matthiashanel matthiashanel requested a review from sasbury August 5, 2020 16:21
Copy link
Contributor

@sasbury sasbury left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Member

@ColinSullivan1 ColinSullivan1 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you Matthias.

@ColinSullivan1 ColinSullivan1 self-requested a review August 5, 2020 17:10
Copy link
Member

@ColinSullivan1 ColinSullivan1 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 looking into this.

Can you check the failing test?

io.nats.client.impl.DrainTests > testLeftOverTimer FAILED
    java.lang.AssertionError: Timer gone
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at org.junit.Assert.assertFalse(Assert.java:64)
        at io.nats.client.impl.DrainTests.testLeftOverTimer(DrainTests.java:66)

There where more than 1 timer with the same name when running in gradlew
@matthiashanel
Copy link
Contributor Author

@ColinSullivan1 had to change the unit test. running in gradlew there where more than one timer.

@ColinSullivan1 ColinSullivan1 self-requested a review August 6, 2020 17:32
@ColinSullivan1 ColinSullivan1 merged commit 8b298d1 into master Aug 6, 2020
@ColinSullivan1 ColinSullivan1 deleted the drain branch August 6, 2020 17:33
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.

3 participants