hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Clampffer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9118) Add logging system for libdhfs++
Date Wed, 23 Mar 2016 20:17:25 GMT

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

James Clampffer updated HDFS-9118:
----------------------------------
    Attachment: HDFS-9118.HDFS-8707.004.patch

New patch incorporating nearly all of [~bobhansen]'s input (left some of the optional ones
out).

-added file name/line logging, C API gets this as well
-extern C guard on log.h
-popcnt check for log enable/disable per component
-Put LogManager::ShouldLog in header to make it easier to inline if the compiler wants to,
not explicitly marking it inline but compiler will still do it if it thinks getting the output
lock is cheap enough.
-got rid of extra unique_ptr reset in log implementation setter
-switch time formatting to strftime for thread safety
-got rid of types for the nulls printed when logger sees a nullptr
-change FileHandle::Cancel from trace to info

> Add logging system for libdhfs++
> --------------------------------
>
>                 Key: HDFS-9118
>                 URL: https://issues.apache.org/jira/browse/HDFS-9118
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>    Affects Versions: HDFS-8707
>            Reporter: Bob Hansen
>            Assignee: James Clampffer
>         Attachments: HDFS-9118.HDFS-8707.000.patch, HDFS-9118.HDFS-8707.001.patch, HDFS-9118.HDFS-8707.002.patch,
HDFS-9118.HDFS-8707.003.patch, HDFS-9118.HDFS-8707.003.patch, HDFS-9118.HDFS-8707.004.patch
>
>
> With HDFS-9505, we've starting logging data from libhdfs++.  Consumers of the library
are going to have their own logging infrastructure that we're going to want to provide data
to.  
> libhdfs++ should have a logging library that:
> * Is overridable and can provide sufficient information to work well with common C++
logging frameworks
> * Has a rational default implementation 
> * Is performant



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message