beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (BEAM-2256) mongodb sdk MongoDbIO.BoundedMongoDbSource.splitKeysToFilters incorrect
Date Thu, 11 May 2017 22:03:04 GMT


ASF GitHub Bot commented on BEAM-2256:

GitHub user lukecwik opened a pull request:

    Cherry pick #3093: [BEAM-2256] Add the last previous range filter

    Be sure to do all of the following to help us incorporate your contribution
    quickly and easily:
     - [x] Make sure the PR title is formatted like:
       `[BEAM-<Jira issue #>] Description of pull request`
     - [x] Make sure tests pass via `mvn clean verify`.
     - [x] Replace `<Jira issue #>` in the title with the actual Jira issue
           number, if there is one.
     - [x] If this contribution is large, please file an Apache
           [Individual Contributor License Agreement](

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

    $ git pull beam2256

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

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

    This closes #3100
commit 1ba1e031fe7494b94b10674bfb07b975894fde13
Author: Jean-Baptiste Onofré <>
Date:   2017-05-11T20:09:50Z

    [BEAM-2256] Add the last previous range filter


> mongodb sdk MongoDbIO.BoundedMongoDbSource.splitKeysToFilters incorrect
> -----------------------------------------------------------------------
>                 Key: BEAM-2256
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-extensions
>    Affects Versions: Not applicable, 0.4.0, 0.5.0, 0.6.0
>            Reporter: wang hongmin
>            Assignee: Jean-Baptiste Onofré
>              Labels: easyfix
>             Fix For: 2.0.0
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
> When use beam-sdks-java-io-mongodb to count a large collection in MongoDB, I always get
a smaller number than actual size of the collection. It seems a puzzle, until I dived into
source code and trace the execution. The fault exists in method MongoDbIO.BoundedMongoDbSource.splitKeysToFilters(),
which should return one more FILTER than size of input argument splitKeys. 
> I check all version of this file, it seems none was correct.
> Additionally, it seems no suitable [Component]. I choose a similar tag.:)

This message was sent by Atlassian JIRA

View raw message