-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(gms): filter out runs of a dataJob without any run-events #11223
fix(gms): filter out runs of a dataJob without any run-events #11223
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None of this code is required to add a hasXXX field and this implementation is not correctly handling the ES index mapping.
This feature should be implemented by adding a @searchable annotation to the entity on the timeseries field in the pdl model. This is done with an annotation called hasValuesFieldName
and will both update the ES mapping and populate the boolean without any additional code beyond the addition to the annotation.
@@ -15,6 +15,10 @@ import com.linkedin.common.Urn | |||
record DataProcessInstanceRunEvent includes TimeseriesAspectBase, ExternalReference { | |||
|
|||
@TimeseriesField = {} | |||
@Searchable = { | |||
"fieldType": "TEXT", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should either be removed or set to KEYWORD. The reason is that the value is of type enum which would default to KEYWORD.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The upgrade job looks really good!
- Add a
delayMs
to the primarywhile
loop. This should be set to a default of 1000 millis. The reason is that we want to throttle a little as the aggregation query can put load on the ES cluster and allows us to increase the delay if it triggers alerts on the cluster. - The aggregation query should specify a time window start/stop on the timeseries aspect index. We've seen negative performance impacts from querying the entire timeseries indices (A customer with large timeseries would be Robinhood for example). I would expect the query to iterate on buckets of time. For example, a 1 day window. - Bonus points if the window is fully configurable, but a good conservative default would be to aggregate timeseries data 1 day at a time and maybe assume that it processes the last 90d.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The aggregation query will only return batchSize
(top N) urns from the timeseries index. How does this code not just update the batchSize
most frequent entities?
The |
Updated code for this; can you please review. |
RIght, it is using the Composite aggregator here. It should work. |
@ksrinath - I am not seeing |
Can you please review the updated code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great job!
Checklist