Hi all , we are encountering an issue in Pinot 1.1...
# troubleshooting
u
Hi all , we are encountering an issue in Pinot 1.1.0 related to multistage engine. When the Multistage engine is enabled , we are getting this error
Copy code
2025/01/12 22:01:51.711 ERROR [MultiStageBrokerRequestHandler] [broker-managed-async-executor-3] Caught exception executing request 1564143934000001156: 
            SET useMultistageEngine=True;
            SELECT vin, raw_can_id, byte1, byte2, byte3, byte4, byte5, byte6, byte7, byte8, event_time FROM VehicleRawCANData 
            WHERE created_at >= 1736718407318.0
            AND created_at < 1736719007318.0
            AND raw_can_id IN ('0x8c0af3f4','0x880cfef4','0x8c17e6f4','0x8c19e6f4','0x8c01fff3','0x8c18fff4','0x8c1afff1','0x8c1bfff2','0x8c1cfff1','0x8c1dfff2','0x8c02fff3','0x9073e6f1','0x9072e6f1','0x9071e6f1','0x9070e6f1','0x9077e6f2','0x9076e6f2','0x9075e6f2','0x9074e6f2','0x9078e6f1','0x9079e6f2')
            AND vin IN ('P6WC2C1K5R1000024')
            ORDER BY created_at;
            , Received error query execution result block: {250=ExecutionTimeoutError
ProcessingException(errorCode:250, message:ExecutionTimeoutError)
	at org.apache.pinot.common.exception.QueryException.<clinit>(QueryException.java:113)
	at org.apache.pinot.common.datablock.DataBlockUtils.extractErrorMsg(DataBlockUtils.java:50)
	at org.apache.pinot.common.datablock.DataBlockUtils.getErrorDataBlock(DataBlockUtils.java:42)
	at org.apache.pinot.query.runtime.blocks.TransferableBlockUtils.getErrorTransferableBlock(TransferableBlockUtils.java:47)}
org.apache.pinot.query.service.dispatch.QueryDispatcher.getResultTable(QueryDispatcher.java:335)
org.apache.pinot.query.service.dispatch.QueryDispatcher.runReducer(QueryDispatcher.java:275)
org.apache.pinot.query.service.dispatch.QueryDispatcher.submitAndReduce(QueryDispatcher.java:99)
org.apache.pinot.broker.requesthandler.MultiStageBrokerRequestHandler.handleRequest(MultiStageBrokerRequestHandler.java:191)
Is this any kind of bug in this version , or is there any way to overcome this issue ? We are dealing with hybrid tables Query execution.
r
it runs without timing out in single-stage engine ?
u
Yes without multistage , it's working fine. We have the retention period of 2 days in REALTIME table and minion merges and push the data into OFFLINE table at midnight. Will this create any impact in the timout issue.
r
can you share the explain plans for both engines ?
u
Explain plan ..
r
I meant explain plan for the query that timed out
also can you share the stats from the run with Single Stage Engine ?
u
Stats for single stage engine query
Plan for the query getting timed out
Copy code
Execution Plan
LogicalAggregate(group=[{}], agg#0=[MAX($0)], agg#1=[MIN($1)])
  PinotLogicalExchange(distribution=[hash])
    LogicalAggregate(group=[{}], agg#0=[MAX($12)], agg#1=[MIN($12)])
      LogicalTableScan(table=[[VehicleRawCANData]])
r
I dont see anything obvious in the query plan or statistics. This is a very straight-forward query.
I am wondering if there is an issue in MSE infra setup and n/w are timing out.
do you see any logs related to the query in any of the servers ? you can grep using the request id of the query.
e.g. the request id of the single stage engine query is
"requestId": "1781008477000000847",
There should be a similar ID for the MSE query as well.
u
We have server logs
Copy code
2025/01/13 10:06:33.595 WARN [MailboxStatusObserver] [grpc-default-executor-3498] Error on sender side
io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: ClientCall was cancelled at or after deadline. [closed=[CANCELLED], committed=[remote_addr=pinot-server-6.pinot-server-headless.pinot-stage.svc.cluster.local/10.76.12.3:7732]]
	at io.grpc.Status.asRuntimeException(Status.java:537) ~[pinot-all-1.1.0-jar-with-dependencies.jar:1.1.0-c2606742bbc4b15cff857eb0ffe7ec878ff181bb]
	at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:481) [pinot-all-1.1.0-jar-with-dependencies.jar:1.1.0-c2606742bbc4b15cff857eb0ffe7ec878ff181bb]
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:574) [pinot-all-1.1.0-jar-with-dependencies.jar:1.1.0-c2606742bbc4b15cff857eb0ffe7ec878ff181bb]
	at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:72) [pinot-all-1.1.0-jar-with-dependencies.jar:1.1.0-c2606742bbc4b15cff857eb0ffe7ec878ff181bb]
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:742) [pinot-all-1.1.0-jar-with-dependencies.jar:1.1.0-c2606742bbc4b15cff857eb0ffe7ec878ff181bb]
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:723) [pinot-all-1.1.0-jar-with-dependencies.jar:1.1.0-c2606742bbc4b15cff857eb0ffe7ec878ff181bb]
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) [pinot-all-1.1.0-jar-with-dependencies.jar:1.1.0-c2606742bbc4b15cff857eb0ffe7ec878ff181bb]
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133) [pinot-all-1.1.0-jar-with-dependencies.jar:1.1.0-c2606742bbc4b15cff857eb0ffe7ec878ff181bb]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.base/java.lang.Thread.run(Thread.java:829) [?:?]
Jan 13, 2025 10:06:33 AM io.grpc.internal.ServerCallImpl handleInternalError
WARNING: Cancelling the stream because of internal error
io.grpc.StatusRuntimeException: INTERNAL: Completed without a response
	at io.grpc.Status.asRuntimeException(Status.java:529)
	at io.grpc.internal.ServerCallImpl.closeInternal(ServerCallImpl.java:218)
	at io.grpc.internal.ServerCallImpl.close(ServerCallImpl.java:208)
	at io.grpc.stub.ServerCalls$ServerCallStreamObserverImpl.onCompleted(ServerCalls.java:395)
	at org.apache.pinot.query.service.server.QueryServer.cancel(QueryServer.java:185)
	at org.apache.pinot.common.proto.PinotQueryWorkerGrpc$MethodHandlers.invoke(PinotQueryWorkerGrpc.java:288)
	at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:182)
	at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:351)
	at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:860)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
and we are using pinot 1.1.0 , i think there is some internal bug . So we are planning to use 1.2