sapling/eden/mononoke/newfilenodes
Thomas Orozco 2616476f4c mononoke/newfilenodes: sort filenode rows prior to insertion
Summary:
We've seen occasional index timeouts on inserts in MySQL. This is very
reminiscent of D19158550 (fef360b284).

aida points out this seems to have started to happen (occasionally) recently.
That would make sense: we used to insert one-by-one so we wouldn't have ordering
issues (because bug), but we also recently started inserting in batches again (because bugfix).

There's little reason to expect we couldn't run into the same bug there as well.

So let's give filenodes & copydata the same sorting treatment we give paths.
Worst case, this does nothing. Best case, it fixes the issue.

Reviewed By: StanislavGlebik

Differential Revision: D27301588

fbshipit-source-id: 2b24ddd68e1a1c4e31fe33e03efcef47dad3657d
2021-03-24 13:55:01 -07:00
..
schemas mononoke/newfilenodes: introduce a queue-conscious filenodes implementation 2020-02-27 12:34:19 -08:00
src mononoke/newfilenodes: sort filenode rows prior to insertion 2021-03-24 13:55:01 -07:00
Cargo.toml third-party/rust: update futures 2021-03-04 06:42:55 -08:00