Skip to content

Commit

Permalink
Fix the publish latency unit (#1405)
Browse files Browse the repository at this point in the history
(cherry picked from commit 423ae3e)
  • Loading branch information
Technoboy- authored and gaoran10 committed Oct 29, 2024
1 parent 5e2dbb6 commit 05ffe1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void addComplete(Position position, ByteBuf entryData, Object ctx) {
if (log.isDebugEnabled()) {
log.debug("[{}] Success to write entry with position {}.", topic.getName(), position);
}
topic.recordAddLatency(System.nanoTime() - context.startTimeNs, TimeUnit.MICROSECONDS);
topic.recordAddLatency(System.nanoTime() - context.startTimeNs, TimeUnit.NANOSECONDS);
topic.getTransactionBuffer().syncMaxReadPositionForNormalPublish((PositionImpl) position, false);
context.positionFuture.complete(position);
context.recycle();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ private void readMoreEntries() {
messagesToRead = Math.max(messagesToRead, 1);

if (HAVE_PENDING_READ_UPDATER.compareAndSet(this, FALSE, TRUE)) {
log.info("{} Schedule read of {} messages.", name, messagesToRead);
if (log.isDebugEnabled()) {
log.debug("{} Schedule read of {} messages.", name, messagesToRead);
}
Expand Down

0 comments on commit 05ffe1e

Please sign in to comment.