Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

G-D-Petrov
Copy link
Collaborator

@G-D-Petrov G-D-Petrov commented Aug 28, 2025

Reference Issues/PRs

Monday ticket ref: https://man312219.monday.com/boards/7852509418/pulses/9918691722
Needed by: https://github.com/man-group/arcticdb-enterprise/pull/258

What does this implement or fix?

The function copy_index_key_recursively was running multiple async tasks which lead it to hang when we were starved for threads in the CPU executor, which could happen when running in parallel copy_index_key_recursively (as done in the LibraryCopier tool in enterprise).
The problem is with the CPU pool, as that is used by enterprise and then, the code in ArcticDB used to hang when trying to write and use the cpu executor.
This PR removes the async calls where they are not needed and adds some tests for the StorageMover as that is the main user of this functionality in ArcticDB.
The main tests are in the enterprise PR because there wea re using the functionality in parallel.

Any other comments?

Checklist

Checklist for code changes...
  • Have you updated the relevant docstrings, documentation and copyright notice?
  • Is this contribution tested against all ArcticDB's features?
  • Do all exceptions introduced raise appropriate error messages?
  • Are API changes highlighted in the PR description?
  • Is the PR labelled as enhancement or bug so it appears in autogenerated release notes?

@G-D-Petrov G-D-Petrov added the patch Small change, should increase patch version label Aug 28, 2025
@G-D-Petrov G-D-Petrov marked this pull request as ready for review August 28, 2025 12:26

def test_storage_mover_single_go(lmdb_version_store_v1, arctidb_native_local_lib_cfg_extra):
@pytest.fixture(
params=[True],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like leftover debugging. I guess we want both [True, False]?

@G-D-Petrov G-D-Petrov merged commit bad49b6 into master Aug 29, 2025
141 of 144 checks passed
@G-D-Petrov G-D-Petrov deleted the gpetrov/fix_copy_index_key_recursively branch August 29, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Small change, should increase patch version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants