Merge branch 'stable-3.7' into stable-3.8

* stable-3.7:
  Rename metric tasks/max_retries to tasks/failed_max_retries
  Document metrics
  Fix completed tasks metrics
  Log fetch tasks when graceful shutdown fails
  Displaying refs for fetch tasks
  Leverage ShutdownState in SourcesCollection
  Fix pull replication queue metric prefix
  Set pull replication tests as large
  Introduce replication queue metrics
  Handle fetch tasks gracefully during shutdown
  Add integration test for new project creation
  Do not honor gerrit.replicateOnStartup on primary side

Change-Id: Ib05b146593f47b38ccc49e933287dfa907043b31