Hi, Pinot team. Always thank you. I have a questio...
# troubleshooting
u
Hi, Pinot team. Always thank you. I have a questions. Question Why does Trino query the removed Pinot broker? Environment I am using Trino and Pinot (on Kubernetes). The Trino version is 451, and Pinot version is 1.1.0. The client sends queries to Trino. Situation I initially provisioned 2 brokers (broker-0, broker-1), but later scaled down to 1 broker. After the client sends a query to Trino, Trino attempts to send the query to the removed broker-1. The following error message is observed:
Copy code
Caused by: java.net.UnknownHostException: pinot-broker-1.pinot-broker-headless.data.svc.cluster.local
a
Hi! Did you specify pinot brokers url while configuring Trino?
u
No. Controller url!!
a
I see. is the issue transient or still there?
it might take a bit of time for controllers to notice the status of brokers
u
So, I reprovision 2 brokers.
Umm. At first I think the problem in trino. So, before reprovision pinot, I reprovision trino. But still same isssue.
a
if the issue is persistent, it might be due to a problem with JDBC connector of Pinot. Normally, it follows a simple policy to randomly query pinot brokers(regardless of their status).
Restart your trino and hopefully it will fetch latest brokers and things will be fix
u
I was expect that, but trino request to removed broker.😭
a
pls check the broker status in
${broker_url}/9000
u
Umm. the issue was yesterday. At that time I check the pinot UI. In pinot web UI show one broker status is dead.
a
I have already opened an issue in Pinot and think this might be related. Lets see when it will be approved
u
Can u share issue url plz?
a
https://github.com/apache/pinot/issues/15074. this is not directly usefull for you case, but when fixed JDBC can switch to using this mode and then it will be aware of brokers statuses and thus trino will not forward requests to dead brokers
u
In my case, I need more test and checking. I think that one broker was died (by helm replica count reducing) but died broker include in ideal state. (I will check by test) After test, I will share.
In my case, I reduced the number of replicas through helm. In pinot ui, a specific broker is dead, but it is not dropped. So, if I perform untag, rebuild broker, and then drop it, the broker is not included in the cluster, and queries are not routed to the broker. As you can see from the document, if someone reads this, the meaning of untag is, to be exact, updating to an unused tag.