Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partition scoped components can register as DiskSpaceUsageListener #9715

Merged
3 commits merged into from
Jul 6, 2022

Conversation

lenaschoenburg
Copy link
Member

Description

Before this change, adding and removing a disk space usage listener was implemented directly by the broker context and the partition manager only had a callback to add usage listeners.

Since we now want to add partition scoped components as disk space usage listeners directly, the DiskSpaceMonitor is made available in the PartitionTransitionContext.

I couldn't adjust the ZeebePartition to not awkwardly forward the noDiskAvailable flag to the stream processor because the StreamProcessor can't be a DiskSpaceUsageListener itself due to circular dependencies between broker and engine.

This unblocks #9625 and closes #9712

Before this change, adding and removing a disk space usage listener
was implemented directly by the broker context and the partition manager
only had a callback to add usage listeners.

Since we now want to add partition scoped components as disk space usage
listeners directly, the `DiskSpaceMonitor` is made available in the
`PartitionTransitionContext`.
Copy link
Contributor

@deepthidevaki deepthidevaki left a comment

Choose a reason for hiding this comment

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

🎉 The tests are failing. Looks like just an issue in the test setup.Please take a look. Otherwise LGTM.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2022

Unit Test Results

   786 files  ±  0     786 suites  ±0   1h 36m 47s ⏱️ - 8m 25s
6 193 tests  - 68  6 186 ✔️  - 68  7 💤 ±0  0 ±0 
6 362 runs   - 68  6 355 ✔️  - 68  7 💤 ±0  0 ±0 

Results for commit 699ddd7. ± Comparison against base commit 2cb665e.

♻️ This comment has been updated with latest results.

@lenaschoenburg lenaschoenburg marked this pull request as ready for review July 6, 2022 12:49
@lenaschoenburg lenaschoenburg force-pushed the 9712-disk-space-usage-partition-components branch from 80e8023 to 699ddd7 Compare July 6, 2022 12:50
@lenaschoenburg
Copy link
Member Author

Thanks @deepthidevaki, fixed the test setup 👍

Copy link
Contributor

@deepthidevaki deepthidevaki left a comment

Choose a reason for hiding this comment

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

🎉

@lenaschoenburg
Copy link
Member Author

bors r+

@ghost
Copy link

ghost commented Jul 6, 2022

Build succeeded:

@ghost ghost merged commit 2d4901c into main Jul 6, 2022
@ghost ghost deleted the 9712-disk-space-usage-partition-components branch July 6, 2022 13:43
This pull request was closed.
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.

Partition scoped components can register as DiskSpaceUsageListener
2 participants