You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/03/13 16:02:39 UTC

[jira] [Commented] (CAMEL-8483) MongoDB Endpoints: Allow ReadPreference to be set on consumers

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

ASF GitHub Bot commented on CAMEL-8483:
---------------------------------------

GitHub user jpeschke2608 opened a pull request:

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

    CAMEL-8483: Removed readPreference from the list of invalid options for camel consumer endpoints

    Hi,
    This one is about the issue https://issues.apache.org/jira/browse/CAMEL-8483, also discussed here:
    http://camel.465427.n5.nabble.com/MongoDB-Consumer-Endpoint-ReadPreference-cannot-be-set-tc5764015.html
    
    I simply removed the "readPreference" option from the list of invalid options, which should allow you to define MongoDB consumer endpoints with a non-default readPreference (for example to consume data from a tailable consumer by reading from the secondary hosts in a MongoDB replica set).
    
    This is my first GitHub commit/Pull request, so I hope I didn't break anything :).
    
    Best regards,
    Joerg

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

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

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

    https://github.com/apache/camel/pull/434.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 #434
    
----
commit c0ce4eba934a5ec762c9b76470afe2a95f6b80b7
Author: jpeschke2608 <pe...@etone.de>
Date:   2015-03-13T14:55:58Z

    CAMEL-8483: Removed readPreference from the list of invalid options for
    camel consumer endpoints

----


> MongoDB Endpoints: Allow ReadPreference to be set on consumers
> --------------------------------------------------------------
>
>                 Key: CAMEL-8483
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8483
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-mongodb
>    Affects Versions: 2.15.0
>            Reporter: Jörg Peschke
>            Priority: Minor
>
> When creating a MongoDB Consumer endpoint with the "readPreference" option specified, an exception will be thrown (operation, writeConcern, writeConcernRef, readPreference, dynamicity, invokeGetLastError options cannot appear on a consumer endpoint).
> This should be changed so it is possible to define a readPreference for MongoDB consumers.
> See also: http://camel.465427.n5.nabble.com/MongoDB-Consumer-Endpoint-ReadPreference-cannot-be-set-tc5764015.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)