Skip to content
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

Issue/4184 assign shard logic #4223

Merged
merged 4 commits into from Dec 5, 2023
Merged

Conversation

fulmicoton
Copy link
Contributor

No description provided.

@fulmicoton fulmicoton force-pushed the issue/4184-assign-shard-logic branch 4 times, most recently from b7672cc to 9541f3e Compare December 2, 2023 04:59
@fulmicoton fulmicoton marked this pull request as draft December 2, 2023 06:41
@fulmicoton fulmicoton marked this pull request as ready for review December 2, 2023 08:11
@fulmicoton fulmicoton marked this pull request as draft December 2, 2023 08:39
@fulmicoton fulmicoton force-pushed the issue/4184-assign-shard-logic branch 6 times, most recently from d2c9c2d to 094f91f Compare December 4, 2023 07:14
@fulmicoton fulmicoton marked this pull request as ready for review December 4, 2023 07:14
@fulmicoton fulmicoton force-pushed the issue/4184-assign-shard-logic branch 2 times, most recently from fb92c7a to d67b52a Compare December 4, 2023 08:16
quickwit/quickwit-indexing/src/actors/indexing_pipeline.rs Outdated Show resolved Hide resolved
if let Some(handles) = &mut self.handles_opt {
info!(
shard_ids=?message.0.shard_ids,
shard_ids=?assign_shards_message.0.shard_ids,
"assigning shards to indexing pipeline."
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"assigning shards to indexing pipeline."
"assigning shards to indexing pipeline"

quickwit/quickwit-indexing/src/actors/indexing_service.rs Outdated Show resolved Hide resolved
ctx: &ActorContext<Self>,
apply_plan_req: ApplyIndexingPlanRequest,
) -> Result<(), IndexingError> {
let tasks: &[IndexingTask] = &apply_plan_req.indexing_tasks[..];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let tasks: &[IndexingTask] = &apply_plan_req.indexing_tasks[..];
let tasks: &[IndexingTask] = &apply_plan_req.indexing_tasks;

quickwit/quickwit-indexing/src/actors/indexing_pipeline.rs Outdated Show resolved Hide resolved
quickwit/quickwit-indexing/src/source/ingest/mod.rs Outdated Show resolved Hide resolved
fulmicoton and others added 4 commits December 5, 2023 13:01
…espawn

Bugfix Assign shard logic.

If no shard is removed, we just kill the pipeline.
If shards are added we reinitiate the shards.
The pipeline supervisor keeps track of the shard, and reassigns them if
the pipeline is respawned.

Closes #4184
Closes #4174
Co-authored-by: Adrien Guillo <adrien@quickwit.io>
Co-authored-by: Adrien Guillo <adrien@quickwit.io>
@fulmicoton fulmicoton merged commit e8f852c into main Dec 5, 2023
4 checks passed
@fulmicoton fulmicoton deleted the issue/4184-assign-shard-logic branch December 5, 2023 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants