jenkinsci/eiffel-broadcaster-plugin

Channel creations aren't checked for null

Open

#88 opened on Jan 5, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Java (14 forks)auto 404
buggood first issue

Repository metrics

Stars
 (12 stars)
PR merge metrics
 (PR metrics pending)

Description

Jenkins and plugins versions report

N/A; bug exists in all environments.

What Operating System are you using (both controller, and any agents involved in the problem)?

N/A; bug exists in all environments.

Reproduction steps

  1. Shut down the AMQP connection from the server side.
  2. Be extremely unlucky when you send the next event.

Expected Results

Clean reconnection after the disconnection.

Actual Results

An NPE when com.rabbitmq.client.Connection#createChannel returns null (which is legitimate and documented behavior):

https://github.com/jenkinsci/eiffel-broadcaster-plugin/blob/295b6b484d7979c1e4e2e830b2a426612d4d2ec6/src/main/java/com/axis/jenkins/plugins/eiffel/eiffelbroadcaster/MQConnection.java#L304-L312

This causes the message queue thread to die, and prior to v2.5.0 it wouldn't be able to recover either.

Anything else?

No response

Contributor guide