[
https://issues.apache.org/jira/browse/BEAM-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16007275#comment-16007275
]
ASF GitHub Bot commented on BEAM-2256:
--------------------------------------
GitHub user lukecwik opened a pull request:
https://github.com/apache/beam/pull/3100
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](https://www.apache.org/licenses/icla.pdf).
---
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lukecwik/incubator-beam beam2256
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/beam/pull/3100.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 #3100
----
commit 1ba1e031fe7494b94b10674bfb07b975894fde13
Author: Jean-Baptiste Onofré <[email protected]>
Date: 2017-05-11T20:09:50Z
[BEAM-2256] Add the last previous range filter
----
> mongodb sdk MongoDbIO.BoundedMongoDbSource.splitKeysToFilters incorrect
> -----------------------------------------------------------------------
>
> Key: BEAM-2256
> URL: https://issues.apache.org/jira/browse/BEAM-2256
> 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
(v6.3.15#6346)