Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
-
Sharding 2021-02-22, Service Arch 2021-02-08
Description
This algorithm estimates remaining operation time.
I believe it's incorrect in the case of (bytesCopied>0 && oplogEntriesApplied==0), which would be the forward-looking estimate made from within the copy phase.
It also has significant numerical issues in the granularity of the integer math. Integer division takes place too eagerly via operator/ and via duration casting.
Let's review, improve, and test it.