Skip to content

[IOTDB-5706] Data inconsistency between IoT protocol replications#11727

Merged
OneSizeFitsQuorum merged 1 commit intoapache:masterfrom
HxpSerein:fix_need_retry
Dec 15, 2023
Merged

[IOTDB-5706] Data inconsistency between IoT protocol replications#11727
OneSizeFitsQuorum merged 1 commit intoapache:masterfrom
HxpSerein:fix_need_retry

Conversation

@HxpSerein
Copy link
Copy Markdown
Collaborator

@HxpSerein HxpSerein commented Dec 15, 2023

Description

The status code returned for handling BatchProcessException is WRITE_PROCESS_ERROR, but this status code was not included in the retry judgment of IoT, so the batch that caused BatchProcessException did not retry, resulting in inconsistent data between IoT replications.

To fix the problem, we add the status code WRITE_PROCESS_ERROR in IoT Retry judgment.

Besides, the atomicity issue of storage engine write operations can also lead to data inconsistency, which will be fixed in subsequent work.

Please see jira for details.

Copy link
Copy Markdown
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants