hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDDS-1427) Differentiate log messages by service instance in test output
Date Thu, 11 Apr 2019 21:57:00 GMT

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

Arpit Agarwal updated HDDS-1427:
--------------------------------
    Description: 
When running tests, the log output from multiple services is interleaved. This makes it very
hard to follow the sequence of events.

This is especially seen with MiniOzoneChaosCluster which starts 20 DataNodes in the same process.

One way we can do this is by using [Log4j NDC|https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/NDC.html]
or [slf4j MDC|https://www.slf4j.org/api/org/slf4j/MDC.html] to print the PID and thread name/thread
ID. It probably won't be a simple change.

  was:
When running tests, the log output from multiple services is interleaved. This makes it very
hard to follow the sequence of events.

This is especially seen with MiniOzoneChaosCluster which starts 20 DataNodes in the same process.

One way we can do this is by using [Log4j NDC|https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/NDC.html]
or [slf4j|https://www.slf4j.org/api/org/slf4j/MDC.html] to print the PID and thread name/thread
ID. It probably won't be a simple change.


> Differentiate log messages by service instance in test output
> -------------------------------------------------------------
>
>                 Key: HDDS-1427
>                 URL: https://issues.apache.org/jira/browse/HDDS-1427
>             Project: Hadoop Distributed Data Store
>          Issue Type: Improvement
>          Components: test
>            Reporter: Arpit Agarwal
>            Priority: Major
>
> When running tests, the log output from multiple services is interleaved. This makes
it very hard to follow the sequence of events.
> This is especially seen with MiniOzoneChaosCluster which starts 20 DataNodes in the same
process.
> One way we can do this is by using [Log4j NDC|https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/NDC.html]
or [slf4j MDC|https://www.slf4j.org/api/org/slf4j/MDC.html] to print the PID and thread name/thread
ID. It probably won't be a simple change.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message