[ https://issues.apache.org/jira/browse/HDFS-7029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14126130#comment-14126130 ]
Jing Zhao commented on HDFS-7029: --------------------------------- Maybe we can wrap the following code into a static method? Other than this +1. {code} + static { + final BlockStoragePolicy[] policies = new BlockStoragePolicy[1 << ID_BIT_LENGTH]; + final StorageType[] storageTypes = {StorageType.DISK}; + final byte defaultPolicyId = 12; + policies[defaultPolicyId] = new BlockStoragePolicy(defaultPolicyId, "HOT", + storageTypes, StorageType.EMPTY_ARRAY, StorageType.EMPTY_ARRAY); + DEFAULT_SUITE = new Suite(defaultPolicyId, policies); + } {code} > Archival Storage: fix TestDFSInotifyEventInputStream and > TestDistributedFileSystem > ---------------------------------------------------------------------------------- > > Key: HDFS-7029 > URL: https://issues.apache.org/jira/browse/HDFS-7029 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: balancer, namenode > Reporter: Tsz Wo Nicholas Sze > Assignee: Tsz Wo Nicholas Sze > Priority: Minor > Attachments: h7029_20140908.patch > > > These two tests failed in > https://builds.apache.org/job/PreCommit-HDFS-Build/7945//testReport/ . -- This message was sent by Atlassian JIRA (v6.3.4#6332)