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

Otavio Rodolfo Piske edited comment on CAMEL-17472 at 1/11/22, 6:12 PM:
------------------------------------------------------------------------

Happy to help!

That's very strange. I have just tested the patch using the manual reconnect 
test and I got this:
{code:java}
2022-01-11 19:04:58,171 [main           ] DEBUG SmppConsumer                   
- Connecting to: smpp://smppclient@localhost:2775...
2022-01-11 19:04:58,186 [main           ] INFO  SMPPSession                    
- Connected from port 37744 to localhost/127.0.0.1:2775
2022-01-11 19:04:58,188 [Worker-fe0d7ef6] INFO  SMPPSession                    
- Starting PDUReaderWorker
2022-01-11 19:05:08,139 [Worker-fe0d7ef6] INFO  SMPPSession                    
- Reading PDU session fe0d7ef6 in state OPEN: null
2022-01-11 19:05:08,142 [Worker-fe0d7ef6] WARN  SmppConsumer                   
- Lost connection to: smpp://smppclient@localhost:2775 - trying to reconnect...
2022-01-11 19:05:13,149 [ smpp-reconnect] INFO  SmppConsumer                   
- Trying to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:13,152 [ smpp-reconnect] WARN  SmppConsumer                   
- Failed to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:14,149 [ smpp-reconnect] INFO  SmppConsumer                   
- Trying to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:14,150 [ smpp-reconnect] WARN  SmppConsumer                   
- Failed to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:15,149 [ smpp-reconnect] INFO  SmppConsumer                   
- Trying to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:15,150 [ smpp-reconnect] WARN  SmppConsumer                   
- Failed to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:16,149 [ smpp-reconnect] INFO  SmppConsumer                   
- Trying to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:16,150 [ smpp-reconnect] WARN  SmppConsumer                   
- Failed to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:17,149 [ smpp-reconnect] INFO  SmppConsumer                   
- Trying to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:17,149 [ smpp-reconnect] INFO  SMPPSession                    
- Connected from port 37754 to localhost/127.0.0.1:2775
2022-01-11 19:05:17,150 [Worker-eca5d2f0] INFO  SMPPSession                    
- Starting PDUReaderWorker
 
{code}
 

Is there something else I can do to reproduce the configuration you have?

 

1. 
[https://github.com/apache/camel/blob/main/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppConsumerReconnectManualIT.java]


was (Author: orpiske):
Happy to help!

 

That's very strange. I have just tested the path using the manual reconnect 
test and I got this:
{code:java}
2022-01-11 19:04:58,171 [main           ] DEBUG SmppConsumer                   
- Connecting to: smpp://smppclient@localhost:2775...
2022-01-11 19:04:58,186 [main           ] INFO  SMPPSession                    
- Connected from port 37744 to localhost/127.0.0.1:2775
2022-01-11 19:04:58,188 [Worker-fe0d7ef6] INFO  SMPPSession                    
- Starting PDUReaderWorker
2022-01-11 19:05:08,139 [Worker-fe0d7ef6] INFO  SMPPSession                    
- Reading PDU session fe0d7ef6 in state OPEN: null
2022-01-11 19:05:08,142 [Worker-fe0d7ef6] WARN  SmppConsumer                   
- Lost connection to: smpp://smppclient@localhost:2775 - trying to reconnect...
2022-01-11 19:05:13,149 [ smpp-reconnect] INFO  SmppConsumer                   
- Trying to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:13,152 [ smpp-reconnect] WARN  SmppConsumer                   
- Failed to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:14,149 [ smpp-reconnect] INFO  SmppConsumer                   
- Trying to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:14,150 [ smpp-reconnect] WARN  SmppConsumer                   
- Failed to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:15,149 [ smpp-reconnect] INFO  SmppConsumer                   
- Trying to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:15,150 [ smpp-reconnect] WARN  SmppConsumer                   
- Failed to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:16,149 [ smpp-reconnect] INFO  SmppConsumer                   
- Trying to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:16,150 [ smpp-reconnect] WARN  SmppConsumer                   
- Failed to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:17,149 [ smpp-reconnect] INFO  SmppConsumer                   
- Trying to reconnect to smpp://smppclient@localhost:2775
2022-01-11 19:05:17,149 [ smpp-reconnect] INFO  SMPPSession                    
- Connected from port 37754 to localhost/127.0.0.1:2775
2022-01-11 19:05:17,150 [Worker-eca5d2f0] INFO  SMPPSession                    
- Starting PDUReaderWorker
 
{code}
 

Is there something else I can do to reproduce the configuration you have?

 

1. 
[https://github.com/apache/camel/blob/main/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/integration/SmppConsumerReconnectManualIT.java]

> 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)

Reply via email to