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

Bugfix/cldsrv 514 handling of metadata storage errors #5547

Open
wants to merge 3 commits into
base: development/8.7
Choose a base branch
from

Commits on Mar 6, 2024

  1. CLDSRV-514: clean orphans in storage if metadata stepo fails

    Some APIs will do the following operation, sequentially:
    - Store data in the storage service
    - Store the associated metadata in the DB
    - If an error occurs when dealing with the DB, return the
    error to the client.
    
    In such a scenario, the data is still present on the data disks,
    and is never deleted.
    The change ensures that in case of an error, we properly clean the
    orphans.
    williamlardier committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    1b2e453 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5301589 View commit details
    Browse the repository at this point in the history
  3. CLDSRV-514: add logs when potential oprhans are created

    Some APIs will delete the metadata before the storage side:
    in this case, we log a specific warning with the associated
    information, as a first way to keep track of such objects.
    Future work will persist this information , to be processed
    by some background service.
    williamlardier committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    e215e4a View commit details
    Browse the repository at this point in the history