Skip to content

Dynamic partitioning: add functional tests and fix background timer#10776

Merged
dnr merged 2 commits into
temporalio:mainfrom
dnr:dc11
Jun 25, 2026
Merged

Dynamic partitioning: add functional tests and fix background timer#10776
dnr merged 2 commits into
temporalio:mainfrom
dnr:dc11

Conversation

@dnr

@dnr dnr commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

What changed?

  • Fix background timer: it was effectively resetting the timer when an add batch came in. Now it always does the background work periodically regardless of add batches.
  • Add functional tests for dynamic partition scaling.

Why?

Make sure it works, make sure drain check happens periodically.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@dnr dnr requested review from a team as code owners June 19, 2026 00:42
@dnr dnr changed the title Add partition scaling functional test Dynamic partitioning: add basic functional tests Jun 19, 2026

@carlydf carlydf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: could you mention the timer reset fix in the title so when we look back it's easy to tell that this had more than just test changes?

@dnr

dnr commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

nit: could you mention the timer reset fix in the title so when we look back it's easy to tell that this had more than just test changes?

yes! sorry I forgot that

@dnr dnr changed the title Dynamic partitioning: add basic functional tests Dynamic partitioning: add functional tests and fix background timer Jun 25, 2026
@dnr dnr merged commit 042b1bf into temporalio:main Jun 25, 2026
76 of 78 checks passed
@dnr dnr deleted the dc11 branch June 25, 2026 01:22
stephanos pushed a commit that referenced this pull request Jun 25, 2026
…10776)

## What changed?
- Fix background timer: it was effectively resetting the timer when an
add batch came in. Now it always does the background work periodically
regardless of add batches.
- Add functional tests for dynamic partition scaling.

## Why?
Make sure it works, make sure drain check happens periodically.

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [x] added new functional test(s)
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