You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Narsi Reddy Nallamilli (Jira)" <ji...@apache.org> on 2023/06/29 12:44:00 UTC

[jira] [Updated] (CAMEL-19562) aws sqs visibility extender is running forever

     [ https://issues.apache.org/jira/browse/CAMEL-19562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Narsi Reddy Nallamilli updated CAMEL-19562:
-------------------------------------------
    Summary: aws sqs visibility extender is running forever  (was: aws sqs visibiltiy extender is running forever)

> aws sqs visibility extender is running forever
> ----------------------------------------------
>
>                 Key: CAMEL-19562
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19562
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws2
>    Affects Versions: 3.20.5
>         Environment: Camel - 3.20.5
>            Reporter: Narsi Reddy Nallamilli
>            Priority: Minor
>         Attachments: errordetail.txt, errorlist.txt
>
>
> aws sqs visibility extender in some corner case is running forever. Below warning is thrown forever until I had to restart the server.  I see it happen once in a week. This bug is causing the scheduler to be run forever consuming resources.
> {quote}2023-06-23T03:16:03.222Z [Camel (61) thread #43 - SqsTimeoutExtender|#43 - SqsTimeoutExtender] #033[36mo.a.c.c.a.s.Sqs2Consumer#033[m #033[33mWARN #033[m - Extending visibility window failed for exchange Exchange[C6602184B0E4B49-000000000003F2CB]. Will not attempt to extend visibility further. This exception will be ignored.
> 2023-06-23T03:17:03.209Z [Camel (61) thread #43 - SqsTimeoutExtender|#43 - SqsTimeoutExtender] #033[36mo.a.c.c.a.s.Sqs2Consumer#033[m #033[33mWARN #033[m - Extending visibility window failed for exchange Exchange[C6602184B0E4B49-000000000003F2CB]. Will not attempt to extend visibility further. This exception will be ignored.
> 2023-06-23T03:18:03.182Z [Camel (61) thread #43 - SqsTimeoutExtender|#43 - SqsTimeoutExtender] #033[36mo.a.c.c.a.s.Sqs2Consumer#033[m #033[33mWARN #033[m - Extending visibility window failed for exchange Exchange[C6602184B0E4B49-000000000003F2CB]. Will not attempt to extend visibility further. This exception will be ignored.
> 2023-06-23T03:19:03.209Z [Camel (61) thread #43 - SqsTimeoutExtender|#43 - SqsTimeoutExtender] #033[36mo.a.c.c.a.s.Sqs2Consumer#033[m #033[33mWARN #033[m - Extending visibility window failed for exchange Exchange[C6602184B0E4B49-000000000003F2CB]. Will not attempt to extend visibility further. This exception will be ignored.
> 2023-06-23T03:20:03.180Z [Camel (61) thread #43 - SqsTimeoutExtender|#43 - SqsTimeoutExtender] #033[36mo.a.c.c.a.s.Sqs2Consumer#033[m #033[33mWARN #033[m - Extending visibility window failed for exchange Exchange[C6602184B0E4B49-000000000003F2CB]. Will not attempt to extend visibility further. This exception will be ignored.
> 2023-06-23T03:21:03.180Z [Camel (61) thread #43 - SqsTimeoutExtender|#43 - SqsTimeoutExtender] #033[36mo.a.c.c.a.s.Sqs2Consumer#033[m #033[33mWARN #033[m - Extending visibility window failed for exchange Exchange[C6602184B0E4B49-000000000003F2CB]. Will not attempt to extend visibility further. This exception will be ignored.
> 2023-06-23T03:22:03.233Z [Camel (61) thread #43 - SqsTimeoutExtender|#43 - SqsTimeoutExtender] #033[36mo.a.c.c.a.s.Sqs2Consumer#033[m #033[33mWARN #033[m - Extending visibility window failed for exchange Exchange[C6602184B0E4B49-000000000003F2CB]. Will not attempt to extend visibility further. This exception will be ignored.
> 2023-06-23T03:23:03.204Z [Camel (61) thread #43 - SqsTimeoutExtender|#43 - SqsTimeoutExtender] #033[36mo.a.c.c.a.s.Sqs2Consumer#033[m #033[33mWARN #033[m - Extending visibility window failed for exchange Exchange[C6602184B0E4B49-000000000003F2CB]. Will not attempt to extend visibility further. This exception will be ignored.
> 2023-06-23T03:24:03.182Z [Camel (61) thread #43 - SqsTimeoutExtender|#43 - SqsTimeoutExtender] #033[36mo.a.c.c.a.s.Sqs2Consumer#033[m #033[33mWARN #033[m - Extending visibility window failed for exchange Exchange[C6602184B0E4B49-000000000003F2CB]. Will not attempt to extend visibility further. This exception will be ignored.
> 2023-06-23T03:26:03.207Z [Camel (61) thread #43 - SqsTimeoutExtender|#43 - SqsTimeoutExtender] #033[36mo.a.c.c.a.s.Sqs2Consumer#033[m #033[33mWARN #033[m - Extending visibility window failed for exchange Exchange[C6602184B0E4B49-000000000003F2CB]. Will not attempt to extend visibility further. This exception will be ignored.
> {quote}
>  
> I tried reproducing, but couldn't reproduce.
> org.apache.camel.component.aws2.sqs.Sqs2Consumer
> This could happen when scheduler couldn't be cancelled with scheduledFuture.cancel(false) and the scheduler runs forever.
> {quote}final ScheduledFuture<?> scheduledFuture = this.scheduledExecutor.scheduleAtFixedRate(new TimeoutExtender(exchange, repeatSeconds), (long)delay, (long)period, TimeUnit.SECONDS);
> ((ExtendedExchange)exchange.adapt(ExtendedExchange.class)).addOnCompletion(new Synchronization() {
> public void onComplete(Exchange exchange)
> Unknown macro: \{ this.cancelExtender(exchange); }
> public void onFailure(Exchange exchange)
> private void cancelExtender(Exchange exchange) {
> Sqs2Consumer.LOG.trace("Processing done so cancelling TimeoutExtender task for exchangeId: {}", exchange.getExchangeId());
> scheduledFuture.cancel(false);
> }
> });
> {quote}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)