You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2021/10/15 03:20:00 UTC
[jira] [Commented] (HBASE-26344) Fix Bug for MultiByteBuff.put(int,
byte)
[ https://issues.apache.org/jira/browse/HBASE-26344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429098#comment-17429098 ]
Hudson commented on HBASE-26344:
--------------------------------
Results for branch branch-2.4
[build #212 on builds.a.o|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2.4/212/]: (/) *{color:green}+1 overall{color}*
----
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2.4/212/General_20Nightly_20Build_20Report/]
(/) {color:green}+1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2) report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2.4/212/JDK8_20Nightly_20Build_20Report_20_28Hadoop2_29/]
(/) {color:green}+1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3) report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2.4/212/JDK8_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk11 hadoop3 checks{color}
-- For more information [see jdk11 report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2.4/212/JDK11_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
(/) {color:green}+1 client integration test{color}
> Fix Bug for MultiByteBuff.put(int, byte)
> ----------------------------------------
>
> Key: HBASE-26344
> URL: https://issues.apache.org/jira/browse/HBASE-26344
> Project: HBase
> Issue Type: Bug
> Affects Versions: 3.0.0-alpha-1, 2.4.7
> Reporter: chenglei
> Assignee: chenglei
> Priority: Major
> Fix For: 2.5.0, 3.0.0-alpha-2, 2.4.8
>
>
> MultiByteBuff. put(int index, byte b) has some obvious bugs, following line 732 should be getItemIndex(*index*), not getItemIndex(*limit*);
> {code:java}
> 730 public MultiByteBuff put(int index, byte b) {
> 731 checkRefCount();
> 732 int itemIndex = getItemIndex(limit);
> 733 ByteBuffer item = items[itemIndex];
> 734 item.put(index - itemBeginPos[itemIndex], b);
> 735 return this;
> 736 }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)