Skip to content

Commit

Permalink
Fix publish latency unit
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoran10 committed Oct 29, 2024
1 parent 82ef279 commit 65dd771
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 @@ -95,7 +95,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(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 65dd771

Please sign in to comment.