)]}'
{
  "commit": "51154b0b184a032dabb082f75dfeffef72095dd5",
  "tree": "3c7dd7aaefe7f118e8891e4cc334e06cb0ef83e2",
  "parents": [
    "8853dfd05a2bbe7a94d5a20ba704739a94509620"
  ],
  "author": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Tue Sep 01 19:38:15 2020 +0200"
  },
  "committer": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Wed Sep 02 12:43:35 2020 +0000"
  },
  "message": "Match web_sessions cache pattern only when synchronized\n\nWhen high-availability has been instructed not to handle web_sessions\n(by setting websession.synchronize\u003dfalse), it should not trigger\nweb_sessions cache evictions.\n\nIn Gerrit, evicting an entry from the \u0027web_sessions\u0027 is equivalent to\nlogging out the user associated with that session.\n\nForwarding web_sessions eviction is the correct behavior when their\nhandling and storing is responsibility of the high-availability plugin.\n\nIt is a bug when this happens unconditionally (even when\nwebsession.synchronize\u003dfalse), because it triggers a log out of that\nuser from the peer node.\n\nRemove \u0027web_sessions\u0027 cache from the list of default caches that are\nalways forwarded and, instead, conditionally add it only when\nwebsession synchronization is enabled.\n\nBug: Issue 13347\nChange-Id: I271dbf8bff31da8c850fc98ff6369dca9a156acc\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cab8f587adc48b066d8d532ce039facc1abc520d",
      "old_mode": 33188,
      "old_path": "src/main/java/com/ericsson/gerrit/plugins/highavailability/cache/CachePatternMatcher.java",
      "new_id": "9a8adcee4af86dae53d2deebdd9353dc7fdab4e1",
      "new_mode": 33188,
      "new_path": "src/main/java/com/ericsson/gerrit/plugins/highavailability/cache/CachePatternMatcher.java"
    },
    {
      "type": "modify",
      "old_id": "9093238e7a25700da6c342bb4dede0ec63387967",
      "old_mode": 33188,
      "old_path": "src/test/java/com/ericsson/gerrit/plugins/highavailability/cache/CachePatternMatcherTest.java",
      "new_id": "0aac3e4f673092f3b2a55458a5c0bb71c9c14b5f",
      "new_mode": 33188,
      "new_path": "src/test/java/com/ericsson/gerrit/plugins/highavailability/cache/CachePatternMatcherTest.java"
    }
  ]
}
