Add logging for file tearing during requests
commitc51d9a8b878bd0de4acc955cfb7dc16d1b9b21c5
authorPaul Bissonnette <paulbiss@fb.com>
Wed, 21 Apr 2021 21:01:32 +0000 (21 14:01 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 21 Apr 2021 21:03:13 +0000 (21 14:03 -0700)
treeb7c49006053b12a9e52f93b5bf704365ea002449
parentea9695b475644b8392d30bab2983b5919acf0997
Add logging for file tearing during requests

Summary: When decls in compilation is introduced we may have to handle situations where bytecode is requested for a file that was changed on disk after decls were already consumed as a dependency of an already loaded file. We either need to detect this situation and terminate the request or handle it gracefully by recovering the bytecode based on the prior version of the file. Terminating the request will be far simpler, therefore we're hoping to measure how often this happens in practice.

Reviewed By: ricklavoie

Differential Revision: D27805653

fbshipit-source-id: 48edeeedb19cce16b21ad324f7b1e69842204113
hphp/runtime/base/execution-context.cpp
hphp/runtime/base/execution-context.h
hphp/runtime/base/runtime-option.h
hphp/runtime/vm/unit.cpp
hphp/runtime/vm/unit.h