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

TestRowTooBig should use HDFS directory for its region directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0, 1.2.0, 2.0.0
    • 1.0.2, 1.2.0, 1.1.1, 2.0.0
    • test
    • None
    • Windows

    Description

      TestRowTooBig uses local directory to create region, which does not work well in Windows, and the code path expects s DFS file path

      java.lang.Exception: Unexpected exception, expected<org.apache.hadoop.hbase.regionserver.RowTooBigException> but was<java.lang.IllegalArgumentException>
      	at org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:197)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.access$000(DistributedFileSystem.java:106)
      	at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1305)
      	at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1301)
      	at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1301)
      	at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1424)
      	at org.apache.hadoop.hbase.regionserver.HRegionFileSystem.createRegionOnFileSystem(HRegionFileSystem.java:875)
      	at org.apache.hadoop.hbase.regionserver.HRegion.createHRegion(HRegion.java:5921)
      	at org.apache.hadoop.hbase.regionserver.HRegion.createHRegion(HRegion.java:5892)
      	at org.apache.hadoop.hbase.regionserver.HRegion.createHRegion(HRegion.java:5867)
      	at org.apache.hadoop.hbase.regionserver.HRegion.createHRegion(HRegion.java:5949)
      	at org.apache.hadoop.hbase.regionserver.HRegion.createHRegion(HRegion.java:5828)
      	at org.apache.hadoop.hbase.HBaseTestingUtility.createLocalHRegion(HBaseTestingUtility.java:1877)
      	at org.apache.hadoop.hbase.regionserver.TestRowTooBig.testScannersSeekOnFewLargeCells(TestRowTooBig.java:83)
      
      
      java.lang.Exception: Unexpected exception, expected<org.apache.hadoop.hbase.regionserver.RowTooBigException> but was<java.lang.IllegalArgumentException>
      	at org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:197)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.access$000(DistributedFileSystem.java:106)
      	at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1305)
      	at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1301)
      	at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1301)
      	at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1424)
      	at org.apache.hadoop.hbase.regionserver.HRegionFileSystem.createRegionOnFileSystem(HRegionFileSystem.java:875)
      	at org.apache.hadoop.hbase.regionserver.HRegion.createHRegion(HRegion.java:5921)
      	at org.apache.hadoop.hbase.regionserver.HRegion.createHRegion(HRegion.java:5892)
      	at org.apache.hadoop.hbase.regionserver.HRegion.createHRegion(HRegion.java:5867)
      	at org.apache.hadoop.hbase.regionserver.HRegion.createHRegion(HRegion.java:5949)
      	at org.apache.hadoop.hbase.regionserver.HRegion.createHRegion(HRegion.java:5828)
      	at org.apache.hadoop.hbase.HBaseTestingUtility.createLocalHRegion(HBaseTestingUtility.java:1877)
      	at org.apache.hadoop.hbase.regionserver.TestRowTooBig.testScanAcrossManySmallColumns(TestRowTooBig.java:125)
      

      Attachments

        1. HBASE-13809.v1-branch-1.patch
          5 kB
          Stephen Yuan Jiang
        2. HBASE-13809.v1-master.patch
          4 kB
          Stephen Yuan Jiang
        3. HBASE-13809.v2-master.patch
          3 kB
          Stephen Yuan Jiang

        Activity

          People

            syuanjiang Stephen Yuan Jiang
            syuanjiang Stephen Yuan Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: