You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "anilsomisetty (via GitHub)" <gi...@apache.org> on 2025/11/12 08:30:49 UTC
[I] Add QueryEventListener for writing Pinot Event Data to DeepStore [pinot]
anilsomisetty opened a new issue, #17193:
URL: https://github.com/apache/pinot/issues/17193
Currently, Pinot does not have a BrokerQueryEventListener implementation. This feature request suggests adding a QueryEventListener that will write Pinot event data to a configured DeepStore.
DeepStore Pinot event data can then be ingested back into Pinot or accessed by other query engines such as Trino, Presto, Hive, or Spark. This event data can be utilized by monitoring and metric dashboards to track Pinot's activity.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] Add QueryEventListener for writing Pinot Event Data to DeepStore [pinot]
Posted by "anilsomisetty (via GitHub)" <gi...@apache.org>.
anilsomisetty commented on issue #17193:
URL: https://github.com/apache/pinot/issues/17193#issuecomment-3545724367
@xiangfu0 Thank you, I will work on this feature and share a design doc for review before starting the implementation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] Add QueryEventListener for writing Pinot Event Data to DeepStore [pinot]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #17193:
URL: https://github.com/apache/pinot/issues/17193#issuecomment-4317211281
This issue has been automatically marked as stale because it has not had any activity in the last 150 days. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] Add QueryEventListener for writing Pinot Event Data to DeepStore [pinot]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #17193: Add QueryEventListener for writing Pinot Event Data to DeepStore
URL: https://github.com/apache/pinot/issues/17193
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] Add QueryEventListener for writing Pinot Event Data to DeepStore [pinot]
Posted by "anilsomisetty (via GitHub)" <gi...@apache.org>.
anilsomisetty commented on issue #17193:
URL: https://github.com/apache/pinot/issues/17193#issuecomment-3530864772
@xiangfu0 could you please post your thoughts on my above feature request ?
I have seen your pr for QueryLog System table: https://github.com/apache/pinot/pull/17169, I would like to point out a potential issue: if a broker goes down, all event data from that broker may become inaccessible or lost.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] Add QueryEventListener for writing Pinot Event Data to DeepStore [pinot]
Posted by "xiangfu0 (via GitHub)" <gi...@apache.org>.
xiangfu0 commented on issue #17193:
URL: https://github.com/apache/pinot/issues/17193#issuecomment-3539554085
+1 for this feature.
Here is my high level thoughts:
1. create `BrokerQueryEventListener` interface for query lifecycle:
```
/** Invoked when the broker receives the query request */
void onQuerySubmitted(QueryContext queryContext, long requestTimestampMs);
/** Invoked when the broker receives responses from servers */
void onQueryResponseReceived(QueryContext queryContext,
BrokerResponse brokerResponse,
long responseTimestampMs);
/** Invoked when the full query lifecycle completes successfully */
void onQueryCompleted(QueryEventRecord eventRecord);
/** Invoked when an error occurs during query execution */
void onQueryFailed(QueryEventRecord eventRecord, Throwable error);
```
2. QueryEventRecord(mainly coming from query planner and response), this need to be reviewed/reworked carefully for compliance:
```
{
"version": 1,
"fields": {
"timestamp": "long",
"queryId": "string",
"tableName": "string",
"tenant": "string",
"query": "string",
"brokerId": "string",
"clientIp": "string",
"totalTimeMs": "int",
"brokerTimeMs": "int",
"serverTimeMs": "int",
"numServersQueried": "int",
"numServersResponded": "int",
"segmentsScanned": "long",
"docsScanned": "long",
"entriesScannedInFilter": "long",
"entriesScannedPostFilter": "long",
"exceptions": {
"type": "array",
"items": "string"
},
"multistage": {
"type": "map",
"values": "string"
},
"metadata": {
"type": "map",
"values": "string"
}
}
}
````
3. write your implementation for the query logs persistency like Parquet file on deep store etc.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] Add QueryEventListener for writing Pinot Event Data to DeepStore [pinot]
Posted by "xiangfu0 (via GitHub)" <gi...@apache.org>.
xiangfu0 commented on issue #17193:
URL: https://github.com/apache/pinot/issues/17193#issuecomment-3539538949
> [@xiangfu0](https://github.com/xiangfu0) could you please post your thoughts on my above feature request ? I have seen your pr for supporting QueryLog System table: [#17169](https://github.com/apache/pinot/pull/17169), I would like to point out a possible issue: if a broker goes down, all event data from that broker may become inaccessible or lost. However, capturing and storing event data in DeepStore would ensure the data is permanently saved.
+1, that PR is more like a UI facing feature, not a fully prod grade feature.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [I] Add QueryEventListener for writing Pinot Event Data to DeepStore [pinot]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #17193:
URL: https://github.com/apache/pinot/issues/17193#issuecomment-4676144076
This issue has been closed because it has been inactive for 180 days. If you believe this issue is still relevant, please feel free to reopen it or create a new issue. Thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org