You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Shilun Fan (Jira)" <ji...@apache.org> on 2024/02/11 09:39:00 UTC

[jira] [Updated] (HDFS-16063) Add toString to EditLogFileInputStream

     [ https://issues.apache.org/jira/browse/HDFS-16063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shilun Fan updated HDFS-16063:
------------------------------
          Component/s: namanode
     Target Version/s: 3.4.0
    Affects Version/s: 3.4.0

> Add toString to EditLogFileInputStream
> --------------------------------------
>
>                 Key: HDFS-16063
>                 URL: https://issues.apache.org/jira/browse/HDFS-16063
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namanode
>    Affects Versions: 3.4.0
>            Reporter: David Mollitor
>            Assignee: Dionisii Iuzhakov
>            Priority: Minor
>              Labels: n00b, newbie
>             Fix For: 3.4.0
>
>         Attachments: HDFS-16063.001.patch
>
>
> The class {{EditLogFileInputStream}} is logged at DEBUG level, but has no {{toString}} method, so the logging is of limited value.  Also, put the DEBUG statement behind some guards since it's printing an unbounded list of items.
> https://github.com/apache/hadoop/blob/eefa664fea1119a9c6e3ae2d2ad3069019fbd4ef/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java#L895
> Just need the following:
> {code:java}
>   private final LogSource log;
>   private final long firstTxId;
>   private final long lastTxId;
>   private final boolean isInProgress;
>   private int maxOpSize;
>   private State state = State.UNINIT;
>   private int logVersion = 0;
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org