You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Pascal Schumacher (Jira)" <ji...@apache.org> on 2022/01/11 17:22:00 UTC

[jira] [Comment Edited] (CAMEL-17472) camel-smpp: Consumer reconnect no longer works after updating to 3.14.0

    [ https://issues.apache.org/jira/browse/CAMEL-17472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17472962#comment-17472962 ] 

Pascal Schumacher edited comment on CAMEL-17472 at 1/11/22, 5:21 PM:
---------------------------------------------------------------------

[~orpiske] Thank you very much for looking into this.

I tried your fix, but it does not seem to be enough to fix the issue.

With the fix i get:
{code:java}
2022-01-11 17:50:19.482  WARN 17128 --- [Sender-12511ac2] o.a.camel.component.smpp.SmppConsumer    : Lost connection to: smpp://XXX:YYYY - trying to reconnect...
2022-01-11 17:50:19.486  WARN 17128 --- [Sender-12511ac2] o.a.camel.support.task.BackgroundTask    : Interrupted while waiting for the repeatable task to execute
{code}
no further reconnection attempts/log messages.

For comparision the log with camel 3.13.0:
{code:java}
2022-01-11 18:14:29.203  WARN 13456 --- [Sender-56f2f152] o.a.camel.component.smpp.SmppConsumer    : Lost connection to: smpp://XXX:YYY - trying to reconnect...
2022-01-11 18:14:29.204  INFO 13456 --- [      Thread-36] o.a.camel.component.smpp.SmppConsumer    : Schedule reconnect after 5000 millis
2022-01-11 18:14:34.207  INFO 13456 --- [      Thread-36] o.a.camel.component.smpp.SmppConsumer    : Trying to reconnect to smpp://XXX:YYY - attempt #1
2022-01-11 18:14:34.218  WARN 13456 --- [      Thread-36] o.a.camel.component.smpp.SmppConsumer    : Failed to reconnect to smpp://XXX:YYY
2022-01-11 18:15:34.219  INFO 13456 --- [      Thread-36] o.a.camel.component.smpp.SmppConsumer    : Trying to reconnect to smpp://XXX:YYY - attempt #2
2022-01-11 18:15:34.254  INFO 13456 --- [      Thread-36] org.jsmpp.session.SMPPSession            : Connected from port 62124 to /XXX:YYY
2022-01-11 18:15:34.255  INFO 13456 --- [Worker-52477284] org.jsmpp.session.SMPPSession            : Starting PDUReaderWorker
2022-01-11 18:15:34.390  INFO 13456 --- [ool-10-thread-1] org.jsmpp.session.SMPPSession            : Changing processor degree to 1
2022-01-11 18:15:34.390  INFO 13456 --- [      Thread-36] org.jsmpp.bean.OptionalParameters        : Optional Parameter Tag class org.jsmpp.bean.OptionalParameter$Sc_interface_version not found
2022-01-11 18:15:34.391  INFO 13456 --- [      Thread-36] o.a.camel.component.smpp.SmppConsumer    : Reconnected to smpp://XXX:YYY
{code}


was (Author: pascalschumacher):
[~orpiske] Thank you very much for looking into this.

I tried you fix, but it does not seem to be enough to fix this issue.

With the fix i get:

{code}
2022-01-11 17:50:19.482  WARN 17128 --- [Sender-12511ac2] o.a.camel.component.smpp.SmppConsumer    : Lost connection to: smpp://XXX:YYYY - trying to reconnect...
2022-01-11 17:50:19.486  WARN 17128 --- [Sender-12511ac2] o.a.camel.support.task.BackgroundTask    : Interrupted while waiting for the repeatable task to execute
{code}

no further reconnection attempts/log messages.

For comparision the log with camel 3.13.0:

{code}
2022-01-11 18:14:29.203  WARN 13456 --- [Sender-56f2f152] o.a.camel.component.smpp.SmppConsumer    : Lost connection to: smpp://XXX:YYY - trying to reconnect...
2022-01-11 18:14:29.204  INFO 13456 --- [      Thread-36] o.a.camel.component.smpp.SmppConsumer    : Schedule reconnect after 5000 millis
2022-01-11 18:14:34.207  INFO 13456 --- [      Thread-36] o.a.camel.component.smpp.SmppConsumer    : Trying to reconnect to smpp://XXX:YYY - attempt #1
2022-01-11 18:14:34.218  WARN 13456 --- [      Thread-36] o.a.camel.component.smpp.SmppConsumer    : Failed to reconnect to smpp://XXX:YYY
2022-01-11 18:15:34.219  INFO 13456 --- [      Thread-36] o.a.camel.component.smpp.SmppConsumer    : Trying to reconnect to smpp://XXX:YYY - attempt #2
2022-01-11 18:15:34.254  INFO 13456 --- [      Thread-36] org.jsmpp.session.SMPPSession            : Connected from port 62124 to /XXX:YYY
2022-01-11 18:15:34.255  INFO 13456 --- [Worker-52477284] org.jsmpp.session.SMPPSession            : Starting PDUReaderWorker
2022-01-11 18:15:34.390  INFO 13456 --- [ool-10-thread-1] org.jsmpp.session.SMPPSession            : Changing processor degree to 1
2022-01-11 18:15:34.390  INFO 13456 --- [      Thread-36] org.jsmpp.bean.OptionalParameters        : Optional Parameter Tag class org.jsmpp.bean.OptionalParameter$Sc_interface_version not found
2022-01-11 18:15:34.391  INFO 13456 --- [      Thread-36] o.a.camel.component.smpp.SmppConsumer    : Reconnected to smpp://XXX:YYY
{code}



> camel-smpp: Consumer reconnect no longer works after updating to 3.14.0
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-17472
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17472
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-smpp
>    Affects Versions: 3.14.0
>            Reporter: Pascal Schumacher
>            Assignee: Otavio Rodolfo Piske
>            Priority: Major
>             Fix For: 3.15.0, 3.14.1
>
>
> We using camel-smpp with Spring Boot.
> After updating the version from 3.13.0 to 3.14.0 reconnecting (at least for the consumer, do not know if the producer is also affected) does not seem to work anymore.
> We use the default values for maxReconnect and initialReconnectDelay. We set reconnectDelay to 60000.
> With version 3.13.0 and before camel tried to reconnect for a long time. With camel 3.14.0 there does not seem to be any reconnect attempts:
> {code}
> Jan 11, 2022 @ 04:20:11.499 - SmppConsumer - Lost connection to: smpp://XXX:YYY - trying to reconnect...
> Jan 11, 2022 @ 04:20:16.516 - BackgroundTask - The task smpp-reconnect does not have more budget to continue running
> Jan 11, 2022 @ 04:20:17.516 - BackgroundTask - The task smpp-reconnect does not have more budget to continue running
> Jan 11, 2022 @ 04:20:18.516 - BackgroundTask - The task smpp-reconnect does not have more budget to continue running
> Jan 11, 2022 @ 04:20:19.516 - BackgroundTask - The task smpp-reconnect does not have more budget to continue running
> Jan 11, 2022 @ 04:20:20.516 - BackgroundTask - The task smpp-reconnect does not have more budget to continue running
> Jan 11, 2022 @ 04:20:21.516 - BackgroundTask - The task smpp-reconnect does not have more budget to continue running
> ... (endless repeat of the last log message)
> {code}
> I guess this was caused by https://issues.apache.org/jira/browse/CAMEL-17121
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)