Give a good error message on unassigned ports #22552
This commit is contained in:
parent
e4a09c207f
commit
d51f7abd63
3 changed files with 131 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue