Skip to content

feat(duplication): allow non-idempotent writes during duplication#2380

Open
ruojieranyishen wants to merge 8 commits intoapache:masterfrom
ruojieranyishen:addnonidempotentcounter
Open

feat(duplication): allow non-idempotent writes during duplication#2380
ruojieranyishen wants to merge 8 commits intoapache:masterfrom
ruojieranyishen:addnonidempotentcounter

Conversation

@ruojieranyishen
Copy link
Collaborator

#2379.

This PR introduces a new configuration option duplication_unsafe_allow_non_idempotent to enable non-idempotent write operations (incr, check_and_set, check_and_mutate) during cluster duplication. Previously, these operations were rejected when duplication was enabled to ensure data consistency. However, production environments require flexibility to allow such writes with proper monitoring.

The change adds:

  • New config flag duplication_unsafe_allow_non_idempotent
  • Support for handling non-idempotent RPCs in mutation duplicator
  • New metrics: dup_unsafe_received_non_idempotent_duplicate_request and
    dup_retry_non_idempotent_duplicate_request

apache#2379.

This PR introduces a new configuration option `duplication_unsafe_allow_non_idempotent`
to enable non-idempotent write operations (incr, check_and_set, check_and_mutate)
during cluster duplication. Previously, these operations were rejected when
duplication was enabled to ensure data consistency. However, production
environments require flexibility to allow such writes with proper monitoring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant