lhotari commented on code in PR #24938:
URL: https://github.com/apache/pulsar/pull/24938#discussion_r2487078138


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java:
##########
@@ -1453,6 +1453,23 @@ public Position getFirstPosition() {
         return firstLedgerId == null ? null : 
PositionFactory.create(firstLedgerId, 0);
     }
 
+    /**
+     * Compare two positions. It is different with {@link 
Position#compareTo(Position)} when the params are invalid.
+     * For example: position-1 is "1:{latest entry}", and position-2 is "2:0", 
they are the same position.

Review Comment:
   how is this achieved? could you add a test to validate this?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to