HBase
  1. HBase
  2. HBASE-6853

IllegalArgumentException is thrown when an empty region is splitted

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.92.1, 0.94.1
    • Fix Version/s: 0.94.2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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.

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Priyadarshini
            Reporter:
            ramkrishna.s.vasudevan
          • Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development