Skip to content

numServersQueried, responded is not set in BrokerResponse for MSQE #14624

@vrajat

Description

@vrajat

Reproduce:

  • Start MultiStageQueryEngineQuickStart.
  • Run the following commands:
# Run query using SSE
 curl --request POST http://localhost:9000/sql --data '{"sql":"SELECT playerName, teamID FROM baseballStats_OFFLINE LIMIT 10", "queryOptions":"useMultistageEngine=false"}' | jq > /tmp/sse

# Run query using MSE
curl --request POST http://localhost:9000/sql --data '{"sql":"SELECT playerName, teamID FROM baseballStats_OFFLINE LIMIT 10", "queryOptions":"useMultistageEngine=true"}' | jq > /tmp/mse

The relevant portions of diff are:

 diff /tmp/sse /tmp/mse

67,68c131,132
<   "numServersQueried": 1,
<   "numServersResponded": 1,
---
>   "numServersQueried": 0,
>   "numServersResponded": 0,

Note that lines starting with > are from /tmp/mse

Other fields are set to 0 as well but it is not clear to me if the time taken was > 0 ms.

81,82c145,146
<   "brokerReduceTimeMs": 0,
<   "offlineThreadCpuTimeNs": 129000,
---
>   "brokerReduceTimeMs": 2,
>   "offlineThreadCpuTimeNs": 0,
84c148
<   "offlineSystemActivitiesCpuTimeNs": 44042,
---
>   "offlineSystemActivitiesCpuTimeNs": 0,
86c150
<   "offlineResponseSerializationCpuTimeNs": 9000,
---
>   "offlineResponseSerializationCpuTimeNs": 0,
88c152
<   "offlineTotalCpuTimeNs": 182042,
---
>   "offlineTotalCpuTimeNs": 0,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions