camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David J. M. Karlsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7504) Improve the throttler to have discarding/filtering capabilities
Date Mon, 23 Jun 2014 20:06:24 GMT

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

David J. M. Karlsen commented on CAMEL-7504:
--------------------------------------------

Works like a charm!:
{noformat}
2014-06-23 21:49:15,467 [Camel (camel-1) thread #0 - timer://myTimer][][][][][][][] ERROR
org.apache.camel.processor.FatalFallbackErrorHandler:54 - \--> Previous exception on exchangeId:
ID-aap-prx-01-34540-140300
3938060-0-366007
java.util.concurrent.RejectedExecutionException: Exceed the max request limit!
        at org.apache.camel.processor.Throttler.processDelay(Throttler.java:215) ~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.DelayProcessorSupport.process(DelayProcessorSupport.java:168)
~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)
~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)
~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:40)
~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at com.davidkarlsen.httptest.MyRouteBuilder$2.process(MyRouteBuilder.java:113) ~[http-test-1.0-SNAPSHOT.jar:na]
        at org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.FatalFallbackErrorHandler.process(FatalFallbackErrorHandler.java:42)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.RedeliveryErrorHandler.deliverToFailureProcessor(RedeliveryErrorHandler.java:839)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:337)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118) [camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) [camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:157)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:68) [camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at java.util.Timer$TimerImpl.run(Timer.java:291) [na:na]
2014-06-23 21:49:15,470 [Camel (camel-1) thread #0 - timer://myTimer][][][][][][][] ERROR
org.apache.camel.processor.FatalFallbackErrorHandler:55 - \--> New exception on exchangeId:
ID-aap-prx-01-34540-14030039380
60-0-366007
java.util.concurrent.RejectedExecutionException: Exceed the max request limit!
        at org.apache.camel.processor.Throttler.processDelay(Throttler.java:215) ~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.DelayProcessorSupport.process(DelayProcessorSupport.java:168)
~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)
~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)
~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:40)
~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at com.davidkarlsen.httptest.MyRouteBuilder$2.process(MyRouteBuilder.java:113) ~[http-test-1.0-SNAPSHOT.jar:na]
        at org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
~[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.FatalFallbackErrorHandler.process(FatalFallbackErrorHandler.java:42)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.RedeliveryErrorHandler.deliverToFailureProcessor(RedeliveryErrorHandler.java:839)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:337)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118) [camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) [camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:157)
[camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:68) [camel-core-2.14-20140617.030729-34.jar:2.14-SNAPSHOT]
        at java.util.Timer$TimerImpl.run(Timer.java:291) [na:na]
{noformat}

Thanks!

> Improve the throttler to have discarding/filtering capabilities
> ---------------------------------------------------------------
>
>                 Key: CAMEL-7504
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7504
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: David J. M. Karlsen
>            Assignee: Willem Jiang
>
> It would be nice if the throttler, http://camel.apache.org/throttler.html, could discard/filter
the messages exceeding the limit.
> My usecase is to send alerts to a alering route, and stick the trottler in front of an
smtp endpoint to limit the number of emails sent during a period.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message