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

Implement cache detach/attach #799

Merged
merged 16 commits into from
Jul 31, 2024
Merged

Implement cache detach/attach #799

merged 16 commits into from
Jul 31, 2024

Conversation

rafalste
Copy link
Contributor

No description provided.

mmichal10 added 16 commits July 10, 2024 11:35
'stop_pipeline' filed may be reused during cache lifetime (e.g. when cache is
detached and attached again - the pipeline would be freed and then
re-allocated). Calling completion after detach before freeing the pipeline may
lead to race condition.

Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
From python3.11 the function accepts only NoneType, int, float, str, bytes, or
bytearray

Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
Stop and cache detach were already sharing contexts implicitly, which allowed
to reuse some functions in both pipelines. However, changing the context structs
could lead to not obvious bugs.

To prevent such errors both methods now share context structure explicitly

Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
Majority of management operations should be blocked for detached cache,
although adding and removing cores should be possible.

Signed-off-by: Michal Mielewczyk <[email protected]>
@robertbaldyga robertbaldyga merged commit 40ff7d2 into master Jul 31, 2024
2 checks passed
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