Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8781

ImmutableBytesWritable constructor with another IBW as param need to consider the offset of the passed IBW

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.94.8
    • 0.98.0, 0.95.2
    • None
    • None
    • Reviewed

    Description

      /**
         * Set the new ImmutableBytesWritable to the contents of the passed
         * <code>ibw</code>.
         * @param ibw the value to set this ImmutableBytesWritable to.
         */
        public ImmutableBytesWritable(final ImmutableBytesWritable ibw) {
          this(ibw.get(), 0, ibw.getSize());
        }
      

      It should be this(ibw.get(), ibw.getOffset(), ibw.getSize());

      Attachments

        1. HBASE-8781.patch
          0.6 kB
          Anoop Sam John

        Issue Links

          Activity

            People

              anoop.hbase Anoop Sam John
              anoop.hbase Anoop Sam John
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: