Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5009

Failure of creating split dir if it already exists prevents splits from happening further

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.90.6, 0.92.1
    • None
    • None
    • Reviewed

    Description

      The scenario is
      -> The split of a region takes a long time
      -> The deletion of the splitDir fails due to HDFS problems.
      -> Subsequent splits also fail after that.

      private static void createSplitDir(final FileSystem fs, final Path splitdir)
        throws IOException {
          if (fs.exists(splitdir)) throw new IOException("Splitdir already exits? " + splitdir);
          if (!fs.mkdirs(splitdir)) throw new IOException("Failed create of " + splitdir);
        }
      

      Correct me if am wrong? If it is an issue can we change the behaviour of throwing exception?
      Pls suggest.

      Attachments

        1. HBASE-5009_Branch90.patch
          2 kB
          ramkrishna.s.vasudevan
        2. HBASE-5009.patch
          2 kB
          ramkrishna.s.vasudevan
        3. 5009.txt
          2 kB
          Ted Yu

        Activity

          People

            ram_krish ramkrishna.s.vasudevan
            ram_krish ramkrishna.s.vasudevan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: