accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhutchis <>
Subject [GitHub] accumulo pull request #122: ACCUMULO-1604: added check for negate option in ...
Date Thu, 07 Jul 2016 02:42:38 GMT
Github user dhutchis commented on a diff in the pull request:
    --- Diff: core/src/main/java/org/apache/accumulo/core/iterators/user/
    @@ -43,6 +43,9 @@ public TTLSet(Map<String,String> objectStrings) {
           for (Entry<String,String> entry : objectStrings.entrySet()) {
             String column = entry.getKey();
             String ttl = entry.getValue();
    +        // skip the negate option, it will cause an exception to be thrown
    +        if (column.equalsIgnoreCase(NEGATE) && (ttl.equalsIgnoreCase("true")
|| ttl.equalsIgnoreCase("false")))
    --- End diff --
    Nitpick: the column check could change to `column.equals(NEGATE)` since Filter performs
a case-sensitive checking.  But this is fine as is.  Thanks @milleruntime!

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message