[ 
https://issues.apache.org/jira/browse/HADOOP-6223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754019#action_12754019
 ] 

Sanjay Radia commented on HADOOP-6223:
--------------------------------------

I am amazed by your comment above! I would have preferred to have this 
discussion in private; but your comment leaves me with little choice:
You first objected to the notion of having a different class and hence the need 
for this Jira.
Owen had to step in with a private discussion with you to get you see the other 
side of the story (which was well explained in this and the related filecontext 
jira). While you were having that discussion with Owen we had concluded that 
this jira is likely to be caught up in a debate and charged full speed ahead in 
doing FileContext without the the proposed AbstractFileContext.
Furthermore, you later questioned my proposal to go with option 2 anyway and 
hence implicitly suggested that you prefer that FileContext call FileSystem and 
not AbstractFileContext in 21.
I needed to move forward. Moving forward with option 2 was risky till I 
convinced you.
In either case, I was still planning to add the create2 and rename2 methods to 
FileSystem (because it offered simpler and better delegation choices)
 which you would have objected to anyway - so the debate we are having wrt to 
rename2 method in 6240 would have happened anyway.
Making progress on some of these Jiras is very hard because you look at only 
bits and pieces of the puzzle
 and have very strong opinions on style. The design choices I had made were 
reasonable and discussed extensively with owen, arun, chris, suresh, and 
others. The FileContext patch has also articulated the design quite well. You 
just have a different opinion. Luckily it seems to to overlap (though not 
completely) with my option 2 above and so we can move forward.
I will sketch a plan for option 2 and post it to this or the filecontext jira 
tomorrow.

 I hope I have not offended you or others in my comments above. We are under a 
lot of pressure to get this compatibility stuff I launched a year ago to be 
completed in release 21 which freezes next week.
I feel it is best to be frank and help you see the other side of the story; I 
hope we can make faster progress as a result.

> New improved FileSystem interface for those implementing new files systems.
> ---------------------------------------------------------------------------
>
>                 Key: HADOOP-6223
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6223
>             Project: Hadoop Common
>          Issue Type: Sub-task
>            Reporter: Sanjay Radia
>            Assignee: Sanjay Radia
>
> The FileContext API (HADOOP-4952) provides an improved interface for the 
> application writer.
> This lets us simplify the FileSystem API since it will no longer need to deal 
> with notions of default filesystem [ / ],  wd, and config
> defaults for blocksize, replication factor etc. Further it will not need the 
> many overloaded methods for create() and open() since
> the FileContext API provides that convenience.
> The FileSystem API can be simplified and can now be restricted to those 
> implementing new file systems.
> This jira proposes that we create new file system API,  and deprecate 
> FileSystem API after a few releases.

-- 
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