Skip to content

Ensure incremental bulk setting is set atomically#112479

Merged
Tim-Brooks merged 4 commits intoelastic:partial-rest-requestsfrom
Tim-Brooks:incremental_atomic_flag
Sep 5, 2024
Merged

Ensure incremental bulk setting is set atomically#112479
Tim-Brooks merged 4 commits intoelastic:partial-rest-requestsfrom
Tim-Brooks:incremental_atomic_flag

Conversation

@Tim-Brooks
Copy link
Copy Markdown
Contributor

Currently the rest.incremental_bulk is read in two different places.
This means that it will be employed in two steps introducing
unpredictable behavior. This commit ensures that it is only read in a
single place.

Currently the rest.incremental_bulk is read in two different places.
This means that it will be employed in two steps introducing
unpredictable behavior. This commit ensures that it is only read in a
single place.
@Tim-Brooks Tim-Brooks added >non-issue :Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. v8.16.0 labels Sep 3, 2024
@Tim-Brooks Tim-Brooks requested a review from a team as a code owner September 3, 2024 21:21
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team. label Sep 3, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@Tim-Brooks Tim-Brooks changed the title Ensure incremental setting is set atomically Ensure incremental bulk setting is set atomically Sep 3, 2024
Copy link
Copy Markdown
Contributor

@mhl-b mhl-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Copy Markdown
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.


public static final Setting<Boolean> INCREMENTAL_BULK = boolSetting(
"rest.incremental_bulk",
true,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably want to flip this before merge to main? Unless we are confident in having the feature enabled without a rollout plan. Can be a follow-up.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add a ticket and make it a blocker for merge into main.

@Tim-Brooks Tim-Brooks merged commit e1460ce into elastic:partial-rest-requests Sep 5, 2024
Tim-Brooks added a commit that referenced this pull request Sep 17, 2024
Currently the rest.incremental_bulk is read in two different places.
This means that it will be employed in two steps introducing
unpredictable behavior. This commit ensures that it is only read in a
single place.
Tim-Brooks added a commit that referenced this pull request Sep 18, 2024
Currently the rest.incremental_bulk is read in two different places.
This means that it will be employed in two steps introducing
unpredictable behavior. This commit ensures that it is only read in a
single place.
Tim-Brooks added a commit that referenced this pull request Sep 18, 2024
Currently the rest.incremental_bulk is read in two different places.
This means that it will be employed in two steps introducing
unpredictable behavior. This commit ensures that it is only read in a
single place.
Tim-Brooks added a commit to Tim-Brooks/elasticsearch that referenced this pull request Sep 19, 2024
Currently the rest.incremental_bulk is read in two different places.
This means that it will be employed in two steps introducing
unpredictable behavior. This commit ensures that it is only read in a
single place.
Tim-Brooks added a commit that referenced this pull request Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. >non-issue Team:Distributed Meta label for distributed team. v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants