FAQ
refactor TestNodeCount to import standard node counting and "wait for replication" methods
------------------------------------------------------------------------------------------

Key: HDFS-1853
URL: https://issues.apache.org/jira/browse/HDFS-1853
Project: Hadoop HDFS
Issue Type: Test
Components: test
Affects Versions: 0.22.0
Reporter: Matt Foley


Eli's suggestions for refactoring the three "wait for" loops in TestNodeCount for re-usability (similar to what was done for HDFS-1562): You could augment NameNodeAdapter#getReplicaInfo to return excess and live replica counts as well and then just add waitFor[Live|Excess]Replicas methods to DFSTestUtil and have TestNodeCount call them. This way we could re-use them in the other replication tests.



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouphdfs-dev @
categorieshadoop
postedApr 21, '11 at 6:15a
activeApr 21, '11 at 6:15a
posts1
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Matt Foley (JIRA): 1 post

People

Translate

site design / logo © 2022 Grokbase