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

Philippe Laflamme commented on HBASE-19582:
-------------------------------------------

This is also a problem when trying to extend the TTL:

{code}hbase(main):001:0> truncate 't1'
Truncating 't1' table (it may take a while):
 - Disabling table...
 - Truncating table...
0 row(s) in 4.2470 seconds

hbase(main):002:0> put 't1', 'r1', 'f1:c1', 'v1', {TTL=>5000}
0 row(s) in 0.1180 seconds

hbase(main):003:0> scan 't1'
ROW                                                                  
COLUMN+CELL                                                                     
                                                                                
                                         
 r1                                                                  
column=f1:c1, timestamp=1513884993222, value=v1                                 
                                                                                
                                         
1 row(s) in 0.0250 seconds

hbase(main):004:0> append 't1', 'r1', 'f1:c1', '', {TTL => 600000}
0 row(s) in 0.0190 seconds

hbase(main):005:0> scan 't1'
ROW                                                                  
COLUMN+CELL                                                                     
                                                                                
                                         
 r1                                                                  
column=f1:c1, timestamp=1513884993355, value=v1                                 
                                                                                
                                         
1 row(s) in 0.0060 seconds

hbase(main):006:0> sleep 5
=> 5
hbase(main):007:0> scan 't1'
ROW                                                                  
COLUMN+CELL                                                                     
                                                                                
                                         
0 row(s) in 0.0110 seconds
{code}


> Tags on append doesn't behave like expected
> -------------------------------------------
>
>                 Key: HBASE-19582
>                 URL: https://issues.apache.org/jira/browse/HBASE-19582
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 2.0.0-alpha-4
>            Reporter: Jean-Marc Spaggiari
>
> When appending a tag an HBase cell, they seems to not really be append be 
> live their own life. In the example below, I put a cell, append the TTL, and 
> we can see between the 2 scans that only the TTL append cell expires. I was 
> expecting those 2 cells to become one and expire together. This can be easily 
> figured by looking at the returned timestamp from the scan.
> {code}
> hbase(main):082:0> put 't1', 'r1', 'f1:c1', 'value'
> 0 row(s) in 0.1350 seconds
> hbase(main):083:0> append 't1', 'r1', 'f1:c1', '', { TTL => 5000 }
> 0 row(s) in 0.0080 seconds
> hbase(main):084:0> scan 't1'
> ROW                                               COLUMN+CELL                 
>                                                                               
>                                        
>  r1                                               column=f1:c1, 
> timestamp=1513879615014, value=value                                          
>                                                      
> 1 row(s) in 0.0730 seconds
> hbase(main):085:0> scan 't1'
> ROW                                               COLUMN+CELL                 
>                                                                               
>                                        
>  r1                                               column=f1:c1, 
> timestamp=1513879599375, value=value                                          
>                                                      
> 1 row(s) in 0.0500 seconds
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to