Repository navigation
Conversation
- max_page_search_size defaults to 500 for pivot and 5000 for latest, and resets to the configured value after each checkpoint - failure retries use exponential backoff; document num_failure_retries, unattended, and 9.6+ retry of authorization errors - destination privileges list only what each case requires - delete_dest_index and force delete - CPS default scope for transforms created with an Elastic Cloud API key - scope stack-only content with applies_to; serverless minimum frequency - top_metrics 9.6+ output, example and callout fixes, links and badges
Elastic Docs AI PR menuCheck the box to run an AI review for this pull request.
Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team. |
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
Docs review summaryNo actionable issues found in the changed lines. Review coverage
|
alexandra5000
left a comment
There was a problem hiding this comment.
Hey! Thanks for adding this! A couple of things:
The PR description says the facts were verified on a 9.7.0-SNAPSHOT cluster. Since these docs are cumulative from 9.0, anything that changed along the way (point in time by default, the 5000 latest default, destination privileges, retry backoff) should be checked against earlier minors or tagged. I left questions on the ones I could tell were unscoped.
Also, transform-setup.md line 76 still says the Stack Monitoring feature must be visible, which now contradicts the stack-only scoping on lines 52 and 63.
| ### Batch transforms may not account for changed documents [transform-batch-limitations] | ||
|
|
||
| A batch transform uses a [composite aggregation](elasticsearch://reference/aggregations/search-aggregations-bucket-composite-aggregation.md) which allows efficient pagination through all buckets. Composite aggregations do not yet support a search context, therefore if the source data is changed (deleted, updated, added) while the batch {{dataframe}} is in progress, then the results may not include these changes. | ||
| A batch transform uses a [composite aggregation](elasticsearch://reference/aggregations/search-aggregations-bucket-composite-aggregation.md) which allows efficient pagination through all buckets. By default, transforms page through the source with a [point in time]({{es-apis}}operation/operation-open-point-in-time), which gives the search a consistent view of the data. Point in time is not used when `use_point_in_time` is set to `false`, when the source includes remote clusters, or when {{cps}} is enabled. When point in time is turned off, if the source data is changed (deleted, updated, added) while the batch {{dataframe}} is in progress, then the results might not include these changes. |
There was a problem hiding this comment.
I think the heading ("Batch transforms may not account for changed documents") now contradicts this paragraph, since with point in time on by default batch transforms do get a consistent view. Maybe reword the heading so the limitation applies when point in time isn't used? Also, is point in time the default across all 9.x versions? If that changed along the way, this needs a version tag.
There was a problem hiding this comment.
yeah this was true since 9.0 (and 8.19)
| For a batch transform, the number of buckets requested is only ever adjusted downwards. The lowering of value might result in a longer duration for the transform checkpoint to complete. For {{ctransforms}}, the number of buckets requested is reset back to the configured `max_page_search_size` when a checkpoint completes. | ||
|
|
||
| The transform retrieves data in batches which means it calculates several buckets at once. Per default this is 500 buckets per search/index operation. The default can be changed using `max_page_search_size` and the minimum value is 10. If failures still occur once the number of buckets requested has been reduced to its minimum, then the transform will be set to a failed state. | ||
| The transform retrieves data in batches which means it calculates several buckets at once. By default, this is 500 buckets per search/index operation for `pivot` transforms and 5000 for `latest` transforms. You can change the default using `max_page_search_size`. The minimum value is 10 and the maximum is 65,536. If failures still occur once the number of buckets requested has been reduced to its minimum, then the transform will be set to a failed state, unless it runs in `unattended` mode, in which case it keeps retrying. |
There was a problem hiding this comment.
Did the 5000 default for latest transforms apply from 9.0, or was it introduced later? If later, it needs a version tag. Same on line 98 and in transform-scale.md line 79.
There was a problem hiding this comment.
yeah the default was always 5000. my guess is we just forgot to update the docs when we introduced latest.
| * `transform_admin` built-in role or `manage_transform` cluster privileges, | ||
| * `read` and `view_index_metadata` index privileges on source indices, and | ||
| * `create_index`, `index`, `manage`, and `read` index privileges on destination indices. If a `retention_policy` is configured, `delete` index privilege is also required on the destination index. | ||
| * `read` and `index` index privileges on destination indices. The following privileges are also required on destination indices in these cases: |
There was a problem hiding this comment.
Did these destination privilege requirements hold on 9.0–9.5, or did the behavior change in a later release? The old text required create_index, index, manage, and read unconditionally, so if something changed in a specific version this needs tagging. If the old text was just wrong, this is fine as is. Just wondering 🙂
There was a problem hiding this comment.
they've always been like this, but i'm not sure if this is more helpful to users to break it out like this? i'm trying to express that they only need to assign those privileges if they are configuring that transform with features that require those privileges, if that makes sense
Do I have to do anything specifically for tagging previous versions? If something was introduced in 9.5 (for example), should I break that out into its own review and remove it from this review? |
Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>
|
@prwhelan the skill is a good start to help: https://github.com/elastic/elastic-docs-skills/blob/main/skills/authoring/docs-applies-to-tagging/SKILL.md |
Summary
This is a collection of changes to clarify some assumptions about transforms that have changed over the years.
Generative AI disclosure
Tool(s) and model(s) used: Claude Code, claude-opus-5-5
I had claude go through the transform docs and categorize statements as assertions and assumptions, and then I selected some and had claude spin up a 9.7.0-SNAPSHOT cluster to verify or state their inaccuracies.