cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From koushik-das <>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8704: Schedule restart of rout...
Date Tue, 04 Aug 2015 09:25:33 GMT
Github user koushik-das commented on a diff in the pull request:
    --- Diff: server/test/com/cloud/ha/ ---
    @@ -113,12 +110,18 @@
         public void setup() throws IllegalArgumentException,
                 IllegalAccessException, NoSuchFieldException, SecurityException {
             highAvailabilityManager = new HighAvailabilityManagerImpl();
    -        for (Field injectField : HighAvailabilityManagerImpl.class
    -                .getDeclaredFields()) {
    +        for (Field injectField : HighAvailabilityManagerImpl.class.getDeclaredFields())
                 if (injectField.isAnnotationPresent(Inject.class)) {
    -                injectField.set(highAvailabilityManager, this.getClass()
    -                        .getDeclaredField(injectField.getName()).get(this));
    +                injectField.set(highAvailabilityManager, this.getClass().getDeclaredField(injectField.getName()).get(this));
    +            } else if (injectField.getName().equals("_workers")) {
    --- End diff --
    Yes. "_workers" is the set of worker threads that perform HA related tasks in HighAvaiabilityManagerImpl
class. As part of the test wakeupWorkers() methods get invoked which needs _workers to be

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message