Flume
  1. Flume
  2. FLUME-2058

TestFlumeEventQueue in FileChannel fails on Windows

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: v1.3.1
    • Fix Version/s: None
    • Component/s: File Channel, Test, Windows
    • Labels:
      None

      Description

      Windows does not allow deletion of files that are in use. Java does not yet allow explicitly unmapping memory mapped files so until these files are unmapped by the GC, we cannot delete them explicitly.

      Checkpoint files are being reused across tests. Deletion of checkpoint files fails in these tests as the file memory mapped.

        Issue Links

          Activity

          Hide
          Mike Percy added a comment -

          Based on the review board comments, this patch needs a bit more work. This one probably won't make it into v1.4.0 so I'm clearing the fixVersion.

          Show
          Mike Percy added a comment - Based on the review board comments, this patch needs a bit more work. This one probably won't make it into v1.4.0 so I'm clearing the fixVersion.
          Hide
          Roshan Naik added a comment -

          Not reusing checkpoint files to avoid deletion problems.
          Also ensuring files are setup to be deleted by jvm on exit.

          Show
          Roshan Naik added a comment - Not reusing checkpoint files to avoid deletion problems. Also ensuring files are setup to be deleted by jvm on exit.
          Hide
          Roshan Naik added a comment -

          testInvalidCapacityZero[0](org.apache.flume.channel.file.TestFlumeEventQueue): Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.AssertionError>
          testInvalidCapacityNegative[0](org.apache.flume.channel.file.TestFlumeEventQueue): Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.AssertionError>
          testInvalidCapacityZero[1](org.apache.flume.channel.file.TestFlumeEventQueue): Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.AssertionError>
          testInvalidCapacityNegative[1](org.apache.flume.channel.file.TestFlumeEventQueue): Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.AssertionError>

          Assertions of successful checkpoint file deletions are failing.

          Show
          Roshan Naik added a comment - testInvalidCapacityZero [0] (org.apache.flume.channel.file.TestFlumeEventQueue): Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.AssertionError> testInvalidCapacityNegative [0] (org.apache.flume.channel.file.TestFlumeEventQueue): Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.AssertionError> testInvalidCapacityZero [1] (org.apache.flume.channel.file.TestFlumeEventQueue): Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.AssertionError> testInvalidCapacityNegative [1] (org.apache.flume.channel.file.TestFlumeEventQueue): Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.AssertionError> Assertions of successful checkpoint file deletions are failing.

            People

            • Assignee:
              Roshan Naik
              Reporter:
              Roshan Naik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development