helix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinayak Borkar <vinay...@gmail.com>
Subject Duplicate INIT in Controller
Date Sun, 26 Jan 2014 20:13:16 GMT
Hi,

I am observing duplicate handlers being added to the controller and this 
is leading to INIT being called multiple times on the same handlers.

Here is my code to start the controler, which looks fairly standard:

     @Override
     protected void doStart() throws SystemException {
         hManager = HelixManagerFactory.getZKHelixManager(clusterName, 
UUID.randomUUID().toString(),
                 InstanceType.CONTROLLER, zkAddr);
         try {
             hManager.connect();
         } catch (Exception e) {
             throw new SystemException(e);
         }
         GenericHelixController controller = new GenericHelixController();
         HelixControllerMain.addListenersToController(hManager, controller);
     }



Here are the log messages due to duplicate calls:

2014-01-26 12:11:16,721 WARN  [CallbackHandler]   Skip processing 
callbacks for listener: 
org.apache.helix.messaging.handling.HelixTaskExecutor@7f3076b2, path: 
/e78dead7-0c2f-4c5f-af7e-f25e8c170db1/CONTROLLER/MESSAGES, expected 
types: [CALLBACK, FINALIZE] but was INIT
2014-01-26 12:11:16,721 WARN  [CallbackHandler]   Skip processing 
callbacks for listener: 
org.apache.helix.controller.GenericHelixController@4db4bfda, path: 
/e78dead7-0c2f-4c5f-af7e-f25e8c170db1/CONFIGS/PARTICIPANT, expected 
types: [CALLBACK, FINALIZE] but was INIT
2014-01-26 12:11:16,721 WARN  [CallbackHandler]   Skip processing 
callbacks for listener: 
org.apache.helix.controller.GenericHelixController@4db4bfda, path: 
/e78dead7-0c2f-4c5f-af7e-f25e8c170db1/LIVEINSTANCES, expected types: 
[CALLBACK, FINALIZE] but was INIT
2014-01-26 12:11:16,721 WARN  [CallbackHandler]   Skip processing 
callbacks for listener: 
org.apache.helix.controller.GenericHelixController@4db4bfda, path: 
/e78dead7-0c2f-4c5f-af7e-f25e8c170db1/IDEALSTATES, expected types: 
[CALLBACK, FINALIZE] but was INIT
2014-01-26 12:11:16,721 WARN  [CallbackHandler]   Skip processing 
callbacks for listener: 
org.apache.helix.controller.GenericHelixController@4db4bfda, path: 
/e78dead7-0c2f-4c5f-af7e-f25e8c170db1/CONTROLLER, expected types: 
[CALLBACK, FINALIZE] but was INIT


Thanks,
Vinayak

Mime
View raw message