hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Telloli (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-5188) Modifications to enable multiple types of logging
Date Fri, 06 Feb 2009 12:17:59 GMT

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

Luca Telloli updated HADOOP-5188:
---------------------------------

    Attachment: HADOOP-5188.patch

It would be good to have a better abstraction for logging. I had this need when trying to
integrate BookKeeper (https://issues.apache.org/jira/browse/ZOOKEEPER-276) with HDFS. 

My biggest problem during integration was related to the LogSync() method, which I had to
modify to take advantage of BookKeeper features. The approach I took was to create an abstract
class EditLog, incorporating most of the logic of FSEditLog, and FSEditLog to extend it. I'm
not sure this is the best solution in the long term so any design comment is welcome. In particular,
some methods that are implemented as synchronised in the EditLog class might be used in a
non-synchronised way if using BookKeeper, so the actual synchronisation might be left to implement
by the subclass and not by the superclass.  

Since after this patch multiple logging types might be available, I added an abstract method
getLogNameType() to return the name of the Logging system in use. 

== USAGE == 
Applies against hadoop-19.0 release (http://svn.apache.org/repos/asf/hadoop/core/tags/release-0.19.0/)

> Modifications to enable multiple types of logging 
> --------------------------------------------------
>
>                 Key: HADOOP-5188
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5188
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.19.0
>            Reporter: Luca Telloli
>         Attachments: HADOOP-5188.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message