Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

rgw_sal_motr, motr_gc: [CORTX-33148] add MotrGC, MotrGC::GCWorker infra code #356

Merged
merged 5 commits into from
Jul 25, 2022

Commits on Jul 20, 2022

  1. rgw_sal_motr, motr_gc: [CORTX-33148] Add MotrGC class

    For Garbage Collection, cortx-rgw needs a MotrGC thread which
    works concurrently to delete all the stale objects.
    Added the MotrGC class and the interface to configure and start
    GC workers.
    
    Signed-off-by: Sumedh A. Kulkarni <sumedh.a.kulkarni@seagate.com>
    sumedhak27 committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    0a50508 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2022

  1. rgw_sal_motr, motr_gc: [CORTX-33148] Add MotrGC::GCWorker class

    For supporting concurrent IOs MotrGC need to have multiple GCWorker threads.
    Introducing GCWorker class and changing the MotrGC interfaces to manage
    all the worker threads.
    
    Signed-off-by: Sumedh A. Kulkarni <sumedh.a.kulkarni@seagate.com>
    sumedhak27 committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    543a44d View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2022

  1. rgw_sal_motr, motr_gc: [CORTX-33148] implement MotrGC::start_processor()

    Implemented the logic to spawn multiple GCWorker threads on startup,
    and gracefully exit on shutdown.
    
    Signed-off-by: Sumedh A. Kulkarni <sumedh.a.kulkarni@seagate.com>
    sumedhak27 committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    cbc95ae View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2022

  1. rgw_sal_motr: [CORTX-33148] fix init_metadata_cache bug

    We are bound to create MotrMetaCache objects as we are directly using
    class methods during CRUD operations without checking if metadata caching
    is enabled or not.
    Earlier I was trying to not create meta cache objects which was breaking
    the CRUD, so now reverting it to create those objects again.
    
    NOTE: Ideally we should create MetaCache objects only if caching is enabled.
    
    Signed-off-by: Sumedh A. Kulkarni <sumedh.a.kulkarni@seagate.com>
    sumedhak27 committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    76ae806 View commit details
    Browse the repository at this point in the history
  2. motr_gc: [CORTX-33148] partially implement MotrGC::initialize()

    add code to fetch the max gc indices to create.
    create and append the index name in gc index list.
    
    Signed-off-by: Sumedh A. Kulkarni <sumedh.a.kulkarni@seagate.com>
    sumedhak27 committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    bc6b0e4 View commit details
    Browse the repository at this point in the history