Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

fix(bulk_load): update ingestion error handling with move_files mode #1011

Merged
merged 3 commits into from
Jan 17, 2022

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Jan 10, 2022

As apache/incubator-pegasus#877 shows, move files during ingestion will speech up ingestion and decrease disk write throughput. (apache/incubator-pegasus#864)

However, it exposes that in some error handling cases, it is possible to execute an out-dated ingestion request repeated.

In previous copy_files mode, it won't have problems, just ingest files repeatly, now is move_files mode, once ingestion is succeed, the original files doesn't exist, which will lead to unexpected ingestion failed.

This pull request is to update error handling during ingestion, including:

  • Delay to send ingestion_request to make replica server receive request with ingestion status
  • Add ballot in ingestion_request (It will be used in pegasus repo to do ballot check)

@hycdong hycdong marked this pull request as draft January 10, 2022 07:34
@hycdong hycdong changed the title feat(bulk_load): add ballot check to avoid out-dated ingestion feat(bulk_load): adpat move_files during ingestion Jan 10, 2022
@hycdong hycdong marked this pull request as ready for review January 10, 2022 09:28
@hycdong hycdong changed the title feat(bulk_load): adpat move_files during ingestion feat(bulk_load): update ingestion error handling with move_files mode Jan 10, 2022
@hycdong hycdong changed the title feat(bulk_load): update ingestion error handling with move_files mode fix(bulk_load): update ingestion error handling with move_files mode Jan 11, 2022
@hycdong hycdong merged commit 0cb88e2 into XiaoMi:master Jan 17, 2022
@hycdong hycdong deleted the ingestion_ballot branch January 17, 2022 03:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants