-
Type: Bug
-
Resolution: Fixed
-
Priority: Critical - P2
-
Affects Version/s: None
-
Component/s: None
server_description.ts has the following incorrect code which results in incorrect server version comparison whenever the second input's counter is of type Long, note the `rhsCounter` definition.
if (lhs.processId.equals(rhs.processId)) { // tests mock counter as just number, but in a real situation counter should always be a Long const lhsCounter = Long.isLong(lhs.counter) ? lhs.counter : Long.fromNumber(lhs.counter); const rhsCounter = Long.isLong(rhs.counter) ? lhs.counter : Long.fromNumber(rhs.counter); return lhsCounter.compare(rhsCounter); }