HDFS-16063. Add toString to EditLogFileInputStream. Contributed by Dionisii Iuzhakov.

This commit is contained in:
Ayush Saxena 2021-09-23 10:44:39 +05:30
parent 329b95b620
commit 98e2781dde
No known key found for this signature in database
GPG Key ID: D09AE71061AB564D
1 changed files with 9 additions and 1 deletions

View File

@ -324,7 +324,15 @@ public class EditLogFileInputStream extends EditLogInputStream {
@Override
public String toString() {
return getName();
return "EditLogFileInputStream{" +
"log=" + log.getName() +
", firstTxId=" + firstTxId +
", lastTxId=" + lastTxId +
", isInProgress=" + isInProgress +
", maxOpSize=" + maxOpSize +
", state=" + state +
", logVersion=" + logVersion +
'}';
}
/**