Re: About Block related classes in hdfs package

2013-10-16 Thread Andrew Wang
Hey Yoonmin, Unfortunately I agree it's a bit complex, especially because "Block" is sometimes used where "Replica" might be more accurate. If you find any ambiguities like this, I think we'd happily take patches with clarifying comments / javadoc. The best way to learn is to read the code, but m

About Block related classes in hdfs package

2013-10-15 Thread Yoonmin Nam
When we see the source code of hdfs especially FSNamesystem, there is so many block related types are used such as Block, LocatedBLocks, BlocksWithLocations. And this makes me very unclear about the system. In addition, BlocksMap just maps Block and BlockInfo, but Block becomes LocatedBlock with D