DData shard store improvements (#29166)

* Handle timeouts better wrt the timeout used in shard
* load all entities up front to potentially speed up GetRemembered response
This commit is contained in:
Johan Andrén 2020-06-03 09:02:32 +02:00 committed by GitHub
parent aa50c63965
commit 5a5468dd4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 62 additions and 20 deletions

View file

@ -615,8 +615,6 @@ private[akka] class Shard(
timers.startSingleTimer(
RememberEntityTimeoutKey,
RememberEntityTimeout(update),
// FIXME this timeout needs to match the timeout used in the ddata shard write since that tries 3 times
// and this could always fail before ddata store completes retrying writes
settings.tuningParameters.updatingStateTimeout)
context.become(waitingForRememberEntitiesStore(update, startTimeNanos))