Skip to content

Update AmqpAppender.java #1225

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

Closed
wants to merge 2 commits into from
Closed

Conversation

yhyecho
Copy link

@yhyecho yhyecho commented Jul 15, 2020

if stopped is true, this.manager.stop(timeout, timeUnit) is not call, and the rabbit connecting not destory

yhyecho added 2 commits July 15, 2020 18:01
if stopped is true,  this.manager.stop(timeout, timeUnit)  is not call, and the rabbit connecting not destory
@pivotal-issuemaster
Copy link

@yhyecho Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@artembilan
Copy link
Member

This doesn't look like a trivial change and it probably needs some simple test-case.

Please, consider to sign the CLA and try to provide the test cover this behavior.

Thanks

@garyrussell
Copy link
Contributor

Thanks for pointing this out and submitting a PR, but we are not allowed to merge your code without you signing the CLA; I will fix this problem in a similar manner.

garyrussell added a commit to garyrussell/spring-amqp that referenced this pull request Jul 22, 2020
Replaces spring-projects#1225

`manager.stop()` was never called to destroy the connection factory, preventing
JVM exit.

Also protect for re-connecting after stop (both appenders).

Tested with a Spring Boot application.

**cherry-pick to 2.2.x, 2.1.x, 1.7.x**
artembilan pushed a commit that referenced this pull request Jul 22, 2020
Replaces #1225

`manager.stop()` was never called to destroy the connection factory, preventing
JVM exit.

Also protect for re-connecting after stop (both appenders).

Tested with a Spring Boot application.

**cherry-pick to 2.2.x, 2.1.x, 1.7.x**
artembilan pushed a commit that referenced this pull request Jul 22, 2020
Replaces #1225

`manager.stop()` was never called to destroy the connection factory, preventing
JVM exit.

Also protect for re-connecting after stop (both appenders).

Tested with a Spring Boot application.

**cherry-pick to 2.2.x, 2.1.x, 1.7.x**
artembilan pushed a commit that referenced this pull request Jul 22, 2020
Replaces #1225

`manager.stop()` was never called to destroy the connection factory, preventing
JVM exit.

Also protect for re-connecting after stop (both appenders).

Tested with a Spring Boot application.

**cherry-pick to 2.2.x, 2.1.x, 1.7.x**

# Conflicts:
#	spring-rabbit/src/main/java/org/springframework/amqp/rabbit/logback/AmqpAppender.java
garyrussell added a commit that referenced this pull request Jul 23, 2020
Replaces #1225

`manager.stop()` was never called to destroy the connection factory, preventing
JVM exit.

Also protect for re-connecting after stop (both appenders).

Tested with a Spring Boot application.

**cherry-pick to 2.2.x, 2.1.x, 1.7.x**
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