hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheyenne Forbes <cheyenne.osanu.for...@gmail.com>
Subject Re: Co-processors: Know if row is being deleted by TTL
Date Tue, 29 Aug 2017 05:31:46 GMT
I'm sorry, "*postDelete*" wasnt supposed to be a link, I copied the text
and gmail sent it as a link.

*Use case:*

When a user is commenting with a photo it is uploaded to be able to be
previewed and the id of the photo is added to a hbase table "tempFiles"
with a 5 hour TTL for each row, if the user submits the comment, the row is
deleted manually and *postDelete* would "ignore" it but if it isnt
submitted and the TTL reaches, *postDelete* would run a piece of code which
would delete the file from my file server

On Mon, Aug 28, 2017 at 5:33 PM, Ted Yu <yuzhihong@gmail.com> wrote:

> There is no such indication from the book you mentioned.
> Can you tell us your use case where such distinction is needed ?
> -------- Original message --------From: Cheyenne Forbes <
> cheyenne.osanu.forbes@gmail.com> Date: 8/28/17  2:51 PM  (GMT-08:00) To:
> user@hbase.apache.org Subject: Co-processors: Know if row is being
> deleted by TTL
> Is is possible to know if a row is being deleted manually or by the
> reaching of the TTL on "*postDelete
> <https://hbase.apache.org/0.94/apidocs/org/apache/hadoop/
> hbase/coprocessor/BaseRegionObserver.html#postDelete(org.apache.hadoop.
> hbase.coprocessor.ObserverContext,%20org.apache.
> hadoop.hbase.client.Delete,%20org.apache.hadoop.hbase.
> regionserver.wal.WALEdit,%20boolean)>*
> "?
> Regards,
> Cheyenne O. Forbes

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message