Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12216

Respect the number of bytes from input parameters in HybridMemorySegment

    XMLWordPrintableJSON

Details

    Description

      For the following two methods in HybridMemorySegment class,

      public final void get(int offset, ByteBuffer target, int numBytes)

      public final void put(int offset, ByteBuffer source, int numBytes) 

      the actual number of bytes read/written should be specified by the input parameter numBytes, but it does not for some types of ByteBuffer. Instead, it simply read/write until the end.

      So this is a bug and I am going to fix it.

      Attachments

        Issue Links

          Activity

            People

              fan_li_ya Liya Fan
              fan_li_ya Liya Fan
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m