Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for 4.0 #114

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ public String clusterName() {

@Override
public InetAddress localBroadcastAddress() {
return FBUtilities.getBroadcastAddressAndPort().getAddress();
return FBUtilities.getBroadcastAddressAndPort().address;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ private InternalGossiperMBeanMetricFamilyCollector(final Gossiper gossiper, fina
@Override
protected void collect(final Stream.Builder<NumericMetric> generationNumberMetrics, final Stream.Builder<NumericMetric> downtimeMetrics, final Stream.Builder<NumericMetric> activeMetrics) {
for (InetAddressAndPort endpoint : gossiper.getEndpoints()) {
final InetAddress endpointAddress = endpoint.getAddress();
final EndpointState state = gossiper.getEndpointStateForEndpoint(endpoint);

final Labels labels = metadataFactory.endpointLabels(endpointAddress);
final Labels labels = metadataFactory.endpointLabels(endpoint.address);

generationNumberMetrics.add(new NumericMetric(labels, gossiper.getCurrentGenerationNumber(endpoint)));
downtimeMetrics.add(new NumericMetric(labels, millisecondsToSeconds(gossiper.getEndpointDowntime(endpoint))));
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</modules>

<properties>
<version.cassandra.all>4.1.0</version.cassandra.all>
<version.cassandra.all>4.0.11</version.cassandra.all>

<version.maven.release.plugin>2.5.3</version.maven.release.plugin>
<version.maven.dependency.plugin>3.1.1</version.maven.dependency.plugin>
Expand Down