kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 5eaa4fe5762b58b792a85b71dd8438758425c6b2e83fd25ee884b3e3707233d6 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2016-04-06 20:40 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-04-19 11:50 +02:00 |
| Parents | 90868556be12 |
2 files changed
modified changelog/README.md +1 −0
| @@ -4,6 +4,7 @@ | ||
| 4 | 4 | |
| 5 | 5 | - [bug] JAVA-1132: Executing bound statement with no variables results in exception with protocol v1. |
| 6 | 6 | - [improvement] JAVA-1040: SimpleStatement parameters support in QueryLogger. |
| 7 | +- [improvement] JAVA-1151: Fail fast if HdrHistogram is not in the classpath. | |
| 7 | 8 | |
| 8 | 9 | Merged from 2.1 branch: |
| 9 | 10 |
modified driver-core/src/main/java/com/datastax/driver/core/PerHostPercentileTracker.java +6 −0
| @@ -76,6 +76,12 @@ | ||
| 76 | 76 | int numberOfHosts, |
| 77 | 77 | int minRecordedValues, |
| 78 | 78 | long intervalMs) { |
| 79 | + try { | |
| 80 | + Histogram.class.getName(); | |
| 81 | + } catch (NoClassDefFoundError e) { | |
| 82 | + throw new IllegalStateException("HdrHistogram seems to be missing from the classpath. " + | |
| 83 | + "Make sure you depend on it explicitly (the driver declares it as optional).", e); | |
| 84 | + } | |
| 79 | 85 | this.highestTrackableLatencyMillis = highestTrackableLatencyMillis; |
| 80 | 86 | this.numberOfSignificantValueDigits = numberOfSignificantValueDigits; |
| 81 | 87 | this.minRecordedValues = minRecordedValues; |