hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jingcheng Du (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-13932) Add mob integrity check in HFilePrettyPrinter
Date Thu, 18 Jun 2015 08:40:00 GMT

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

Jingcheng Du updated HBASE-13932:
---------------------------------
    Attachment: HBASE-13932.patch

Upload the patch.
Now we add a new option to the command, "-i". It means the checking mob is enabled.
We can also indicate the -r (region) or -f (file) in the checking.
For example, run "java HFile -i -r regionName", we can get the following output if the referenced
mob files are missing.
{noformat}
ERROR, the mob file [d41d8cd98f00b204e9800998ecf8427e20150618969dc85f0aa44fa584abad4aacc9866e]
is missing referenced by cell row1/myCF:qual/1434612497744/Put/vlen=76/seqid=4
ERROR, the mob file [d41d8cd98f00b204e9800998ecf8427e20150618c2f9e0f7d86242e880612ae9499e4a0a]
is missing referenced by cell row2/myCF:qual/1434612498023/Put/vlen=76/seqid=9
ERROR, the mob file [d41d8cd98f00b204e9800998ecf8427e20150618c2f9e0f7d86242e880612ae9499e4a0a]
is missing referenced by cell row3/myCF:qual/1434612498026/Put/vlen=76/seqid=11
ERROR, the mob file [d41d8cd98f00b204e9800998ecf8427e20150618209c0d89cd8841cc81b2466a2bdf7c0e]
is missing referenced by cell row4/myCF:qual/1434612498062/Put/vlen=76/seqid=16
{noformat}

Alternatively, we can run the check per hfile, run "java HFile -i -f hfilePath", we can get
the following output.
{noformat}
ERROR, the mob file [d41d8cd98f00b204e9800998ecf8427e20150618c2f9e0f7d86242e880612ae9499e4a0a]
is missing referenced by cell row2/myCF:qual/1434612498023/Put/vlen=76/seqid=9
ERROR, the mob file [d41d8cd98f00b204e9800998ecf8427e20150618c2f9e0f7d86242e880612ae9499e4a0a]
is missing referenced by cell row3/myCF:qual/1434612498026/Put/vlen=76/seqid=11
{noformat}

Hi [~jmhsieh], [~anoopsamjohn], [~ram_krish], would you mind reviewing the patch? Thanks!

> Add mob integrity check in HFilePrettyPrinter
> ---------------------------------------------
>
>                 Key: HBASE-13932
>                 URL: https://issues.apache.org/jira/browse/HBASE-13932
>             Project: HBase
>          Issue Type: Sub-task
>          Components: mob
>    Affects Versions: hbase-11339
>            Reporter: Jingcheng Du
>            Assignee: Jingcheng Du
>             Fix For: hbase-11339
>
>         Attachments: HBASE-13932.patch
>
>
> We need to know whether a reference cell is dangling in mob. We can add this to HFilePrettyPrinter.
> We can add a new option to the command, to check the integrity of mob cells either per
region or per file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message