hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Izaak Rubin (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (HBASE-737) Scanner: every cell in a row has the same timestamp
Date Thu, 10 Jul 2008 18:10:31 GMT

    [ https://issues.apache.org/jira/browse/HBASE-737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12612598#action_12612598
] 

irubin edited comment on HBASE-737 at 7/10/08 11:08 AM:
-------------------------------------------------------------

I'm pretty sure it's a Java issue.  I added a debug line to HTable to print out what the scanner
returns on a call to next().  Here's the result:

{code}
08/07/10 11:03:22 DEBUG client.HTable$ClientScanner: IZAAK: Scanner output on next is: row=row2,
cells={(column=fam1:letters, timestamp=1215711498969, value=[B@1f86b7), (column=fam1:numbers,
timestamp=1215711498969, value=[B@c57009), (column=fam2:letters, timestamp=1215711498969,
value=[B@3e6b10)}
 row2                        column=fam1:letters, timestamp=1215711498969, value=def 
 row2                        column=fam1:numbers, timestamp=1215711498969, value=123 
 row2                        column=fam2:letters, timestamp=1215711498969, value=abc 
{code}

(scroll over, they all have the same timestamp.)

      was (Author: irubin):
    I'm pretty sure it's a Java issue.  I added a debug line to HTable to print out what the
scanner returns on a call to next().  Here's the result:

{code}
08/07/10 11:03:22 DEBUG client.HTable$ClientScanner: IZAAK: Scanner output on next is: row=row2,
cells={(column=fam1:letters, timestamp=1215711498969, value=[B@1f86b7), (column=fam1:numbers,
timestamp=1215711498969, value=[B@c57009), (column=fam2:letters, timestamp=1215711498969,
value=[B@3e6b10)}
 row2                        column=fam1:letters, timestamp=1215711498969, value=def 
 row2                        column=fam1:numbers, timestamp=1215711498969, value=123 
 row2                        column=fam2:letters, timestamp=1215711498969, value=abc 
{code}
  
> Scanner: every cell in a row has the same timestamp
> ---------------------------------------------------
>
>                 Key: HBASE-737
>                 URL: https://issues.apache.org/jira/browse/HBASE-737
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.2.0
>            Reporter: Izaak Rubin
>            Priority: Minor
>
> A row can have multiple cells, and each cell can have a different timestamp.  The get
command in the shell demonstrates that cells are being stored with different timestamps:
> {code}
> hbase(main):008:0> get 'table1', 'row2'  
> COLUMN                       CELL 
>  fam1:letters                timestamp=1215707612949, value=def 
>  fam1:numbers                timestamp=1215707629064, value=123 
>  fam2:letters                timestamp=1215711498969, value=abc 
> 3 row(s) in 0.0100 seconds
> {code}
> However, using the scanners to retrieve these cells shows that they all have the same
timestamp:
> {code}
> hbase(main):009:0> scan 'table1'  
> ROW                          COLUMN+CELL
>  row2                        column=fam1:letters, timestamp=1215711498969, value=def

>  row2                        column=fam1:numbers, timestamp=1215711498969, value=123

>  row2                        column=fam2:letters, timestamp=1215711498969, value=abc

> 3 row(s) in 0.0600 seconds
> {code}
> The scanners are losing timestamp information somewhere along the line.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message