[
https://issues.apache.org/jira/browse/HBASE-1941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyunsik Choi updated HBASE-1941:
--------------------------------
Description:
Put's copy feature has a bug. The copy does not consider the timestamp value.
In the following example, a put and its copied put prints out different
timestamps.
{quote}
Put put = new Put("abc".getBytes());
put.setTimeStamp(1);
System.out.println(put.getTimeStamp());
Put put2 = new Put(put);
System.out.println(put2.getTimeStamp());
---------------------------
Above source code results in as follows:
1
9223372036854775807
{quote}
was:
Put's copy feature has a bug. The copy does not consider the timestamp value.
In the following example, a put and its copied put prints out different
timestamps.
{{
Put put = new Put("abc".getBytes());
put.setTimeStamp(1);
System.out.println(put.getTimeStamp());
Put put2 = new Put(put);
System.out.println(put2.getTimeStamp());
---------------------------
Above source code results in as follows:
1
9223372036854775807
}}
> Put's copy feature has a bug.
> -----------------------------
>
> Key: HBASE-1941
> URL: https://issues.apache.org/jira/browse/HBASE-1941
> Project: Hadoop HBase
> Issue Type: Bug
> Components: client
> Affects Versions: 0.20.1
> Reporter: Hyunsik Choi
>
> Put's copy feature has a bug. The copy does not consider the timestamp value.
> In the following example, a put and its copied put prints out different
> timestamps.
> {quote}
> Put put = new Put("abc".getBytes());
> put.setTimeStamp(1);
> System.out.println(put.getTimeStamp());
> Put put2 = new Put(put);
> System.out.println(put2.getTimeStamp());
> ---------------------------
> Above source code results in as follows:
> 1
> 9223372036854775807
> {quote}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.