)]}'
{
  "commit": "cdb5010a98dd485725bd748060d786d651399076",
  "tree": "f02d74ef132a0e2b741cd47227ae7028a2ccb832",
  "parents": [
    "f6ea51ae6b55497a6f0b01de31d450bad275958b"
  ],
  "author": {
    "name": "Saša Živkov",
    "email": "sasa.zivkov@sap.com",
    "time": "Fri Jan 17 11:12:31 2020 +0100"
  },
  "committer": {
    "name": "Saša Živkov",
    "email": "zivkov@gmail.com",
    "time": "Mon Jan 20 09:35:52 2020 +0000"
  },
  "message": "Set HTTP thread name to describe the request it is processing\n\nThe HTTP worker threads had generic names: HTTP-100, HTTP-101, ...\nWhile we could conclude from the stack trace what this thread was doing\nwe missed some important information like repository name, user name,\netc...\n\nWith this change the HTTP threads get descriptive names. For example, if\nthere is an ongoing git-fetch operation we would see a thread named\nlike:\n\n\"HTTP POST /a/myProject/git-upload-pack (johndoe from 10.87.75.169)\"\n\nThis can be of a great help for Gerrit admins trying to figure out who\nis executing that many git-fetch requests and affecting the overall\nperformance.  Note that we cannot reliably tell that from the httpd_log\nas requests are logged only once they are finished. The show-queue\ncommand also doesn\u0027t show tasks being processing in the HTTP thread\npool.\n\nAs additional justification, SSH thread names are already named with a\nsimilar pattern i.e:\n\n\"SSH git-upload-pack /myProject (johndoe)\"\n\nChange-Id: I98cf112018732e5d4075568e7da8614ffe0495a4\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c7d977df635f31310504271137602984403d136a",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/httpd/SetThreadNameFilter.java"
    },
    {
      "type": "modify",
      "old_id": "c9cf2f4e8528755efc0331e2c70d54a44d7a2122",
      "old_mode": 33188,
      "old_path": "java/com/google/gerrit/httpd/init/WebAppInitializer.java",
      "new_id": "c2d4a146efe04fa30c65a5a663c6f47aec53c1da",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/httpd/init/WebAppInitializer.java"
    },
    {
      "type": "modify",
      "old_id": "8fb208b557c144e396c915c199ed96c8b8ce5803",
      "old_mode": 33188,
      "old_path": "java/com/google/gerrit/pgm/Daemon.java",
      "new_id": "65707fa01253a75e135dccf0b64fb19b05894103",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/pgm/Daemon.java"
    }
  ]
}
