hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-3896) Make AssignmentManager standalone testable by having its constructor take Interfaces rather than a CatalogTracker and a ServerManager
Date Mon, 24 Sep 2012 20:58:07 GMT

    [ https://issues.apache.org/jira/browse/HBASE-3896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462114#comment-13462114
] 

stack commented on HBASE-3896:
------------------------------

[~cody.marcel@gmail.com] This is done.  Check TestAssignmentManager.  See how it mocks up
what AM needs.  Gets a bit messy around the rpc'ing.  If you have ideas on how to improve,
please say.  Else, I think we can close this out.
                
> Make AssignmentManager standalone testable by having its constructor take Interfaces
rather than a CatalogTracker and a ServerManager
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-3896
>                 URL: https://issues.apache.org/jira/browse/HBASE-3896
>             Project: HBase
>          Issue Type: Task
>            Reporter: stack
>            Assignee: Cody Marcel
>
> If we could stand up an instance of AssignmentManager, a core fat class that has a bunch
of critical logic managing state transitions, then it'd be easier writing unit tests around
its logic.  Currently its hard because it takes a ServerManager and a CatalogTracker, but
a little bit of work could turn these into Interfaces.  SM looks easy to do.  Changing CT
into an Interface instead might ripple a little through the code base but it'd probably be
well worth it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message