[
https://issues.apache.org/jira/browse/CAMEL-17472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17473103#comment-17473103
]
Pascal Schumacher edited comment on CAMEL-17472 at 1/11/22, 7:31 PM:
---------------------------------------------------------------------
I use a remote smpp server for testing. To simulate a disconnect I cut the
network connection.
latch.await() at
[https://github.com/apache/camel/blob/main/core/camel-support/src/main/java/org/apache/camel/support/task/BackgroundTask.java#L154]
throws an InterruptedException when I am testing. No idea why or how debug
this further (the InterrupetException does not contain any useful information).
I guess it would work for me too if I were to use a local smpp server and shut
it down to simulate disconnect.
Edit:
I set a breakpoint at the entry of Thread#interrupt. I hope this is the right
stacktrace:
{code}
Daemon Thread [EnquireLinkSender-0a4b4b93] (Suspended (entry into method
interrupt in Thread))
owns: SMPPSessionContext (id=192)
Thread.interrupt() line: 988
ThreadPoolExecutor$Worker.interruptIfStarted() line: 670
RejectableScheduledThreadPoolExecutor(ThreadPoolExecutor).interruptWorkers()
line: 769
RejectableScheduledThreadPoolExecutor(ThreadPoolExecutor).shutdownNow()
line: 1417
RejectableScheduledThreadPoolExecutor(ScheduledThreadPoolExecutor).shutdownNow()
line: 870
SizedScheduledExecutorService.shutdownNow() line: 241
BackgroundTask.waitForTaskCompletion(CountDownLatch,
ScheduledExecutorService) line: 173
BackgroundTask.run(BooleanSupplier) line: 147
SmppConsumer.reconnect(long) line: 172
SmppConsumer.access$300(SmppConsumer, long) line: 48
SmppConsumer$1.onStateChange(SessionState, SessionState, Session) line:
76
SMPPSessionContext(AbstractSessionContext).fireStateChanged(SessionState,
SessionState, Session) line: 85
SMPPSessionContext.changeState(SessionState) line: 61
SMPPSessionContext(AbstractSessionContext).close() line: 66
SMPPSession(AbstractSession).close() line: 257
AbstractSession$EnquireLinkSender.run() line: 503
{code}
was (Author: pascalschumacher):
I use a remote smpp server for testing. To simulate a disconnect I cut the
network connection.
latch.await() at
[https://github.com/apache/camel/blob/main/core/camel-support/src/main/java/org/apache/camel/support/task/BackgroundTask.java#L154]
throws an InterruptedException when I am testing. No idea why or how debug
this further (the InterrupetException does not contain any useful information).
I guess it would work for me too if I were to use a local smpp server and shut
it down to simulate disconnect.
> 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)