Skip to content
Snippets Groups Projects
  1. Nov 27, 2017
  2. Nov 20, 2017
  3. Nov 14, 2017
    • Steven Murray's avatar
      Issue #136 Implement summary for cta tapepool ls command · f34c4f72
      Steven Murray authored
      Partially implemented.
      
      The Catalogue::getTapePools() method called by the CTA front-end
      now returns an std::list of TapePool structures, where each
      structure now has the following additional "summary"
      member-variables:
      
        /**
         * The total number of tapes in the pool.
         */
        uint64_t nbTapes;
      
        /**
         * The total capacity of all the tapes in the pool in gigabytes
         * (10^9 bytes).
         */
        uint64_t capacityGigabytes;
      
        /**
         * The total amount of compressed data written to all the tapes
         * in the pool in gigabytes * (10^9 bytes).
         */
        uint64_t dataGigabytes;
      
      These three additional member-variables can now be used by the
      CTA front-end to provide the summary information requested by
      issue #136 in the appropriate format / presentation.  For example,
      the CTA front-end could subtract dataGigabytes from
      capacityGigabytes in order to calculate the approximate amount of
      free space.  Please note that this calculation could potentially
      result in a negative number due to the fact that capacityGigabytes
      is an approximate number entered by a tape operator for each tape
      when they register those tapes into CTA.  In such a case the CTA
      front-end should display 0 and not the negative result.
      f34c4f72
    • Steven Murray's avatar
      Moved TapePool from common::dataStructures:: to catalogue:: because it belongs... · b19daf7e
      Steven Murray authored
      Moved TapePool from common::dataStructures:: to catalogue:: because it belongs to the Catalogue interface
      b19daf7e
  4. Nov 10, 2017
  5. Nov 09, 2017
  6. Nov 08, 2017
  7. Oct 20, 2017
  8. Oct 03, 2017
  9. Sep 27, 2017
  10. Sep 26, 2017
  11. Sep 21, 2017
  12. Aug 18, 2017
    • Steven Murray's avatar
      Added TAPE_FILE_ARCHIVE_FILE_ID_FK index · 0259242c
      Steven Murray authored
      The reponse rate of the CTA catalogue to "eos rm"
      commands was too slow.  The response rate was
      around 20Hz when using the CTA/EOS production
      database configured with 10 database connections.
      The rate has now been increased to 30Hz by adding
      the TAPE_FILE_ARCHIVE_FILE_ID_FK index.
      0259242c
  13. Aug 17, 2017
  14. Aug 15, 2017
  15. Aug 14, 2017
  16. Aug 11, 2017
  17. Aug 09, 2017
  18. Aug 01, 2017
  19. Jul 20, 2017
  20. Jul 19, 2017
  21. Jul 18, 2017
    • 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
  22. Jul 17, 2017
    • Steven Murray's avatar
      cta/CTA#144 Don't forget to replace temporary fix for XrdCtaFile::xCom_deletearchive() · a04d1d20
      Steven Murray authored
      This commit does two things.  Firstly it puts back the call from:
      
          XrdCtaFile::xCom_deletearchive()
      
      to:
      
          Scheduler::deleteArchive()
      
      Secondly it moves the reponsibility of logging the
      "Archive File Deleted" message from the CTA front-end (XrdCtaFile)
      to the CTA catalogue.
      
      Please note that Scheduler::deleteArchive() still does not call
      SchedulerDatabase::deleteArchiveRequest().
      a04d1d20
  23. Jul 14, 2017
    • Steven Murray's avatar
      xCom_deletearchive does not call the object store · a4dfc24c
      Steven Murray authored
      This is a TEMPORARY modification to the  CTA front end.
      
      When an "eos rm" command is executed the xCom_deletearchive()
      method of the CTA front is called.  Before this commit the
      mthod would try to removed the archive file from both the
      object store and the CTA catalogue.  This took more than 15
      seconds to complete under som ecircumstances.  This commit
      removes the call to the object store.
      
      Please note that this commit will causes a leak in archive
      files.  If a file is "in-flight" and therefore has not yet
      been written to tape and recorded in the CTA catalogue
      then a call to "eos rm" will do nothing and the file will
      eventually appear in the CTA catalogue when it is written
      to tape.  The file will therefore NOT be in the EOS
      namespace but it WILL be in the CTA catalogue.
      a4dfc24c
  24. Jul 12, 2017
    • Steven Murray's avatar
      CTA front-end now logs duplicate tape copy numbers · 3ff9b962
      Steven Murray authored
      If the "cta af ls" command is executed and the listing
      encounters duplicate tape copy numbers then the listing
      continues with "workaround" number displayed in place
      of the duplicates and inow with this commit a log
      message is alseo written to
      
          /var/log/cta/cta-frontent.log
      
      An example log:
      
      2017-07-12T18:04:40.691236+02:00 itdssbuild01 cta-frontend: LVL="Warn" PID="9423" TID="9436" MSG="Found a duplicate tape copy number when listing archive files" archiveFileID="5" duplicateCopyNb="1" workaroundCopyNb="2" vid="V41001" fSeq="5" blockId="41"
      3ff9b962
    • Steven Murray's avatar
      46a17f53
  25. Jul 11, 2017
Loading