[ 
https://issues.apache.org/jira/browse/HBASE-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stack updated HBASE-1638:
-------------------------

    Attachment: purgewrongfamily.rb

First version of script would not find bad keys if they were first in the file. 
 This one fixes that.  Also if we rewrote keys, then we move the rewritten file 
over the original.  Here is what it looks like when it runs and finds a bad key:

{code}
$ ~/checkouts/hbase/cleantrunk/bin/hbase shell purgewrongfamily.rb 
./j/.META./1028785192/info/4966765050467496366  info
Writing new file j/.META./1028785192/info/4966765050467496366.rewrite
Dropped bad key: 
TestTable,,1248127844086/historian:open/1248127848045/Put/vlen=46
Moving j/.META./1028785192/info/4966765050467496366.rewrite to 
j/.META./1028785192/info/4966765050467496366
$ ~/checkouts/hbase/cleantrunk/bin/hbase shell purgewrongfamily.rb 
./j/.META./1028785192/info/4966765050467496366  info
Writing new file j/.META./1028785192/info/4966765050467496366.rewrite
No bad keys found... cleaning up 
j/.META./1028785192/info/4966765050467496366.rewrite
{code}



> hfile has entry from wrong family
> ---------------------------------
>
>                 Key: HBASE-1638
>                 URL: https://issues.apache.org/jira/browse/HBASE-1638
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.20.0
>
>         Attachments: purgewrongfamily.rb, purgewrongfamily.rb
>
>
> I have an hfile with an entry from another family.  It was give us by bryan 
> duxbury.

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

Reply via email to