Skip to content

Conversation

@soumitra-st
Copy link
Contributor

If servers have grpc TLS enabled, then multi-stage query fails.

curl -k -X POST -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"sql":"select count(*) from transcript limit 10","trace":false,"queryOptions":"useMultistageEngine=true"}' https://<broker.blah.com>/query/sql

{"numRowsResultSet":0,"partialResult":true,"exceptions":[{"errorCode":200,"message":"QueryExecutionError:\nError dispatching query: 285819222000000000 to server: pinot-server-server-0-0.pinot-pinot-server-headless.cell-ctwxvh-managed.svc.cluster.local@{36243,40701}\norg.apache.pinot.query.service.dispatch.QueryDispatcher.execute(QueryDispatcher.java:259)\norg.apache.pinot.query.service.dispatch.QueryDispatcher.submit(QueryDispatcher.java:204)\norg.apache.pinot.query.service.dispatch.QueryDispatcher.submitAndReduce(QueryDispatcher.java:116)\norg.apache.pinot.broker.requesthandler.MultiStageBrokerRequestHandler.handleRequest(MultiStageBrokerRequestHandler.java:218)\nUNAVAILABLE: Network closed for unknown reason\nio.grpc.Status.asRuntimeException(Status.java:532)\nio.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:481)\nio.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:489)\nio.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:453)\n"}],"numGroupsLimitReached":false,"timeUsedMs":0,"requestId":"285819222000000000","brokerId":"Broker_pinot-broker-broker-0-0.pinot-pinot-broker-headless.cell-ctwxvh-managed.svc.cluster.local_8099","numDocsScanned":0,"totalDocs":0,"numEntriesScannedInFilter":0,"numEntriesScannedPostFilter":0,"numServersQueried":0,"numServersResponded":0,"numSegmentsQueried":0,"numSegmentsProcessed":0,"numSegmentsMatched":0,"numConsumingSegmentsQueried":0,"numConsumingSegmentsProcessed":0,"numConsumingSegmentsMatched":0,"minConsumingFreshnessTimeMs":0,"numSegmentsPrunedByBroker":0,"numSegmentsPrunedByServer":0,"numSegmentsPrunedInvalid":0,"numSegmentsPrunedByLimit":0,"numSegmentsPrunedByValue":0,"brokerReduceTimeMs":0,"offlineThreadCpuTimeNs":0,"realtimeThreadCpuTimeNs":0,"offlineSystemActivitiesCpuTimeNs":0,"realtimeSystemActivitiesCpuTimeNs":0,"offlineResponseSerializationCpuTimeNs":0,"realtimeResponseSerializationCpuTimeNs":0,"offlineTotalCpuTimeNs":0,"realtimeTotalCpuTimeNs":0,"explainPlanNumEmptyFilterSegments":0,"explainPlanNumMatchAllFilterSegments":0,"traceInfo":{}}

This PR is reverting #13645

@codecov-commenter
Copy link

codecov-commenter commented Oct 19, 2024

Codecov Report

Attention: Patch coverage is 15.00000% with 17 lines in your changes missing coverage. Please review.

Project coverage is 63.75%. Comparing base (59551e4) to head (f75df29).
Report is 1217 commits behind head on master.

Files with missing lines Patch % Lines
...rg/apache/pinot/server/starter/ServerInstance.java 0.00% 10 Missing ⚠️
.../apache/pinot/server/worker/WorkerQueryServer.java 0.00% 7 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #14259      +/-   ##
============================================
+ Coverage     61.75%   63.75%   +2.00%     
- Complexity      207     1535    +1328     
============================================
  Files          2436     2628     +192     
  Lines        133233   144989   +11756     
  Branches      20636    22184    +1548     
============================================
+ Hits          82274    92438   +10164     
- Misses        44911    45725     +814     
- Partials       6048     6826     +778     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 0.00% <ø> (ø)
java-11 63.71% <15.00%> (+2.00%) ⬆️
java-21 63.64% <15.00%> (+2.02%) ⬆️
skip-bytebuffers-false 63.74% <15.00%> (+1.99%) ⬆️
skip-bytebuffers-true 63.61% <15.00%> (+35.89%) ⬆️
temurin 63.75% <15.00%> (+2.00%) ⬆️
unittests 63.75% <15.00%> (+2.00%) ⬆️
unittests1 55.41% <100.00%> (+8.52%) ⬆️
unittests2 34.32% <0.00%> (+6.59%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gortiz gortiz mentioned this pull request Oct 22, 2024
@gortiz
Copy link
Contributor

gortiz commented Oct 22, 2024

I'm thinking to merge this instead of #14275, but I had to re-launch tests before merging given all executions of test unit 2 had failed.

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

Successfully merging this pull request may close these issues.

3 participants