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-4161) Incorrect use of listStatus() in HBase region initialization.
Date Wed, 03 Aug 2011 23:19:27 GMT

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

Ted Yu commented on HBASE-4161:

Looking at your patch:
+    if (fs.exists(editsdir)) {
The above would in turn call (src/hdfs/org/apache/hadoop/hdfs/DistributedFileSystem.java):
  public FileStatus getFileStatus(Path f) throws IOException {
    FileStatus fi = dfs.getFileInfo(getPathName(f));
    if (fi != null) {
      return makeQualified(fi);
    } else {
      throw new FileNotFoundException("File does not exist: " + f);
So ?

> Incorrect use of listStatus() in HBase region initialization.
> -------------------------------------------------------------
>                 Key: HBASE-4161
>                 URL: https://issues.apache.org/jira/browse/HBASE-4161
>             Project: HBase
>          Issue Type: Bug
>          Components: regionserver
>            Reporter: Pritam Damania
>         Attachments: 0001-Fix-FileNotFoundException-in-HLog.java.patch
> While opening a region, the HBase regionserver tries to list all the children in a "recovered.edits"
directory. This directory may not exist and depending on the version of HDFS listStatus()
might return null or an exception. If it does throw an exception the entire process of opening
the region is aborted, just because the recovered.edits directory is not present.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message