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

Metrics should move to destination atomically

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: Hive
    • Labels:
      None
    • Target Version/s:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: