Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16738

Returns BaseRecords instead of MemoryRecords

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • protocol
    • None

    Description

      We can write a record which is a subtype of BaseRecords, but we can not read a record which is a subtype of BaseRecords. If we change the return type of Readable#readRecords from MemoryRecords to BaseRecords, we can override the implementation of readRecords and returns a subtype of BaseRecords easily.

      We known that the MemoryRecords is based on JDK's ByteBuffer. We are developing a netty project(kroxylicious) and we want to create a subtype of BaseRecords like MemoryRecords based on netty's ByteBuf.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              luozhenyu Zhenyu Luo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 1m
                  1m
                  Remaining:
                  Remaining Estimate - 1m
                  1m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified