Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-12427

LogIterator implementations do not close readers

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: current_quarter
    • Component/s: platform
    • Labels:

      Description

      The LogIterators call (pail.Bucket).Get() but do not have a way to close the returned manually io.ReadCloser (e.g. after theĀ LogIterator is done). This is causing the Windows tests to fail with device/resource busy when trying to clean up the local pail bucket (TestMergeLogIterator).

      One possible solution would be to provide a Close method in the LogIterator interface.

        Attachments

          Activity

            People

            Assignee:
            julian.edwards Julian Edwards
            Reporter:
            kimberly.tao Kim Tao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: