Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19764

Fix enabling csv metrics generates warnings and IOException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.2
    • Fix Version/s: 8.3
    • Component/s: Monitoring
    • Tags:
    • Backlog priority:
      400
    • Sprint:
      nxBD 8.3.5
    • Story Points:
      2

      Description

      Steps to reproduce:

      1. Enable csv metrics by setting nuxeo.conf properties:

      metrics.csv.enabled=true
      metrics.csv.dir=${nuxeo.log.dir}
      

      2. Start server

      Note: The following WARNING message periodically appears in server.log

      2016-06-06 13:47:28,957 WARN  [metrics-csv-reporter-thread-1] [com.codahale.metrics.CsvReporter] Error writing to nuxeo.repositories.repository/default.connections.idle
      java.io.IOException: No such file or directory
      	at java.io.UnixFileSystem.createFileExclusively(Native Method)
      	at java.io.File.createNewFile(File.java:1012)
      	at com.codahale.metrics.CsvReporter.report(CsvReporter.java:241)
      	at com.codahale.metrics.CsvReporter.reportGauge(CsvReporter.java:234)
      	at com.codahale.metrics.CsvReporter.report(CsvReporter.java:150)
      	at com.codahale.metrics.ScheduledReporter.report(ScheduledReporter.java:107)
      	at com.codahale.metrics.ScheduledReporter$1.run(ScheduledReporter.java:86)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 30 minutes
                3h 30m