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

Snapshot unittests fail on Windows due to invalid file path uri

    XMLWordPrintableJSON

    Details

      Description

      These unittests are failing on Windows because the temporary snapshot file path is not valid.

      hadoop.hbase.client.TestSnapshotTemporaryDirectory

      hadoop.hbase.client.TestSnapshotDFSTemporaryDirectory

      hadoop.hbase.client.TestSnapshotTemporaryDirectoryWithRegionReplica

       

      The error is:

       

       2019-04-08 23:42:02,080 ERROR [master/MININT-2D9TFVB:0:becomeActiveMaster] helpers.MarkerIgnoringBase(159): ***** ABORTING master minint-2d9tfvb.northamerica.corp.microsoft.com,57169,1554792118500: Unhandled exception. Starting shutdown. *****
      java.lang.IllegalArgumentException: *Wrong FS: file://C:\src\hbase\hbase-server/2f6562be-fe12-49a4-b370-2b6928e5aa72, expected: file:///*
      at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:647)
      at org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:82)
      at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:606)
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:824)
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:601)
      at org.apache.hadoop.fs.ChecksumFileSystem.delete(ChecksumFileSystem.java:638)
      at org.apache.hadoop.hbase.master.snapshot.SnapshotManager.resetTempDir(SnapshotManager.java:298)
      at org.apache.hadoop.hbase.master.snapshot.SnapshotManager.initialize(SnapshotManager.java:1186)
      at org.apache.hadoop.hbase.procedure.MasterProcedureManagerHost.initialize(MasterProcedureManagerHost.java:50)
      at org.apache.hadoop.hbase.master.HMaster.initializeZKBasedSystemTrackers(HMaster.java:828)
      at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:1004)
      at org.apache.hadoop.hbase.master.HMaster.startActiveMasterManager(HMaster.java:2373)
      at org.apache.hadoop.hbase.master.HMaster.lambda$run$0(HMaster.java:603)
      at java.lang.Thread.run(Thread.java:748)

       

       

        Attachments

        1. unittest-fix-for-windows.patch
          3 kB
          Bahram Chehrazy

          Activity

            People

            • Assignee:
              bahramch Bahram Chehrazy
              Reporter:
              bahramch Bahram Chehrazy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: