[
https://issues.apache.org/jira/browse/HDFS-14270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16782823#comment-16782823
]
Konstantin Shvachko commented on HDFS-14270:
--------------------------------------------
Hey [~shwetayakkali], you should use sl4j pattern for logging:
{code}
LOG.trace("Client State ID= {} Server State ID= {}", ...);
{code}
Otherwise it will do String operations on every call, even when trace is not
enabled.
> [SBN Read] StateId and TrasactionId not present in Trace level logging
> ----------------------------------------------------------------------
>
> Key: HDFS-14270
> URL: https://issues.apache.org/jira/browse/HDFS-14270
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Reporter: Shweta
> Assignee: Shweta
> Priority: Trivial
> Attachments: HDFS-14270.001.patch
>
>
> While running the command "hdfs --loglevel TRACE dfs -ls /" it was seen that
> stateId and TransactionId do not appear in the logs.
How does one see the
> stateId and TransactionId in the logs? Is there a different approach?
> CC: [~jojochuang], [~csun], [~shv]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]