1. 08 Feb, 2019 1 commit
  2. 20 Dec, 2018 1 commit
  3. 17 Dec, 2018 1 commit
  4. 08 Nov, 2018 1 commit
  5. 30 Aug, 2018 1 commit
  6. 07 Dec, 2017 1 commit
    • Eric Cano's avatar
      Added a thread pool to the BackendRados class. · 78ad1f4c
      Eric Cano authored
      Each thread has its own rados context. The thead pool, when used will allow better
      parallelism of asynchronous requests.
      
      This required some rework on the backend creations as the threads will need logging.
      78ad1f4c
  7. 26 Oct, 2017 1 commit
    • Eric Cano's avatar
      Switched garbage collector from dedicated watcher to all watch all strategy. · 196e6e18
      Eric Cano authored
      The previous strategy was made under the assumption that we needed to lock sparingly.
      With the introduction of lockfree strategy, this is not true anymore.
      The new strategy will be immune from the A watches B, B watches A, both die, and
      no one garbage collects them situation (also called cyclers in utility cta-objectstore-unfollow-agent).
      196e6e18
  8. 27 Sep, 2017 1 commit
  9. 06 Sep, 2017 1 commit
  10. 10 Aug, 2017 1 commit
  11. 25 Jul, 2017 1 commit
  12. 18 Jul, 2017 1 commit
    • Eric Cano's avatar
      Created a helper function for retrieve queue selection. · be6d0b4d
      Eric Cano authored
      In order to be efficient, the data (tape status and queue sizes) is cached in memory.
      This function needed access to the catalogue (where the tape status is located).
      This in turn required passing the catalogue object to:
       - The garbage colletion functions for all object types.
       - The garbage collector object now keeps a reference to the catalogue.
       - The path to the catalogue credential file should now be passed to cta-objectstore-collect-orphaned-object
       - The OStoreDB also needs a reference to the catalogue in order to queue retrive requests.
      
       The garbage collection member function are now also being passed a log context, so the requirement for better
       log of object fate can also be fulfilled later. This in turn required the passing of a logger object to
       the object store and relative helper classes.
      
       Finally, a dummy catalogue class has been created to be used in unit tests.
      be6d0b4d
  13. 12 Jul, 2017 1 commit
  14. 06 Jul, 2017 1 commit
    • Eric Cano's avatar
      Fixed garbage collector cleanup. · c9c63df8
      Eric Cano authored
      Implemented GarbageCollector::reinjectOwnedObject() and called it on garbage collector shutdown.
      This fixes the issue of non-empty garbage collectors exiting.
      c9c63df8
  15. 30 Jun, 2017 1 commit
  16. 20 Jun, 2017 1 commit
  17. 11 Jun, 2017 1 commit
    • Eric Cano's avatar
      Added thread naming in taped. · 045863aa
      Eric Cano authored
      The different processes of taped can now be identified as in this exemple:
      [eric@localhost ~]$ ps -ax -o "pid comm cmd"  | grep /usr/bin/cta-taped
      [...]
      32593 cta-taped-main  /usr/bin/cta-taped -fl /cta-taped.log
      32800 cta-tpd-VDSTK11 /usr/bin/cta-taped -fl /cta-taped.log
      32801 cta-taped-gc    /usr/bin/cta-taped -fl /cta-taped.log
      045863aa
  18. 12 Apr, 2017 3 commits
    • Eric Cano's avatar
      cta/CTA#46: Garbage collection improvements · e446e939
      Eric Cano authored
      Implemented Agent::garbageCollect()
      Made AgentWatchdog fetch the timout from the agent object.
      Fixed unconditional time tounter reset in AgentWatchdog::checkAlive()
      Fixed missing log for garbageCollection.
      Added utility (cta-objectstore-unfollow-agent) to mark agents as not followed when they get orphaned. This utility detects looping ownerships (two garbage coolectors watch each other and both die synchronously). This utility is not packaged.
      Various log improvements.
      e446e939
    • Eric Cano's avatar
      cta/CTA#46: Fixed log level for GC message. · 673a3587
      Eric Cano authored
      673a3587
    • Eric Cano's avatar
      cta/CTA#46: Garbage collector improvements · bb101dcf
      Eric Cano authored
      Added missing garbage collection for all object types.
      Added logging to AgentHeartbeat.
      Some object types still miss garbage collection implementation.
      bb101dcf
  19. 04 Apr, 2017 3 commits
  20. 30 Mar, 2017 2 commits
  21. 03 Apr, 2017 1 commit
    • Eric Cano's avatar
      cta/CTA#46: Adding garbage collection for object store structures: · cfe8f58b
      Eric Cano authored
      Created a garbage collector subprocess for the drive daemon.
      Created a AgentHeartbeat thread and added it to frontend, drive subprocess and GC subprocess.
      Fixed logs and drive subprocess.
      Renamed common/threading/Threading.[hc]pp to Thread.[hc]pp as there is only one class left in this file.
      cfe8f58b