Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
BlockInfoStriped(BlockInfoStriped b) { this(b, b.getSchema()); this.setBlockCollection(b.getBlockCollection()); }
protected BlockInfoContiguous(BlockInfoContiguous from) { this(from, from.getBlockCollection().getPreferredBlockReplication()); this.triplets = new Object[from.triplets.length]; this.setBlockCollection(from.getBlockCollection()); }
We should define a copy constructor in the BlockInfo, and call it from these two subclass. I also notice a NullPointerException test failure of TestBlockInfo.testCopyConstructor in latest branch which is related to this.
Attachments
Attachments
Issue Links
- duplicates
-
HDFS-8466 Refactor BlockInfoContiguous and fix NPE in TestBlockInfo#testCopyConstructor()
- Resolved