Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13776

[MongoDB] autoclosable cursor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.23.4, 2.24.2, 3.0.0.RC1, 3.0.0, 2.25.0
    • None
    • None
    • Unknown

    Description

      The following statement is not allowing the consumer to properly resume a previously stored tailing tracking.

      
      try (MongoCursor<Document> iterator = dbCol.find(gt(tailTracking.getIncreasingFieldName(), lastVal))
      
      

      As the iterator is consumer outside that block, it is always impossible to recover any stopped tracking. The consumer test were infact previously @ignore-d for this reason.

      Already working to fix this problem.

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            squakez Pasquale Congiusti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m