You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Jean-Marc Spaggiari <je...@spaggiari.org> on 2014/06/05 20:48:48 UTC
HConstants.ALL_VERSIONS
Mates,
Seems that HConstants.ALL_VERSIONS is not used anymore. We have
HContants.FOREVER used to "disable" TTL, I will have expected ALL_VERSIONS
to be the same for the versions. However, it seems to not be used anywhere.
Should we just remove it from HContants? Or should we make sure it's used?
On the Scan class we have this:
public Scan setMaxVersions() {
this.maxVersions = Integer.MAX_VALUE;
return this;
}
Should we change it by HConstants.ALL_VERSIONS instead of
Integer.MAX_VALUE? It's the same value but more clear? And should we make
sure on the compaction side we take care of this in case we want to never
delete any version?
JM
Re: HConstants.ALL_VERSIONS
Posted by Jonathan Hsieh <jo...@cloudera.com>.
(going through old mail)
If it isn't used and is dead code, just remove it. (make sure the magic
value isn't used elswhere)
Jon.
On Thu, Jun 5, 2014 at 11:48 AM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:
> Mates,
>
> Seems that HConstants.ALL_VERSIONS is not used anymore. We have
> HContants.FOREVER used to "disable" TTL, I will have expected ALL_VERSIONS
> to be the same for the versions. However, it seems to not be used anywhere.
>
> Should we just remove it from HContants? Or should we make sure it's used?
>
> On the Scan class we have this:
>
> public Scan setMaxVersions() {
> this.maxVersions = Integer.MAX_VALUE;
> return this;
> }
>
> Should we change it by HConstants.ALL_VERSIONS instead of
> Integer.MAX_VALUE? It's the same value but more clear? And should we make
> sure on the compaction side we take care of this in case we want to never
> delete any version?
>
> JM
>
--
// Jonathan Hsieh (shay)
// HBase Tech Lead, Software Engineer, Cloudera
// jon@cloudera.com // @jmhsieh