You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jonathan Gray (JIRA)" <ji...@apache.org> on 2009/09/01 00:23:32 UTC

[jira] Commented: (HBASE-1804) Puts are permitted (and stored) when including an appended colon

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

Jonathan Gray commented on HBASE-1804:
--------------------------------------

As I said, it breaks stuff.

There doesn't seem to be a fixed contract here.  Sometimes we pass it "family" other times we pass it "family:qualifier".

We should only ever be passing it "family" and should never pass it with a colon... We don't store the colon, we don't use the colon in the API, it's leftover from the old API.

I will spend more time digging in where we'd need to change things.

Family comparator is used in the HRegion map of Stores and the HTD map of Families... in both cases, we should be able to deal strictly with "family", there just seems to be some old API calls making it's way down to HR and HTD.

> Puts are permitted (and stored) when including an appended colon
> ----------------------------------------------------------------
>
>                 Key: HBASE-1804
>                 URL: https://issues.apache.org/jira/browse/HBASE-1804
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.20.0, 0.21.0
>
>         Attachments: HBASE-1804-v1.patch
>
>
> If I have a table with family "testFamily", currently I can do Puts using the new API by specifying the family name with or without a colon.  The KV is then stored w/ or w/o depending on how the Put was done.
> If you try to Put.add("testFamily:", "qualifier", "value") this should throw a NoSuchColumnFamilyException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.