[Hawkular-commits] [hawkular/hawkular-metrics] 72bf8a: [HWKMETRICS-797] wait for schema agreement before ...

John Sanda jsanda at redhat.com
Wed Aug 1 10:49:19 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/hawkular/hawkular-metrics
  Commit: 72bf8a8387aef8370ba8409034b670d6ff58210e
      https://github.com/hawkular/hawkular-metrics/commit/72bf8a8387aef8370ba8409034b670d6ff58210e
  Author: John Sanda <jsanda at redhat.com>
  Date:   2018-08-01 (Wed, 01 Aug 2018)

  Changed paths:
    M core/metrics-core-service/src/main/java/org/hawkular/metrics/core/service/DataAccessImpl.java

  Log Message:
  -----------
  [HWKMETRICS-797] wait for schema agreement before preparing queries (#989)

* [HWKMETRICS-797] wait for schema agreement before preparing queries

* [HWKMETRICS-797] query system.peers on all nodes

Do a token range scan to query system.peers on all nodes so that we can
determine the schema versions that every node knows about.

* [HWKMETRICS-797] replace schema version token scan with simple retry logic

The previous commit introduced a token range scan over the system.peers
table in order to determine when there is schema convergence. That
approach is complicated and does not cover some corner cases. It is
simpler to retry preparing statements after some delay until it
succeeds.

* [HWKMETRICS-797] adjust logging based on review



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the hawkular-commits mailing list