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

IllegalArgumentException is thrown when an empty region is splitted

    XMLWordPrintableJSON

Details

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

    Description

      This is w.r.t a mail sent in the dev mail list.

      Empty region split should be handled gracefully. Either we should not allow the split to happen if we know that the region is empty or we should allow the split to happen by setting the no of threads to the thread pool executor as 1.

      int nbFiles = hstoreFilesToSplit.size();
      ThreadFactoryBuilder builder = new ThreadFactoryBuilder();
          builder.setNameFormat("StoreFileSplitter-%1$d");
          ThreadFactory factory = builder.build();
          ThreadPoolExecutor threadPool =
            (ThreadPoolExecutor) Executors.newFixedThreadPool(nbFiles, factory);
          List<Future<Void>> futures = new ArrayList<Future<Void>>(nbFiles);
      
      

      Here the nbFiles needs to be a non zero positive value.

      Attachments

        1. HBASE-6853_splitfailure.patch
          3 kB
          Priyadarshini
        2. HBASE-6853_2_splitsuccess.patch
          4 kB
          Priyadarshini
        3. HBASE-6853.patch
          4 kB
          ramkrishna.s.vasudevan
        4. HBASE-6853_addendum.patch
          0.8 kB
          ramkrishna.s.vasudevan
        5. HBASE-6853_0.94
          1 kB
          ramkrishna.s.vasudevan

        Activity

          People

            priyadarshini Priyadarshini
            ram_krish ramkrishna.s.vasudevan
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: