Skip to content

Force commit consuming segments (#9197)#9315

Merged
xiangfu0 merged 1 commit intoapache:release-0.11-rcfrom
walterddr:cp_9197
Sep 1, 2022
Merged

Force commit consuming segments (#9197)#9315
xiangfu0 merged 1 commit intoapache:release-0.11-rcfrom
walterddr:cp_9197

Conversation

@walterddr
Copy link
Contributor

@walterddr walterddr commented Sep 1, 2022

this is a cherry-pick of #9197

Description

For realtime segments, if there's any changes to stream configs in the table config, the changes don't get picked up immediately in the existing consuming segments. After the existing consuming segments complete - which may take hours depending on flush thresholds defined in table config - the new consuming segments will pick up the stream config changes.
In this PR, the force commit functionality that was introduced in pause/resume feature (#8986) is used in a controller endpoint to reset the consumption of a realtime table. After "consumption reset" is issued, the current consuming segments will be forced to commit immediately and then the new consuming segments will pick up any changes in the table config.

Testing Done

Verified the expected behavior using LLCRealtimeClusterIntegrationTest. During ingestion, I added a consumption rate limit parameter to the table config and then used resetConsumption endpoint and verified that the existing consuming segments completed and then the new consuming segments consumed according to the specified consumption rate limit.

@walterddr walterddr added the release-notes Referenced by PRs that need attention when compiling the next release notes label Sep 1, 2022
@xiangfu0 xiangfu0 merged commit 58e2740 into apache:release-0.11-rc Sep 1, 2022
@walterddr walterddr deleted the cp_9197 branch December 6, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes Referenced by PRs that need attention when compiling the next release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants