[jira] [Commented] (CAMEL-11987) Camel-SalesForce DTO Issue while using camel-salesforce-maven

2017-11-13 Thread srinivas (JIRA)

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

srinivas commented on CAMEL-11987:
--

Sorry I was on vacation and coul;dn't get to this until this point. I checked 
right now and it did generated all the classes. 

Thank you, I'll use these classes and will let you know if I run into any 
issues.

> Camel-SalesForce DTO Issue while using camel-salesforce-maven
> -
>
> Key: CAMEL-11987
> URL: https://issues.apache.org/jira/browse/CAMEL-11987
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 2.17.7, 2.20.0
>Reporter: srinivas
>Assignee: Zoran Regvart
>Priority: Blocker
> Fix For: 2.21.0
>
>
> I'm trying to connect to our private salesforce cloud using camel and trying 
> to generate DTO's using the camel-salesforce-maven. It connects well and it 
> shows that there are about 627 objects found. Then while trying to generate 
> the java classes it throws the exception as below. I'm using the below 
> command and I've tried with the 2.18. 2.19 and 2.20 versions but I see this 
> consistent error across all the versions. 
> mvn camel-salesforce:generate -DcamelSalesforce.clientId= 
> -DcamelSalesforce.clientSecret=-DcamelSalesforce.userName= 
> -DcamelSalesforce.password= -DcamelSalesforce.loginUrl= 
> -DcamelSalesforce.version=41.0
> [INFO] Scanning for projects...
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO]
>  
> [INFO] 
> 
> [INFO] Building Camel :: Salesforce :: Maven plugin 2.17.8-SNAPSHOT
> [INFO] 
> 
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO] 
> [INFO] --- camel-salesforce-maven-plugin:2.18.1.redhat-21:generate 
> (default-cli) @ camel-salesforce-maven-plugin ---
> ERROR StatusLogger No log4j2 configuration file found. Using default 
> configuration: logging only errors to the 

[jira] [Created] (CAMEL-12004) Add LOG.isDebugEnabled() guard for LOG.debug()

2017-11-13 Thread Mehran Hassani (JIRA)
Mehran Hassani created CAMEL-12004:
--

 Summary: Add LOG.isDebugEnabled() guard for LOG.debug()
 Key: CAMEL-12004
 URL: https://issues.apache.org/jira/browse/CAMEL-12004
 Project: Camel
  Issue Type: Improvement
Reporter: Mehran Hassani
Priority: Minor


I am conducting research on log related bugs. I tried to make a tool to fix 
repetitive yet simple patterns of bugs that are related to logs. In these 
files, there are debug level logging statements containing multiple string 
concatenation or method calls without the if statement before them:


camel-core/src/test/java/org/apache/camel/LanguageTestSupport.java, 
log.debug("Evaluated expression: " + expression + " on exchange: " + exchange + 
" result: " + value);, 97
components/camel-github/src/test/java/org/apache/camel/component/github/consumer/CommitConsumerTest.java,
 log.debug("Got commit with author: " + author.getLogin() + ": " + 
author.getHtmlUrl() + " SHA " + commit.getSha());, 62
components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java,
 log.debug("Using shared queue: " + endpoint.getReplyTo() + " with fixed 
message selector [" + fixedMessageSelector + "] as reply listener: " + 
answer);, 133
components/camel-spring/src/main/java/org/apache/camel/spring/spi/TransactionErrorHandler.java,
 log.debug("Transaction rollback (" + transactionKey + ") redelivered(" + 
redelivered + ") for "+ ids + " due exchange was marked for rollbackOnlyLast 
and caught: ", cause);, 157
components/camel-test/src/main/java/org/apache/camel/test/junit4/LanguageTestSupport.java,
 log.debug("Evaluated expression: " + expression + " on exchange: " + exchange 
+ " result: " + value);, 88
components/camel-testng/src/main/java/org/apache/camel/testng/LanguageTestSupport.java,
 log.debug("Evaluated expression: " + expression + " on exchange: " + exchange 
+ " result: " + value);, 88
tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java,
 getLog().debug("strange; " + activeCount + " thread(s) still active in the 
group "+ threadGroup + " such as " + threadsArray[0]);, 652
tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java,
 getLog().debug("Skipping org.osgi.core -> " + classPathElement.getGroupId() + 
"/" + classPathElement.getArtifactId() + "/" + classPathElement.getVersion());, 
761
tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageDataFormatMojo.java,
 log.debug("Generated " + out + " containing JSon schema for " + name + " data 
format");, 218
tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageHelper.java,
 log.debug("checking  if " + path + " (" + r.getDirectory() + "/" + suffix + ") 
has changed.");, 48
tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageLanguageMojo.java,
 log.debug("Generated " + out + " containing JSon schema for " + name + " 
language");, 215
tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootStarterMojo.java,
 getLog().debug("Found dependency node: " + artifact.getGroupId() + ":" + 
artifact.getArtifactId() + ":" + artifact.getVersion() + " - scope=" + 
artifact.getScope());, 401
tooling/maven/guice-maven-plugin/src/main/java/org/apache/camel/guice/maven/RunMojo.java,
 getLog().debug("strange; " + activeCount + " thread(s) still active in the 
group "+ threadGroup + " such as " + threadsArray[0]);, 515

Would you be interested in adding the if before these logging statements?






--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (CAMEL-11932) For fixed length records crlf field is not honored during un-marshaling

2017-11-13 Thread JIRA

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

Önder Sezgin updated CAMEL-11932:
-
Fix Version/s: 2.19.5

> For fixed length records crlf field is not honored during un-marshaling 
> 
>
> Key: CAMEL-11932
> URL: https://issues.apache.org/jira/browse/CAMEL-11932
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-bindy
>Affects Versions: 2.19.3
>Reporter: Marcin Domanski
>Assignee: Önder Sezgin
>Priority: Minor
> Fix For: 2.19.5, 2.20.1, 2.21.0
>
>
> Reading documentation [here|http://camel.apache.org/bindy.html] you can find 
> that there is a {{@FixedLengthRecord.clrf}} annotation parameter described as:
> bq. optional - possible values = WINDOWS,UNIX,MAC, or custom; default value = 
> WINDOWS - allow to define the carriage return character to use. If you 
> specify a value other than the three listed before, the value you enter 
> (custom) will be used as the CRLF character(s)
> Unfortunately it seems that this is honored only for marshaling, as for 
> un-marshaling in {{BindyFixedLengthDataFormat.unmarshal()}} 
> java.util.Scanner.nextLine() is used. This implementation ignores the crlf 
> parameter during un-marshaling.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11932) For fixed length records crlf field is not honored during un-marshaling

2017-11-13 Thread JIRA

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

Önder Sezgin commented on CAMEL-11932:
--

Backported. Will be available by 2.19.5 for 2.19.x branch

> For fixed length records crlf field is not honored during un-marshaling 
> 
>
> Key: CAMEL-11932
> URL: https://issues.apache.org/jira/browse/CAMEL-11932
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-bindy
>Affects Versions: 2.19.3
>Reporter: Marcin Domanski
>Assignee: Önder Sezgin
>Priority: Minor
> Fix For: 2.19.5, 2.20.1, 2.21.0
>
>
> Reading documentation [here|http://camel.apache.org/bindy.html] you can find 
> that there is a {{@FixedLengthRecord.clrf}} annotation parameter described as:
> bq. optional - possible values = WINDOWS,UNIX,MAC, or custom; default value = 
> WINDOWS - allow to define the carriage return character to use. If you 
> specify a value other than the three listed before, the value you enter 
> (custom) will be used as the CRLF character(s)
> Unfortunately it seems that this is honored only for marshaling, as for 
> un-marshaling in {{BindyFixedLengthDataFormat.unmarshal()}} 
> java.util.Scanner.nextLine() is used. This implementation ignores the crlf 
> parameter during un-marshaling.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11999) Cannot create queue/message for Azure

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11999:


oscerd commented on issue #2087: [CAMEL-11999] Cannot create queue/message for 
Azure
URL: https://github.com/apache/camel/pull/2087#issuecomment-343929732
 
 
   I guess the message was for me. I already cherry picked and backported. 
Thanks @onders86 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Cannot create queue/message for Azure
> -
>
> Key: CAMEL-11999
> URL: https://issues.apache.org/jira/browse/CAMEL-11999
> Project: Camel
>  Issue Type: Bug
>  Components: camel-azure
>Affects Versions: 2.20.0
>Reporter: Thomas Diesler
>Assignee: Thomas Diesler
> Fix For: 2.20.1, 2.21.0
>
>
> The Azure Storage Queue API may have changed unnoticed since the component 
> was incepted. 
> Currently it is broken in multiple places.
> CrossRef: https://github.com/wildfly-extras/wildfly-camel/issues/1819



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11999) Cannot create queue/message for Azure

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11999:


onders86 commented on issue #2087: [CAMEL-11999] Cannot create queue/message 
for Azure
URL: https://github.com/apache/camel/pull/2087#issuecomment-343921649
 
 
   @davsclaus i guess i missed your message. I will cherry-pick. Thanks.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Cannot create queue/message for Azure
> -
>
> Key: CAMEL-11999
> URL: https://issues.apache.org/jira/browse/CAMEL-11999
> Project: Camel
>  Issue Type: Bug
>  Components: camel-azure
>Affects Versions: 2.20.0
>Reporter: Thomas Diesler
>Assignee: Thomas Diesler
> Fix For: 2.20.1, 2.21.0
>
>
> The Azure Storage Queue API may have changed unnoticed since the component 
> was incepted. 
> Currently it is broken in multiple places.
> CrossRef: https://github.com/wildfly-extras/wildfly-camel/issues/1819



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11977:


oscerd commented on issue #2090: CAMEL-11977: MongoDB Tailable cursor consumer 
fails to stop on shutdown
URL: https://github.com/apache/camel/pull/2090#issuecomment-343901740
 
 
   No need for a PR on the other branch. We usually ask for PR on master and we 
cherry-pick commit on old branches.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
>Assignee: Andrea Cosentino
> Fix For: 2.20.2, 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11977:


igorko commented on issue #2090: CAMEL-11977: MongoDB Tailable cursor consumer 
fails to stop on shutdown
URL: https://github.com/apache/camel/pull/2090#issuecomment-343901339
 
 
   SHould I create another pull request for branch or no?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
>Assignee: Andrea Cosentino
> Fix For: 2.20.2, 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11977:


igorko commented on issue #2090: CAMEL-11977: MongoDB Tailable cursor consumer 
fails to stop on shutdown
URL: https://github.com/apache/camel/pull/2090#issuecomment-343901339
 
 
   SHould I create another pull request for branch or no?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
>Assignee: Andrea Cosentino
> Fix For: 2.20.2, 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11977:


oscerd commented on issue #2090: CAMEL-11977: MongoDB Tailable cursor consumer 
fails to stop on shutdown
URL: https://github.com/apache/camel/pull/2090#issuecomment-343901229
 
 
   Thanks for the PR. It has been merged on master and 2.20.x


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
>Assignee: Andrea Cosentino
> Fix For: 2.20.2, 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread Andrea Cosentino (JIRA)

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

Andrea Cosentino updated CAMEL-11977:
-
Fix Version/s: 2.20.2

> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
> Fix For: 2.20.2, 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Resolved] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread Andrea Cosentino (JIRA)

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

Andrea Cosentino resolved CAMEL-11977.
--
Resolution: Fixed

> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
>Assignee: Andrea Cosentino
> Fix For: 2.20.2, 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Assigned] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread Andrea Cosentino (JIRA)

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

Andrea Cosentino reassigned CAMEL-11977:


Assignee: Andrea Cosentino

> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
>Assignee: Andrea Cosentino
> Fix For: 2.20.2, 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Work stopped] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread Andrea Cosentino (JIRA)

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

Work on CAMEL-11977 stopped by Andrea Cosentino.

> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
>Assignee: Andrea Cosentino
> Fix For: 2.20.2, 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11977:


Github user oscerd closed the pull request at:

https://github.com/apache/camel/pull/2090


> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
> Fix For: 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11977:


oscerd closed pull request #2090: CAMEL-11977: MongoDB Tailable cursor consumer 
fails to stop on shutdown
URL: https://github.com/apache/camel/pull/2090
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingProcess.java
 
b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingProcess.java
index 6192949c8ef..3030c2d4231 100644
--- 
a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingProcess.java
+++ 
b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbTailingProcess.java
@@ -180,6 +180,8 @@ private void doRun() {
 if (keepRunning) {
 LOG.debug("Cursor not found exception from MongoDB, will 
regenerate cursor. This is normal behaviour with tailable cursors.", e);
 }
+} catch (IllegalStateException e) {
+// do nothing
 }
 
 // the loop finished, persist the lastValue just in case we are 
shutting down


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
> Fix For: 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11977:


oscerd commented on issue #2090: CAMEL-11977: MongoDB Tailable cursor consumer 
fails to stop on shutdown
URL: https://github.com/apache/camel/pull/2090#issuecomment-343899533
 
 
   No, 2.20.1 is alreay under vote after cut, it will be in 2.20.2. Thanks :-)


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
> Fix For: 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11977:


igorko opened a new pull request #2090: CAMEL-11977: MongoDB Tailable cursor 
consumer fails to stop on shutdown
URL: https://github.com/apache/camel/pull/2090
 
 
   Is it still possible to include this fix into v2.20.1. It would be very good 
if so.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
> Fix For: 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11977:


GitHub user igorko opened a pull request:

https://github.com/apache/camel/pull/2090

CAMEL-11977: MongoDB Tailable cursor consumer fails to stop on shutdown

Is it still possible to include this fix into v2.20.1. It would be very 
good if so.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/igorko/camel master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/camel/pull/2090.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #2090


commit 2923c85347f8ae03185d12a4b5c23a8978f2f020
Author: Igor Paliychuk 
Date:   2017-11-13T11:53:58Z

CAMEL-11977: MongoDB Tailable cursor consumer fails to stop on shutdown




> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
> Fix For: 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11977) MongoDB Tailable cursor consumer fails to stop on shutdown

2017-11-13 Thread Ihor Paliichuk (JIRA)

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

Ihor Paliichuk commented on CAMEL-11977:


mongodb driver team applied fix to driver so when cursor closing was requested, 
hasNext will throw exception(instead of returning) 
https://jira.mongodb.org/browse/JAVA-2651 maybe this is better then returning, 
but for camel it is bad because camel cursor still doesn't want to stop. This 
time I think there should be made some fix(maybe try/catch) on camel side.

> MongoDB Tailable cursor consumer fails to stop on shutdown
> --
>
> Key: CAMEL-11977
> URL: https://issues.apache.org/jira/browse/CAMEL-11977
> Project: Camel
>  Issue Type: Bug
>  Components: camel-mongodb, camel-mongodb3
>Affects Versions: 2.20.0
> Environment: Windows 10, Java 1.8
>Reporter: Ihor Paliichuk
> Fix For: 2.21.0
>
>
> MongoDB Tailable cursor consumer fails to stop on shutdown(when using Ctrl+C) 
> if collection is not empty. Routes are described in xml file.
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopping MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ... 
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Going to wait for stopping
> When collection is empty, all is ok and I see next line
> [Camel (...) thread #8 - ShutdownTask] INFO  o.a.c.c.m.MongoDbTailingProcess 
> - Stopped MongoDB Tailable Cursor consumer, bound to collection: db: ..., 
> col: ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-11954) Camel JMX name for cluster service

2017-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CAMEL-11954:


vrlgohel commented on issue #2088: CAMEL-11954: Renamed ha packages to cluster
URL: https://github.com/apache/camel/pull/2088#issuecomment-343854980
 
 
   Thanks Andrea!


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Camel JMX name for cluster service
> --
>
> Key: CAMEL-11954
> URL: https://issues.apache.org/jira/browse/CAMEL-11954
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-core, jmx
>Reporter: Claus Ibsen
>Assignee: Viral Gohel
> Fix For: 2.21.0
>
> Attachments: CAMEL11954-Renamed-HA-packages-to-cluster.patch
>
>
> We use ha today, which is a bit too short and confusing.
> Lets rename this to something better, like cluster.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)