hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-9295) Allow test-patch.sh to detect TreeMap keyed by byte[] which doesn't use proper comparator
Date Sat, 19 Oct 2013 18:38:42 GMT

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

Ted Yu commented on HBASE-9295:
-------------------------------

Since the detection is based on scanning a single line, there would not be that many anti-patterns
to be discovered.
This one is the only I can think of now.

What do you think, Jesse ?

> Allow test-patch.sh to detect TreeMap keyed by byte[] which doesn't use proper comparator
> -----------------------------------------------------------------------------------------
>
>                 Key: HBASE-9295
>                 URL: https://issues.apache.org/jira/browse/HBASE-9295
>             Project: HBase
>          Issue Type: Task
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>             Fix For: 0.98.0
>
>         Attachments: 9295-v1.txt, 9295-v2.txt
>
>
> There were two recent bug fixes (HBASE-9285 and HBASE-9238) for the case where the TreeMap
keyed by byte[] doesn't use proper comparator:
> {code}
> new TreeMap<byte[], ...>()
> {code}
> test-patch.sh should be able to detect this situation and report accordingly.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message