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

DBA tools for ReliableStorageLock #2152

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

IvoDD
Copy link
Collaborator

@IvoDD IvoDD commented Jan 29, 2025

Adds the options to:

  • inspect latest state of the lock
  • force take or free the lock. This is done by not respecting the expiration and jumping a few ids forward.

Also adds a C++ test to verify the new APIs work as expected.

The APIs will be exposed for use in arcticdb-enterprise.

Also in two separate commits it improves the MockS3Client to be usable in enterprise replication tests. Can be reviewed separately:

  • Make MockS3Client thread safe
  • Fix SegmentHeader::clone()

Reference Issues/PRs

Related to 8013103642 monday ticket

What does this implement or fix?

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?

Adds the options to:
- inspect latest state of the lock
- force take or free the lock. This is done by not respecting the
  expiration and jumping a few ids forward.

Also adds a C++ test to verify the new APIs work as expected.

The APIs will be exposed for use in arcticdb-enterprise.
@IvoDD IvoDD force-pushed the storage-lock-admin-tools branch from f120b23 to a6ca0cf Compare January 29, 2025 13:37
IvoDD added 2 commits January 31, 2025 14:34
I'll be using the MockS3Client in enterprise replication testing and it
needs to be thread safe to be used correctly.

Also adds a segment size calculation which is necassary for the
`CopyCompressedInterStoreTask`
Cloning did not copy over all fields. The `MockS3Storage` relies on
cloning segments and this makes it usable for all cases.
@IvoDD IvoDD force-pushed the storage-lock-admin-tools branch from 12d70c3 to ff22094 Compare January 31, 2025 12:35
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.

1 participant