Flume
  1. Flume
  2. FLUME-1828

ResettableInputStream should support seek()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.4.0
    • Component/s: None
    • Labels:
      None

      Description

      ResettableInputStream should support seek(). Without it, it's impossible to implement a performant Deserializer that has read-ahead capability. An example of a deserializer that needs read-ahead capability is a stack-trace deserializer.

      1. FLUME-1828-0.patch
        8 kB
        Mike Percy
      2. FLUME-1828-2.patch
        12 kB
        Mike Percy

        Issue Links

          Activity

          Hide
          Mike Percy added a comment -

          Implemented public seek() and tell()

          Show
          Mike Percy added a comment - Implemented public seek() and tell()
          Hide
          Brock Noland added a comment -

          Thanks for the patch Mike! Committed to trunk and 1.4!

          Show
          Brock Noland added a comment - Thanks for the patch Mike! Committed to trunk and 1.4!
          Hide
          Hudson added a comment -

          Integrated in flume-trunk #351 (See https://builds.apache.org/job/flume-trunk/351/)
          FLUME-1828: ResettableInputStream should support seek() (Revision 70fe963ecab62bebab76b9f97fbeb312b1176f9f)

          Result = SUCCESS
          brock : http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=70fe963ecab62bebab76b9f97fbeb312b1176f9f
          Files :

          • flume-ng-core/src/main/java/org/apache/flume/serialization/ResettableInputStream.java
          • flume-ng-core/src/test/java/org/apache/flume/serialization/ResettableTestStringInputStream.java
          • flume-ng-core/src/main/java/org/apache/flume/serialization/ResettableFileInputStream.java
          • flume-ng-core/src/test/java/org/apache/flume/serialization/TestResettableFileInputStream.java
          • flume-ng-core/src/main/java/org/apache/flume/serialization/Seekable.java
          Show
          Hudson added a comment - Integrated in flume-trunk #351 (See https://builds.apache.org/job/flume-trunk/351/ ) FLUME-1828 : ResettableInputStream should support seek() (Revision 70fe963ecab62bebab76b9f97fbeb312b1176f9f) Result = SUCCESS brock : http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=70fe963ecab62bebab76b9f97fbeb312b1176f9f Files : flume-ng-core/src/main/java/org/apache/flume/serialization/ResettableInputStream.java flume-ng-core/src/test/java/org/apache/flume/serialization/ResettableTestStringInputStream.java flume-ng-core/src/main/java/org/apache/flume/serialization/ResettableFileInputStream.java flume-ng-core/src/test/java/org/apache/flume/serialization/TestResettableFileInputStream.java flume-ng-core/src/main/java/org/apache/flume/serialization/Seekable.java

            People

            • Assignee:
              Mike Percy
              Reporter:
              Mike Percy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development