kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 926f11f48fd713e8024e48711f3656682160fa7d4bc499707aa1dd6d9c1bdea4 |
|---|---|
| Author | Olivier Michallat <olim7t@users.noreply.github.com> · 2015-08-28 15:16 +02:00 |
| Committer | Olivier Michallat <olim7t@users.noreply.github.com> · 2015-08-28 15:16 +02:00 |
| Parents | d6fac0e91dd4, 21c6981ecc14 |
2 files changed
modified changelog/README.md +2 −0
| @@ -44,6 +44,8 @@ | ||
| 44 | 44 | - [improvement] Use parallel calls when re-preparing statement on other |
| 45 | 45 | hosts (JAVA-725) |
| 46 | 46 | - [bug] Don't use connection timeout for unrelated internal queries (JAVA-629) |
| 47 | +- [bug] Fix NPE in speculative executions when metrics disabled | |
| 48 | + (JAVA-892) | |
| 47 | 49 | |
| 48 | 50 | Merged from 2.0.10_fixes branch: |
| 49 | 51 |
modified driver-core/src/main/java/com/datastax/driver/core/RequestHandler.java +2 −1
| @@ -134,7 +134,8 @@ | ||
| 134 | 134 | manager.executor().execute(new Runnable() { |
| 135 | 135 | @Override |
| 136 | 136 | public void run() { |
| 137 | - metrics().getErrorMetrics().getSpeculativeExecutions().inc(); | |
| 137 | + if (metricsEnabled()) | |
| 138 | + metrics().getErrorMetrics().getSpeculativeExecutions().inc(); | |
| 138 | 139 | startNewExecution(); |
| 139 | 140 | } |
| 140 | 141 | }); |