[ https://issues.apache.org/jira/browse/CAMEL-11977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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)