Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-17953

Metrics should move to destination atomically

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Hive
    • None

    Description

      HIVE-17563 reimplemented metrics using native nio interfaces. It used the assumption that{{Files.move()}} is atomic operation. It turns out that by default it isn't, unless ATOMIC_MOVE option is specified. Otherwise the destination file is unlinked and then the source file is copied.

      This may cause test failure since the file may be temporarily unavailable.

      Attachments

        1. HIVE-17953.03.patch
          2 kB
          Alex Kolbasov

        Issue Links

          Activity

            People

              akolb Alex Kolbasov
              akolb Alex Kolbasov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: