[ 
https://issues.apache.org/jira/browse/HDFS-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727097#action_12727097
 ] 

Luca Telloli commented on HDFS-311:
-----------------------------------

To reopen this issue, I'm currently try to solve the following problem. 

For each logging stream I need to set a checkpoint time. This can be done 
including a setCheckpointTime() method in the EditLogOutputStream abstract 
class, but it has a serie of implications, that I'll list: 

1. at format time we'll need to instantiate a stream of each type to call the 
method (or we can make the method static) 

2. for file streams, the method will have to call the FSImage.format(sd) 
method: this means that the method should be static or the code should be 
copied as it is inside the EditLogFileOutputStream 

3. FSImage.format static will imply that saveFSImage should be static as well, 
which implies that the variable namespaceID should be static as well 

I'm wondering if this is an acceptable solution or not; or I'd like to know if 
anyone has a better one. In general I think that some methods of FSImage can be 
made static without affecting the thread safety, but I'd like a confirmation on 
this. 

> Modifications to enable multiple types of logging 
> --------------------------------------------------
>
>                 Key: HDFS-311
>                 URL: https://issues.apache.org/jira/browse/HDFS-311
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Luca Telloli
>         Attachments: HADOOP-5188.patch, HADOOP-5188.patch, HADOOP-5188.patch, 
> HADOOP-5188.patch, HADOOP-5188.patch, HADOOP-5188.patch, HADOOP-5188.pdf
>
>


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

Reply via email to