Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24830

Improve error handling for FTDC uploads in Evergreen

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.10
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • TIG 17 (07/15/16)

      The FTDC upload step can fail for a few reasons:
      1 - There are no diagnostic.data directories to archive
      2 - /data/db does not exist

      The code should be made more robust to handle these scenarios.

      [2016/06/28 13:49:21.336] tar cvzf diagnostic-data.tgz $(find /data/db -type d -name diagnostic.data)
      [2016/06/28 13:49:21.343] tar: Cowardly refusing to create an empty archive
      [2016/06/28 13:49:21.343] Try `tar --help' or `tar --usage' for more information.
      [2016/06/28 13:49:21.344] Command failed: exit status 2
      
      [2016/06/27 19:33:48.079] tar cvzf diagnostic-data.tgz $(find /data/db -type d -name diagnostic.data)
      [2016/06/27 19:33:48.080] find: `/data/db': No such file or directory
      [2016/06/27 19:33:48.081] tar: Cowardly refusing to create an empty archive
      [2016/06/27 19:33:48.081] Try 'tar --help' or 'tar --usage' for more information.
      [2016/06/27 19:33:48.081] Command failed: exit status 2
      

            Assignee:
            michael.grundy Michael Grundy
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: