Skip to content

Commit 423ae3e

Browse files
authored
Fix the publish latency unit (#1405)
1 parent 82ef279 commit 423ae3e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

amqp-impl/src/main/java/io/streamnative/pulsar/handlers/amqp/AmqpEntryWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void addComplete(Position position, ByteBuf entryData, Object ctx) {
9595
if (log.isDebugEnabled()) {
9696
log.debug("[{}] Success to write entry with position {}.", topic.getName(), position);
9797
}
98-
topic.recordAddLatency(System.nanoTime() - context.startTimeNs, TimeUnit.MICROSECONDS);
98+
topic.recordAddLatency(System.nanoTime() - context.startTimeNs, TimeUnit.NANOSECONDS);
9999
topic.getTransactionBuffer().syncMaxReadPositionForNormalPublish(position, false);
100100
context.positionFuture.complete(position);
101101
context.recycle();

amqp-impl/src/main/java/io/streamnative/pulsar/handlers/amqp/AmqpExchangeReplicator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ private void readMoreEntries() {
190190
messagesToRead = Math.max(messagesToRead, 1);
191191

192192
if (HAVE_PENDING_READ_UPDATER.compareAndSet(this, FALSE, TRUE)) {
193-
log.info("{} Schedule read of {} messages.", name, messagesToRead);
194193
if (log.isDebugEnabled()) {
195194
log.debug("{} Schedule read of {} messages.", name, messagesToRead);
196195
}

0 commit comments

Comments
 (0)