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

C*4 includes port in IP sent into Connection metric #64

Open
serban21 opened this issue Feb 13, 2020 · 0 comments
Open

C*4 includes port in IP sent into Connection metric #64

serban21 opened this issue Feb 13, 2020 · 0 comments

Comments

@serban21
Copy link

Testing with latest C*4:

java.lang.IllegalArgumentException: '127.0.0.1_7000' is not an IP string literal.
	at com.google.common.net.InetAddresses.forString(InetAddresses.java:153)
	at com.zegelin.cassandra.exporter.MetadataFactory.endpointLabels(MetadataFactory.java:76)
	at com.zegelin.cassandra.exporter.FactoriesSupplier.lambda$connectionMetric$19(FactoriesSupplier.java:502)
	at com.zegelin.cassandra.exporter.FactoriesSupplier$FactoryBuilder.lambda$withLabelMaker$0(FactoriesSupplier.java:75)
	at com.zegelin.cassandra.exporter.FactoriesSupplier$FactoryBuilder.lambda$build$1(FactoriesSupplier.java:101)
	at com.zegelin.cassandra.exporter.Harvester.lambda$registerMBean$0(Harvester.java:177)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

The port is included due to CASSANDRA-7544 and apache/cassandra@59b5b6b. A possible solution might be to replace InetAddresses with HostAndPort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant