[Hawkular-commits] [hawkular/hawkular-metrics] 57969f: HWKMETRICS-427 JsonGenerationException: Current co...

Stefan Negrea snegrea at redhat.com
Mon Jun 27 17:26:40 EDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/hawkular/hawkular-metrics
  Commit: 57969f22018514c545a95834a37552090dff3d5f
      https://github.com/hawkular/hawkular-metrics/commit/57969f22018514c545a95834a37552090dff3d5f
  Author: Thomas Segismont <tsegismo at redhat.com>
  Date:   2016-06-27 (Mon, 27 Jun 2016)

  Changed paths:
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/handler/observer/NamedDataPointObserver.java
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/GaugesITest.groovy

  Log Message:
  -----------
  HWKMETRICS-427 JsonGenerationException: Current context not an object but ROOT

Fixed no data for query case.

A couple of side changes:
- the observer might run on different threads so make fields final when possible and volatile otherwise
- simplified writeValue lambda form by using a dedicated functional interface


  Commit: f6dd1c73263bdfbbebc58a9d01c14b41277bb3e3
      https://github.com/hawkular/hawkular-metrics/commit/f6dd1c73263bdfbbebc58a9d01c14b41277bb3e3
  Author: Stefan Negrea <snegrea at redhat.com>
  Date:   2016-06-27 (Mon, 27 Jun 2016)

  Changed paths:
    M api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/handler/observer/NamedDataPointObserver.java
    M integration-tests/rest-tests-jaxrs/src/test/groovy/org/hawkular/metrics/rest/GaugesITest.groovy

  Log Message:
  -----------
  Merge pull request #525 from tsegismont/jira/HWKMETRICS-427

HWKMETRICS-427 JsonGenerationException: Current context not an object but ROOT


Compare: https://github.com/hawkular/hawkular-metrics/compare/ce9478eecd9e...f6dd1c73263b


More information about the hawkular-commits mailing list