Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-6814 [WINDOWS] HBase on Windows
  3. HBASE-8838

[WINDOWS] FileLink assumptions are broken under NTFS

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.95.2
    • None
    • None
    • Reviewed

    Description

      FileLink assumes that underlying files can be moved while there are open readers. Windows does not allow the file which has active readers to be moved unless the file is opened in shared mode. JDK6 and 7 open the file in exclusive mode by default, so moving the file while there are readers is not possible.

      Hadoop-on-windows copies the file, if it cannot perform the rename. This will cause duplication, and the original file not being deleted.

      This affects the unit test TestFileLink. On local mode over NTFS, reading from snapshot files and replication might cause issues, but I don't think it has any other implications on hbase+hdfs on windows.

      Attachments

        1. hbase-8838_v1.patch
          6 kB
          Enis Soztutar

        Activity

          People

            enis Enis Soztutar
            enis Enis Soztutar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: