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

fix(coordinate): Log warning on unsafe regional writes #216

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

devsjc
Copy link
Collaborator

@devsjc devsjc commented Jan 7, 2025

In response to my own comments on PR #214 I've made some changes.

Since chunking is an IO decision to do with the written data and not the read in data, the chunking is relevant only to the write_to_region and create_suitable_store functions. In order to enable for different chunking from the default for the repositories that require it due to the natire of their files, overrides can be set in the repository metadata.

dim: len(getattr(self, dim)) // self.maximum_number_of_chunks_in_one_dim
if len(getattr(self, dim)) > self.maximum_number_of_chunks_in_one_dim else 1
dim: len(getattr(self, dim)) // chunk_count_overrides.get(dim, 2)
if len(getattr(self, dim)) > 8 else 1
Copy link
Contributor

Choose a reason for hiding this comment

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

should it be >2?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think if the size is 8 or under its probably fine to be in one chunk by default since that's pretty small anyway!

@devsjc devsjc merged commit 6c3e9ed into concurrent-jobs Jan 7, 2025
4 checks passed
@devsjc devsjc deleted the devsjc/concurrent-jobs-modifications branch January 7, 2025 08:45
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