[
https://issues.apache.org/jira/browse/CAMEL-18633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Manuel Langer updated CAMEL-18633:
----------------------------------
Description:
In class org.apache.camel.component.mock.MockEndPoint, there is bug in the
following method:
protected void waitForCompleteLatch(long timeout) throws InterruptedException {
// Wait for a default 10 seconds if resultWaitTime is not set
long waitTime = timeout == 0 ? 10000L ** : timeout{*};{*}
// now let's wait for the results
{_}LOG{_}.debug("Waiting on the latch for: {} millis"{*},{*}
{color:#ff0000}*timeout*{color}){*};{*}
** if (!latch.await(waitTime, TimeUnit.{_}MILLISECONDS{_})) {
{_}LOG{_}.warn("The latch did not reach 0 within the specified
time"){*};{*}
}
}
Use waitTime instead of timeout in the debug log:
{_}LOG{_}.debug("Waiting on the latch for: {} millis"{*},{*} timeout){*};{*}
was:
In class org.apache.camel.component.mock.MockEndPoint, there is bug in the
following method:
protected void waitForCompleteLatch(long timeout) throws InterruptedException {
// Wait for a default 10 seconds if resultWaitTime is not set
long waitTime = timeout == 0 ? 10000L ** : timeout{*};{*}
// now let's wait for the results
{_}LOG{_}.debug("Waiting on the latch for: {} millis"{*},{*}
{color:#FF0000}*timeout*{color}){*};{*}
** if (!latch.await(waitTime,\{*} TimeUnit.{_}MILLISECONDS{_})) {
{_}LOG{_}.warn("The latch did not reach 0 within the specified
time"){*};{*}
}
}
Use waitTime instead of timeout in the debug log:
{_}LOG{_}.debug("Waiting on the latch for: {} millis"{*},{*} timeout){*};{*}
> Wrong debug log output when using MockEndpoint
> ----------------------------------------------
>
> Key: CAMEL-18633
> URL: https://issues.apache.org/jira/browse/CAMEL-18633
> Project: Camel
> Issue Type: Bug
> Reporter: Manuel Langer
> Priority: Minor
>
> In class org.apache.camel.component.mock.MockEndPoint, there is bug in the
> following method:
> protected void waitForCompleteLatch(long timeout) throws InterruptedException
> {
> // Wait for a default 10 seconds if resultWaitTime is not set
> long waitTime = timeout == 0 ? 10000L ** : timeout{*};{*}
> // now let's wait for the results
> {_}LOG{_}.debug("Waiting on the latch for: {} millis"{*},{*}
> {color:#ff0000}*timeout*{color}){*};{*}
> ** if (!latch.await(waitTime, TimeUnit.{_}MILLISECONDS{_})) {
> {_}LOG{_}.warn("The latch did not reach 0 within the specified
> time"){*};{*}
> }
> }
> Use waitTime instead of timeout in the debug log:
> {_}LOG{_}.debug("Waiting on the latch for: {} millis"{*},{*} timeout){*};{*}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)