commit | 4f87f10f5d5a589dbfd10815222d5d37fe267f06 | [log] [tgz] |
---|---|---|
author | Isaac Dancy <idancy@google.com> | Fri Aug 02 16:10:22 2019 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Aug 02 16:10:52 2019 |
tree | 6d1f079631b2fd80e175b22ed0af490b0628153a | |
parent | 2be686946be89ca40d54a67459690cea0cfdb826 [diff] |
Fix a race condition where content is incorrectly garbage collected. 1. A new session is created with strategy REQUEST_WITH_CONTENT. 2. Initialization hasn't completed, so the new session is not included in SessionCache when GC is enqueued. 3. The request completes with a new HEAD, GC runs. 4. GC deletes content that was branched into the session in step #1. PiperOrigin-RevId: 261332120 Change-Id: Idbbab6732f28315cfb2ed4f0cfc7a097d957d5ef