Hi Team. We are querying from trino-458 to pinot-1...
# troubleshooting
c
Hi Team. We are querying from trino-458 to pinot-1.2.0 cluster. The query keeps fetching the response result as streaming and it looks normal. But I am getting the following error on pinot server. What is this error?
Copy code
2025/02/06 15:59:22.915 ERROR [grpc-default-executor-11715] org.apache.pinot.core.operator.streaming.BaseStreamingCombineOperator:getNextBlock:84 Timed out while polling results block (query: QueryContext{_tableName='profile_zzzz_profile_base_OFFLINE', _subquery=null, _selectExpressions=[feature_nm], _distinct=false, _aliasList=[null], _filter=feature_nm != 'null', _groupByExpressions=null, _havingFilter=null, _orderByExpressions=null, _limit=2147483647, _offset=0, _queryOptions={}, _expressionOverrideHints={}, _explain=false})

2025/02/06 15:59:22.918 INFO [grpc-default-executor-11715] org.apache.pinot.core.query.logger.ServerQueryLogger:logQuery:160 Processed requestId=0,table=profile_zzzz_profile_base_OFFLINE,segments(queried/processed/matched/consumingQueried/consumingProcessed/consumingMatched/invalid/limit/value)=1/0/0/-1/0/0/0/0/0,schedulerWaitMs=-1,reqDeserMs=-1,totalExecMs=14999,resSerMs=-1,totalTimeMs=-1,minConsumingFreshnessMs=-1,broker=unknown,numDocsScanned=0,scanInFilter=0,scanPostFilter=0,sched=GrpcQueryServer,threadCpuTimeNs(total/thread/sysActivity/resSer)=0/0/0/0
b
Hello coco. It seems query is timing out under the hood. Have you tried setting higher timeout values or running it in Pinot Query Console for comparison ?
c
Hi @Bolek Ziobrowski The query is a select query that returns a lot of raw data. Perhaps the query will timeout on the broker if you execute the query in the pinot query console. Trinno is streaming data to the pinot server via grpc communication without going through the pinot broker. I am concerned that this query is responding with missing data, so I am checking. There is no timeout-related content in the grpc settings of the Trino pinot connector documentation. https://trino.io/docs/current/connector/pinot.html The pinot server logs an error, but I cannot tell if it is processing the query normally or if there is missing data. What documentation should I read to learn more about the pinot server's grpc streaming query? If timeouts occur in grpc communication and data is missing, what settings should I change?
s
@Bolek Ziobrowski Hi, we checked query result count in pinot and trino. Pinot select distinctcount(c1) from tq where c1 != 'null' --> 7683 rows Trino(pinot connector) select distinct c1 from pinot.t1 where t1 != 'null' --> 7670~7678 rows It seems that this trino query is responding with missing data. Is that related to pinot server ERROR ? cc. @coco
b
Hi . If there's no option for setting timeout via trino, you could try changing default query timeout with pinot.broker.timeoutMs . See https://docs.pinot.apache.org/configuration-reference/broker for details.
s
@Bolek Ziobrowski Thank you for replying. It seems that when if server is timeout in gRPC, it skips streaming the remaining results blocks. (org/apache/pinot/core/operator/streaming/BaseStreamingCombineOperator.java) But, pinot doesn't throw exception. So when querying trino, trino returns results with missing data.
b
In http endpoint's response there's a flag - partialResult - that could be set in such case. I'm not sure if there's something comparable in gRPC. It'd make sense to report issue on GH with a reproducible test case. Anyway, have you tried increasing value of timeout setting ?
s
@Bolek Ziobrowski We have to check if there is flag (partialResult). And we have tried increased pinot server query timeout. (pinot.server.executor.timeout) At that time, there is no time out. so we return result well without missing data. We wanted to try to set config in trino (client side). So if setting trino query timeout is smaller than pinot server timeout, trino return exception when pinot server have timeout error in gRPC.