Skip to content

Commit

Permalink
fix typos in java doc and tests (apache#7079)
Browse files Browse the repository at this point in the history
Co-authored-by: penghui <[email protected]>
  • Loading branch information
aloyszhang and codelipenghui authored Jun 3, 2020
1 parent 06e37ff commit 75fe26c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public void addComplete(int rc, final LedgerHandle lh, long entryId, Object ctx)
}
}

// Called in exector hashed on managed ledger name, once the add operation is complete
// Called in executor hashed on managed ledger name, once the add operation is complete
@Override
public void safeRun() {
// Remove this entry from the head of the pending queue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ public interface PublishRateLimiter {

/**
* updates rate-limiting threshold based on passed in rate limiter.
* @param policies
* @param clusterName
* @param maxPublishRate
*/
void update(PublishRate maxPublishRate);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public MessageDupStatus isDuplicate(PublishContext publishContext, ByteBuf heade
}

// Also need to check sequence ids that has been persisted.
// If current message's seq id is smaller smaller or equals to the lastSequenceIdPersisted than its definitely a dup
// If current message's seq id is smaller or equals to the lastSequenceIdPersisted than its definitely a dup
// If current message's seq id is between lastSequenceIdPersisted and lastSequenceIdPushed, then we cannot be sure whether the message is a dup or not
// we should return an error to the producer for the latter case so that it can retry at a future time
Long lastSequenceIdPersisted = highestSequencedPersisted.get(producerName);
Expand Down

0 comments on commit 75fe26c

Please sign in to comment.