Issue Details (XML | Word | Printable)

Key: HADOOP-1766
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Konstantin Shvachko
Reporter: Konstantin Shvachko
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Merging Block and BlockInfo classes on name-node.

Created: 23/Aug/07 01:44 AM   Updated: 08/Jul/09 04:41 PM
Return to search
Component/s: None
Affects Version/s: 0.14.0
Fix Version/s: 0.15.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works blockInfo.patch 2007-08-23 01:44 AM Konstantin Shvachko 2 kB
Issue Links:
Incorporates
 

Resolution Date: 23/Aug/07 02:41 PM


 Description  « Hide
In current implementation
  • BlocksMap references BlockInfo
  • INode references Block
  • BlockInfo contains a reference to the corresponding Block

It would be better to incorporate Block into BlockInfo and reference the latter everywhere in name-node structures.
This saves 24 bytes per block on a 64-bit jvm as stated in HADOOP-1687 (5).
I retained the Block class as a structure for external (client and data-node) communication.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.