Skip to content

feat(zdu): add ZDU flags and rollback dual-write configuration#689

Merged
chakru-r merged 4 commits intomasterfrom
cr-add-zdu-support
Apr 14, 2026
Merged

feat(zdu): add ZDU flags and rollback dual-write configuration#689
chakru-r merged 4 commits intomasterfrom
cr-add-zdu-support

Conversation

@chakru-r
Copy link
Copy Markdown
Contributor

@chakru-r chakru-r commented Apr 10, 2026

Exposes ZDU group flags introduced in the zero-downtime upgrade branch:

  • global.datahub.systemUpdate.zdu.preEnable → ZDU_STAGE_10 (enables CREATE_SCHEMA_VERSION_INDEX for schema version index on metadata_aspect_v2)
  • global.datahub.systemUpdate.zdu.enable → ZDU_STAGE_20 (enables ELASTICSEARCH_BUILD_INDICES_INCREMENTAL_REINDEX_ENABLED, ELASTICSEARCH_BUILD_INDICES_ROLLBACK_DUAL_WRITE_ENABLED, SYSTEM_UPDATE_MIGRATE_ASPECTS_ENABLED, and ASPECT_MIGRATION_MUTATOR_ENABLED)
  • When zdu.enable=true,
    ELASTICSEARCH_BUILD_INDICES_ALLOW_DOC_COUNT_MISMATCH is automatically forced to true in both The individual allowDocCountMismatch value is only respected when zdu.enable is not set.
  • Setting zdu.enable=true automatically disables scaleDown operations in both blocking and nonblocking system-update jobs
  • ZDU_STAGE_20 also propagated to GMS deployment for runtime aspect migration mutator chain activation
  • global.elasticsearch.index.upgrade.rollbackDualWriteEnabled exposed as an explicit per-flag override for ELASTICSEARCH_BUILD_INDICES_ROLLBACK_DUAL_WRITE_ENABLED

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

@chakru-r chakru-r force-pushed the cr-add-zdu-support branch from 7dc4ebd to eb13b93 Compare April 10, 2026 11:31
@chakru-r chakru-r marked this pull request as ready for review April 10, 2026 11:33
Copy link
Copy Markdown
Contributor

@RyanHolstien RyanHolstien left a comment

Choose a reason for hiding this comment

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

We're leaving the other features off for now? Otherwise I'd expect feature specific ones in the zdu enable blocks.

chakru-r and others added 3 commits April 14, 2026 19:07
Exposes ZDU group flags introduced in the zero-downtime upgrade branch:

- global.datahub.systemUpdate.zdu.preEnable → ZDU_STAGE_10 (enables
  CREATE_SCHEMA_VERSION_INDEX for schema version index on metadata_aspect_v2)
- global.datahub.systemUpdate.zdu.enable → ZDU_STAGE_20 (enables
  ELASTICSEARCH_BUILD_INDICES_INCREMENTAL_REINDEX_ENABLED,
  ELASTICSEARCH_BUILD_INDICES_ROLLBACK_DUAL_WRITE_ENABLED,
  SYSTEM_UPDATE_MIGRATE_ASPECTS_ENABLED, and ASPECT_MIGRATION_MUTATOR_ENABLED)
- Setting zdu.enable=true automatically disables scaleDown operations in
  both blocking and nonblocking system-update jobs
- ZDU_STAGE_20 also propagated to GMS deployment for runtime aspect
  migration mutator chain activation
- global.elasticsearch.index.upgrade.rollbackDualWriteEnabled exposed as
  an explicit per-flag override for ELASTICSEARCH_BUILD_INDICES_ROLLBACK_DUAL_WRITE_ENABLED

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When zdu.enable=true, ELASTICSEARCH_BUILD_INDICES_ALLOW_DOC_COUNT_MISMATCH
is automatically forced to true in both system-update job container specs.
The individual allowDocCountMismatch value is only respected when zdu.enable
is not set.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@chakru-r chakru-r force-pushed the cr-add-zdu-support branch from eb13b93 to c90d003 Compare April 14, 2026 13:38
@chakru-r
Copy link
Copy Markdown
Contributor Author

chakru-r commented Apr 14, 2026

We're leaving the other features off for now? Otherwise I'd expect feature specific ones in the zdu enable blocks.

I added one more for allowDocCountMismatch to be set when zduStage20 is enabled. ARe there any others required now? I will enable the zduPreenable default to true closer to a release -- otherwise, other fixes being made now can be used with already released versions.

@chakru-r chakru-r merged commit 4467630 into master Apr 14, 2026
2 checks passed
@chakru-r chakru-r deleted the cr-add-zdu-support branch April 14, 2026 14:15
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.

3 participants