Skip to content

Commit

Permalink
Merge branch 'cassandra-3.0' into cassandra-3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjirsa committed Jun 6, 2017
2 parents 92e3042 + 40ad3cf commit 30412b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* Fix cqlsh automatic protocol downgrade regression (CASSANDRA-13307)
* Tracing payload not passed from QueryMessage to tracing session (CASSANDRA-12835)
Merged from 3.0:
* Failed unregistering mbean during drop keyspace (CASSANDRA-13346)
* nodetool scrub/cleanup/upgradesstables exit code is wrong (CASSANDRA-13542)
* Fix the reported number of sstable data files accessed per read (CASSANDRA-13120)
* Fix schema digest mismatch during rolling upgrades from versions before 3.0.12 (CASSANDRA-13559)
Expand Down
8 changes: 6 additions & 2 deletions src/java/org/apache/cassandra/metrics/TableMetrics.java
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,12 @@ public void release()
{
CassandraMetricsRegistry.MetricName name = factory.createMetricName(entry.getKey());
CassandraMetricsRegistry.MetricName alias = aliasFactory.createMetricName(entry.getValue());
allTableMetrics.get(entry.getKey()).remove(Metrics.getMetrics().get(name.getMetricName()));
Metrics.remove(name, alias);
final Metric metric = Metrics.getMetrics().get(name.getMetricName());
if (metric != null)
{ // Metric will be null if it's a view metric we are releasing. Views have null for ViewLockAcquireTime and ViewLockReadTime
allTableMetrics.get(entry.getKey()).remove(metric);
Metrics.remove(name, alias);
}
}
readLatency.release();
writeLatency.release();
Expand Down

0 comments on commit 30412b0

Please sign in to comment.