fdb-document-layer
fdb-document-layer copied to clipboard
Fault-tolerant index rebuild
If the Document Layer instance bounces, ongoing index rebuild tasks would stop and wouldn't restart later. It is possible to find these stopped tasks by querying special keys. By maintaining index status we can restart these index rebuilds. To make sure two instances do the same work, we have to maintain some kind of locks based on FoundationDB keys.