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

CodahaleMetrics.JsonFileReporter is not updating hive.service.metrics.file.location

    XMLWordPrintableJSON

    Details

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

      Description

      The JsonFileReporter has a bug where it never updates the content of hive.service.metrics.file.location. The original implementation relied on fs.rename to overwrite the file if it already existed, but after HIVE-13705 fs.rename now returns false if the destination file exists.

      Also, there is no reason for the JsonFileReporter to write to any fs besides the local filesystem, so we should make this local fs specific.

        Attachments

        1. HIVE-17563.01.patch
          29 kB
          Alex Kolbasov

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: