You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Önder Sezgin (JIRA)" <ji...@apache.org> on 2018/12/05 21:30:00 UTC
[jira] [Commented] (CAMEL-12861) Throttler seams to malfunction if
system date change during execution
[ https://issues.apache.org/jira/browse/CAMEL-12861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16710655#comment-16710655 ]
Önder Sezgin commented on CAMEL-12861:
--------------------------------------
I think this scenario is expected by design because ThrottlePermit is set by System.currentTimeMillis()
> Throttler seams to malfunction if system date change during execution
> ---------------------------------------------------------------------
>
> Key: CAMEL-12861
> URL: https://issues.apache.org/jira/browse/CAMEL-12861
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.21.2
> Reporter: Michaël COLL
> Priority: Minor
>
> The camel throttler component seams to malfunction if system date is changed during execution.
> Test case :
> * Start a route with a throttle component at 14h00 with configuration :
> ** rejectExecution = true
> ** timePeriodMillis = 2000ms
> ** maximumRequestCount = 10
> * Send 1 message on this route
> * Change system date to 12h00
> * Send 1 message
> * A ThrottlerRejectedExecutionException is thrown
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)