Give a good error message on unassigned ports #22552

This commit is contained in:
Johan Andrén 2017-03-15 18:03:52 +01:00 committed by GitHub
parent e4a09c207f
commit d51f7abd63
3 changed files with 131 additions and 1 deletions

View file

@ -1564,7 +1564,7 @@ final class Replicator(settings: ReplicatorSettings) extends Actor with ActorLog
val otherKeys = otherDigests.keySet
val myKeys =
if (totChunks == 1) dataEntries.keySet
else dataEntries.keysIterator.filter(key => math.abs(key.hashCode) % totChunks == chunk).toSet
else dataEntries.keysIterator.filter(key math.abs(key.hashCode) % totChunks == chunk).toSet
val otherMissingKeys = myKeys diff otherKeys
val keys = (otherDifferentKeys ++ otherMissingKeys).take(maxDeltaElements)
if (keys.nonEmpty) {