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

RegionSplitter throws ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0, 2.0.0
    • util
    • None
    • Reviewed

    Description

      RegionSplitter throws Exception as below.

      Exception in thread "main" java.lang.ClassCastException: org.apache.hadoop.hbase.ServerName cannot be cast to java.lang.String
      at java.lang.String.compareTo(String.java:108)
      at java.util.TreeMap.getEntry(TreeMap.java:346)
      at java.util.TreeMap.get(TreeMap.java:273)
      at org.apache.hadoop.hbase.util.RegionSplitter$1.compare(RegionSplitter.java:504)
      at org.apache.hadoop.hbase.util.RegionSplitter$1.compare(RegionSplitter.java:502)
      at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)
      at java.util.TimSort.sort(TimSort.java:189)
      at java.util.TimSort.sort(TimSort.java:173)
      at java.util.Arrays.sort(Arrays.java:659)
      at java.util.Collections.sort(Collections.java:217)
      at org.apache.hadoop.hbase.util.RegionSplitter.rollingSplit(RegionSplitter.java:502)
      at org.apache.hadoop.hbase.util.RegionSplitter.main(RegionSplitter.java:367)

      Attachments

        1. HBASE-17062.001.patch
          3 kB
          Jeongdae Kim
        2. HBASE-17062.002.patch
          4 kB
          Jeongdae Kim
        3. HBASE-17062.003.patch
          4 kB
          Jeongdae Kim

        Activity

          People

            Jeongdae Kim Jeongdae Kim
            Jeongdae Kim Jeongdae Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: