This is an automated email from the ASF dual-hosted git repository.
shoothzj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new e219afd Fix print error in OpAddEntry (#14392)
e219afd is described below
commit e219afd4aa93d11c649ff111cfe8bfe8eb105007
Author: liuchangqing <[email protected]>
AuthorDate: Mon Feb 21 22:21:01 2022 +0800
Fix print error in OpAddEntry (#14392)
### Motivation
Fix print error.
### Modifications
### Verifying this change
### Does this pull request potentially affect one of the following parts:
*If `yes` was chosen, please highlight the changes*
- Dependencies (does it add or upgrade a dependency): (no)
- The public API: (no)
- The schema: (no)
- The default values of configurations: (no)
- The wire protocol: (no)
- The rest endpoints: (no)
- The admin cli options: (no)
- Anything that affects deployment: (no)
### Documentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?
- [x] `no-need-doc`
Co-authored-by: liu.changqing <[email protected]>
---
.../src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java
b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java
index 226ad04..c25fa4f 100644
---
a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java
+++
b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java
@@ -375,8 +375,8 @@ public class OpAddEntry extends SafeRunnable implements
AddCallback, CloseCallba
ManagedLedgerImpl ml = this.ml;
LedgerHandle ledger = this.ledger;
return "OpAddEntry{"
- + "mlName=" + ml != null ? ml.getName() : "null"
- + ", ledgerId=" + ledger != null ?
String.valueOf(ledger.getId()) : "null"
+ + "mlName=" + (ml != null ? ml.getName() : "null")
+ + ", ledgerId=" + (ledger != null ?
String.valueOf(ledger.getId()) : "null")
+ ", entryId=" + entryId
+ ", startTime=" + startTime
+ ", dataLength=" + dataLength