-
Notifications
You must be signed in to change notification settings - Fork 101
java.lang.IllegalStateException: Unknown protocol: HTT #207
Comments
Hi @andrey-gava , |
Manualy from shell: From Jenkins like this:
I don't want to upgrade. I just try understand why this warning appears. Because its produce over 110 messages in a second every time when I scale, and it garbage my technical logs when debugging. |
This issue is probably related to Hazelcast itself, not Kubernetes plugin, because we see it in some other scenarios, like this hazelcast/hazelcast#15446 I was not able to reproduce it with just Hazelcast, I tried:
No such logs. @andrey-gava Would you be able to provide the steps to reproduce, so we could have a closer look into that? |
But you not 100% sure about it. Am I right? From the point off k8s there no specific settings in deployment or service. Speaking about project, its a commercial product so I cant share it. |
Posting in case it helps someone.
Make sure that the service-name is not null or it will look for members among all services under the namespace -- in my case, this namespace was api. My issue had to do with setting the property in the incorrect location. I didn't make sure that setProperty() was after getKubernetesConfig() and was setting the property directly on the config instance itself. This is what working code looks like: config
.getNetworkConfig()
.getJoin()
.getKubernetesConfig()
.setEnabled(true)
.setProperty("namespace", NAMESPACE)
.setProperty("service-name", SERVICE-NAME); |
@leszko |
To be honest I don't think it's related. Could you add the exact minimum steps to reproduce this issue? |
Problem was in linkerd service mesh. #307 Add to deployment
Issue can be closed. |
Hey folks, I am facing same issue . java.lang.IllegalStateException: Unknown protocol: OPT |
We have java spring app, with embedded hazelcast, and run it in Kubernetes.
For member lookup we using DNS Lookup Discovery mode.
All instances off hazelcast cluster starting well, and members find each other.
But every time when I scale deployment, or update docker image, we see a lot of warnings in logs like this:
2020-06-09 13:38:06.578 WARN 1 --- [.IO.thread-in-2] com.hazelcast.nio.tcp.TcpIpConnection : [10.47.0.6]:5701 [abc-2-app] [3.12.7] Connection[id=303, /10.47.0.6:5736->/10.42.0.9:5701, qualifier=null, endpoint=[10.42.0.9]:5701, alive=false, type=NONE] closed. Reason: Exception in Connection[id=303, /10.47.0.6:5736->/10.42.0.9:5701, qualifier=null, endpoint=[10.42.0.9]:5701, alive=true, type=NONE], thread=hz._hzInstance_1_abc-2-app.IO.thread-in-2
java.lang.IllegalStateException: Unknown protocol: HTT
at com.hazelcast.nio.tcp.UnifiedProtocolDecoder.onRead(UnifiedProtocolDecoder.java:107)
at com.hazelcast.internal.networking.nio.NioInboundPipeline.process(NioInboundPipeline.java:135)
at com.hazelcast.internal.networking.nio.NioThread.processSelectionKey(NioThread.java:369)
at com.hazelcast.internal.networking.nio.NioThread.processSelectionKeys(NioThread.java:354)
at com.hazelcast.internal.networking.nio.NioThread.selectLoop(NioThread.java:280)
at com.hazelcast.internal.networking.nio.NioThread.run(NioThread.java:235)
The text was updated successfully, but these errors were encountered: