You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Nihal Jain (JIRA)" <ji...@apache.org> on 2018/11/13 18:04:00 UTC
[jira] [Commented] (HBASE-21475) Put mutation (having TTL set)
added via co-processor is retrieved even after TTL expires
[ https://issues.apache.org/jira/browse/HBASE-21475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16685552#comment-16685552 ]
Nihal Jain commented on HBASE-21475:
------------------------------------
Submitted a patch which reproduces the scenario along with the proposed solution.
The test contained in the patch adds a put (via a coprocessor) corresponding to the user put having same timestamp and TTL as user stamp.
{noformat}
2018-11-13 23:09:00,277 INFO [RpcServer.default.FPBQ.Fifo.handler=4,queue=0,port=45641] coprocessor.TestRegionObserverForAddingMutationsFromCoprocessors$TestPutWithTTLCoprocessor(231): Putting:[{"totalColumns":1,"row":"cpPut","families":{"test":[{"qualifier":"dummy","vlen":7,"tag":[],"timestamp":1542130740276}]},"ttl":3000,"ts":9223372036854775807}]
2018-11-13 23:09:00,288 INFO [Time-limited test] coprocessor.TestRegionObserverForAddingMutationsFromCoprocessors(142): keyvalues={cpPut/test:dummy/1542130740276/Put/vlen=7/seqid=0}
2018-11-13 23:09:00,288 INFO [Time-limited test] coprocessor.TestRegionObserverForAddingMutationsFromCoprocessors(142): keyvalues={r1/test:dummy/1542130740276/Put/vlen=5/seqid=0}{noformat}
After TTL expires we can still retrieve the row added by coprocessor, while the user put gets deleted succesfully.
{noformat}
2018-11-13 23:09:05,292 INFO [Time-limited test] coprocessor.TestRegionObserverForAddingMutationsFromCoprocessors(142): keyvalues={cpPut/test:dummy/1542130740276/Put/vlen=7/seqid=0}
{noformat}
> Put mutation (having TTL set) added via co-processor is retrieved even after TTL expires
> ----------------------------------------------------------------------------------------
>
> Key: HBASE-21475
> URL: https://issues.apache.org/jira/browse/HBASE-21475
> Project: HBase
> Issue Type: Bug
> Components: Coprocessors
> Affects Versions: 3.0.0, 2.0.0, 2.1.1
> Reporter: Nihal Jain
> Assignee: Nihal Jain
> Priority: Major
> Fix For: 3.0.0
>
> Attachments: HBASE-21475.master.001.patch
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)