-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[TSDB] Rename rollup public API to downsample #89809
Conversation
Also renamed RollupActionConfig to DownsampleConfig
Added transport actions to operator Constants
cc @ghudgins @Dosant @flash1293 @salvatore-campagna |
Change of |
Thanks for the feedback, Salvatore. I have already discussed this with @flash1293 and we have agreed Kibana will change this as soon as this PR is merged. |
We are aware - this integration is still on a PR so no worries. |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
@@ -1,8 +1,8 @@ | |||
{ | |||
"rollup.rollup":{ | |||
"downsample.downsample":{ |
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.
What does this do to our client friends?
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.
Clients should probably be modified so that they invokes the downsample
endpoint.
I have already tagged the @elastic/es-clients team in this PR. I will reach out to them and give them a heads up about this change.
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.
If the only API rename is rollup.rollup
into downsample.downsample
this should not be an issue since this API is experimental
and we can have BC break.
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.
@ezimuel thanks for confirming. The detailed list of changes introduced can be found in the description of this PR. Regarding the API this is the only change.
public static final String NAME = "indices:admin/xpack/rollup"; | ||
public class DownsampleAction extends ActionType<AcknowledgedResponse> { | ||
public static final DownsampleAction INSTANCE = new DownsampleAction(); | ||
public static final String NAME = "indices:admin/xpack/downsample"; |
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.
Will this break the mixed cluster case? That's fine for the unreleased downsample stuff but not for the old rollup code I think.
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.
Old rollup code is behind a feature flag and has not been released. We will probably need to bump up the supported versions to 8.5.0 for those tests.
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.
- We're removing the
rollup.rollup
API which is experimental but has been around for a year. Do we know this API isn't being used often so a direct removal without deprecation is acceptable? - We're creating a new namespace here "downsample" which we try to only do if there's a good reason. Do we see more APIs being added to this namespace that don't match other existing namespaces? My initial thought for an existing alternative would be
indices.downsample
?
@sethmlarson Thank you for the feedback.
This API is not used because it has always been hidden behind a feature flag. It is safe to directly remove it.
This is an excellent catch. I will change it to |
* main: (175 commits) Fix integration test on Windows (elastic#89894) Avoiding the use of dynamic map keys in the cluster_formation results of the stable master health indicator (elastic#89842) Mute org.elasticsearch.tracing.apm.ApmIT.testCapturesTracesForHttpTraffic (elastic#89891) Fix typos in audit event types (elastic#89886) Synthetic _source: support histogram field (elastic#89833) [TSDB] Rename rollup public API to downsample (elastic#89809) Format script values access (elastic#89780) [DOCS] Simplifies composite aggregation recommendation (elastic#89878) [DOCS] Update CCS compatibility matrix for 8.3 (elastic#88906) Fix memory leak when double invoking RestChannel.sendResponse (elastic#89873) [ML] Add processor autoscaling decider (elastic#89645) Update disk-usage.asciidoc (elastic#89709) (elastic#89874) Add allocation deciders in createComponents (elastic#89836) Mute flaky H3LatLonGeometryTest.testIndexPoints (elastic#89870) Fix typo in get-snapshot-status-api doc (elastic#89865) Picking master eligible node at random in the master stability health indicator (elastic#89841) Do not reuse the client after a disruption elastic#89815 (elastic#89866) [ML] Distribute trained model allocations across availability zones (elastic#89822) Increment clientCalledCount before onResponse (elastic#89858) AwaitsFix for elastic#89867 ...
* main: (175 commits) Fix integration test on Windows (elastic#89894) Avoiding the use of dynamic map keys in the cluster_formation results of the stable master health indicator (elastic#89842) Mute org.elasticsearch.tracing.apm.ApmIT.testCapturesTracesForHttpTraffic (elastic#89891) Fix typos in audit event types (elastic#89886) Synthetic _source: support histogram field (elastic#89833) [TSDB] Rename rollup public API to downsample (elastic#89809) Format script values access (elastic#89780) [DOCS] Simplifies composite aggregation recommendation (elastic#89878) [DOCS] Update CCS compatibility matrix for 8.3 (elastic#88906) Fix memory leak when double invoking RestChannel.sendResponse (elastic#89873) [ML] Add processor autoscaling decider (elastic#89645) Update disk-usage.asciidoc (elastic#89709) (elastic#89874) Add allocation deciders in createComponents (elastic#89836) Mute flaky H3LatLonGeometryTest.testIndexPoints (elastic#89870) Fix typo in get-snapshot-status-api doc (elastic#89865) Picking master eligible node at random in the master stability health indicator (elastic#89841) Do not reuse the client after a disruption elastic#89815 (elastic#89866) [ML] Distribute trained model allocations across availability zones (elastic#89822) Increment clientCalledCount before onResponse (elastic#89858) AwaitsFix for elastic#89867 ... # Conflicts: # x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/downsample/RollupShardIndexer.java
* main: (283 commits) Fix integration test on Windows (elastic#89894) Avoiding the use of dynamic map keys in the cluster_formation results of the stable master health indicator (elastic#89842) Mute org.elasticsearch.tracing.apm.ApmIT.testCapturesTracesForHttpTraffic (elastic#89891) Fix typos in audit event types (elastic#89886) Synthetic _source: support histogram field (elastic#89833) [TSDB] Rename rollup public API to downsample (elastic#89809) Format script values access (elastic#89780) [DOCS] Simplifies composite aggregation recommendation (elastic#89878) [DOCS] Update CCS compatibility matrix for 8.3 (elastic#88906) Fix memory leak when double invoking RestChannel.sendResponse (elastic#89873) [ML] Add processor autoscaling decider (elastic#89645) Update disk-usage.asciidoc (elastic#89709) (elastic#89874) Add allocation deciders in createComponents (elastic#89836) Mute flaky H3LatLonGeometryTest.testIndexPoints (elastic#89870) Fix typo in get-snapshot-status-api doc (elastic#89865) Picking master eligible node at random in the master stability health indicator (elastic#89841) Do not reuse the client after a disruption elastic#89815 (elastic#89866) [ML] Distribute trained model allocations across availability zones (elastic#89822) Increment clientCalledCount before onResponse (elastic#89858) AwaitsFix for elastic#89867 ...
This PR renames all public APIs for downsampling so that they contain the
downsample
keyword instead of therollup
that we had until now.unsupported_aggregation_on_rollup_index
was renamed tounsupported_aggregation_on_downsampled_index
Internal trasport actions were renamed:
indices:admin/xpack/rollup
->indices:admin/xpack/downsample
indices:admin/xpack/rollup_indexer
->indices:admin/xpack/downsample_indexer
index.rollup.source.uuid
->index.downsample.source.uuid
index.rollup.source.name
->index.downsample.source.name
index.rollup.status
->index.downsample.status
Finally, we renamed many internal variables and classes from
*Rollup*
to*Downsample*
. However, this effort will be completed in more than one PRs so that we minimize conflicts with other in-flight PRs.Relates to #74660