Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-2256

mongodb sdk MongoDbIO.BoundedMongoDbSource.splitKeysToFilters incorrect

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • Not applicable, 0.4.0, 0.5.0, 0.6.0
    • 2.0.0
    • io-java-mongodb
    • Important

    Description

      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.

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            hongmin wang hongmin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified