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

Create store directory paths in CSM constructor for disk space monitor #1697

Merged
merged 6 commits into from
Apr 5, 2024

Conversation

shekhars-li
Copy link
Contributor

Fix for the bug: https://issues.apache.org/jira/browse/SAMZA-2752

What:
Set durable store names in a set in the ContainerStorageManager constructor

Why:
During previous refractoring, the createStore for durable stores was moved outside of constructor. However, the store directory paths are required to be set in constructor so that SamzaContainer class can set monitors for them. This patch sets the store names without creating the stores, so that monitoring can be set properly.

Copy link
Member

@dxichen dxichen left a comment

Choose a reason for hiding this comment

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

Thanks for the patch!

@dxichen dxichen merged commit 2eb556a into apache:master Apr 5, 2024
1 check passed
@shekhars-li shekhars-li deleted the state-size-metrics branch April 5, 2024 18:01
khandelwal-ayush pushed a commit to khandelwal-ayush/samza that referenced this pull request Jun 12, 2024
apache#1697) (apache#43)

* Create store directory paths in CSM constructor to be able to monitor the disk usage of the store directories

* Fix stylecheck issues

* Refactor - init all store paths together and do not mutate the storeDirPaths. Added test

* Remove ununsed method

* Remove ununsed method

* Stylecheck, Remove ununsed import

Co-authored-by: Shekhar Sharma <72765053+shekhars-li@users.noreply.github.com>
khandelwal-ayush pushed a commit to khandelwal-ayush/samza that referenced this pull request Jun 12, 2024
…e monitor (apache#1697) (apache#43)" (apache#44)

This reverts commit 01534ff.

The above commit introduces a type change that is causing all builds to
fail on samza-li. e.g. see samza-li e8b00bcba88cf9d235f8432309ef60c6ae1c7d74

Revert that commit in the short-term until we can address the type
mismatch.
khandelwal-ayush pushed a commit to khandelwal-ayush/samza that referenced this pull request Jun 12, 2024
* SAMZA-2797: Call flush during stop from CoordinatorStreamWriter (apache#1692)

* SAMZA-2798: Populate worker.opts in environment variable only if available (apache#1693)

Description
Populate worker.opts in the environment variable only if available in the configs.

Changes
Check if worker.opts is present and then add it to environment variable

Tests
Updated unit tests

* Add MAX_BACKGROUND_JOBS config for RocksDB (apache#1694)

* SAMZA-2784: Remove excessive commit logs (apache#1695)

* SAMZA-2799: Remove worker.opts handling in shell command builder (apache#1696)

* Create store directory paths in CSM constructor for disk space monitor (apache#1697)

* Create store directory paths in CSM constructor to be able to monitor the disk usage of the store directories

* Fix stylecheck issues

* Refactor - init all store paths together and do not mutate the storeDirPaths. Added test

* Remove ununsed method

* Remove ununsed method

* Stylecheck, Remove ununsed import

---------

Co-authored-by: ajo thomas <ajo.thomas24@gmail.com>
Co-authored-by: Bharath Kumarasubramanian <bharathkk@apache.org>
Co-authored-by: Shekhar Sharma <72765053+shekhars-li@users.noreply.github.com>
Co-authored-by: Daniel Chen <xrchen@uwaterloo.ca>
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