[ https://forge.continuent.org/jira/browse/SEQUOIA-1055?page=comments#action_14351 ]
Emmanuel Cecchet commented on SEQUOIA-1055: ------------------------------------------- Backend task queues are null until the node is enabled. setTaskQueues is only called at enable or recovery time. I guess that shutting down the controller should throw an NPE in that method for all backends that were never enabled. What is bogus is that these terminte* functions should never be called for backends that are already disabled. Could you provide a scenario that reproduces the error? Thanks, Emmanuel > NPE in DatabaseBackend.terminateDeadlockDetectionThread > ------------------------------------------------------- > > Key: SEQUOIA-1055 > URL: https://forge.continuent.org/jira/browse/SEQUOIA-1055 > Project: Sequoia > Type: Bug > Components: Core > Versions: sequoia 2.10.10 > Reporter: Stefan Lischke > > > How can this happen? > Should we check for null in this code? > 2008-03-19 18:52:27,531 ERROR controller.virtualdatabase.botdb > org.continuent.sequoia.common.exceptions.ControllerException > 2008-03-19 18:52:27,532 ERROR controller.RequestManager.botdb Error while > disabling backends [EMAIL PROTECTED] > org.continuent.sequoia.common.exceptions.VirtualDatabaseException > at > org.continuent.sequoia.controller.virtualdatabase.DistributedVirtualDatabase.sendMessageToControllers(DistributedVirtualDatabase.java:2944) > at > org.continuent.sequoia.controller.requestmanager.distributed.DistributedRequestManager.disableBackendsWithCheckpoint(DistributedRequestManager.java:369) > at > org.continuent.sequoia.controller.virtualdatabase.VirtualDatabase.disableAllBackendsWithCheckpoint(VirtualDatabase.java:1734) > at > org.continuent.sequoia.controller.core.shutdown.VirtualDatabaseShutdownThread.disableAllBackendsWithCheckpoint(VirtualDatabaseShutdownThread.java:128) > at > org.continuent.sequoia.controller.core.shutdown.VirtualDatabaseSafeShutdownThread.shutdown(VirtualDatabaseSafeShutdownThread.java:55) > at > org.continuent.sequoia.controller.core.shutdown.ShutdownThread.run(ShutdownThread.java:92) > at java.lang.Thread.run(Thread.java:595) > Caused by: org.continuent.sequoia.common.exceptions.ControllerException > at > org.continuent.sequoia.common.exceptions.SequoiaException.fillInStackTrace(SequoiaException.java:103) > at java.lang.Throwable.<init>(Throwable.java:181) > at java.lang.Exception.<init>(Exception.java:29) > at > org.continuent.sequoia.common.exceptions.SequoiaException.<init>(SequoiaException.java:66) > at > org.continuent.sequoia.common.exceptions.ControllerException.<init>(ControllerException.java:61) > at > org.continuent.sequoia.controller.virtualdatabase.protocol.DisableBackendsAndSetCheckpoint.handleMessageMultiThreaded(DisableBackendsAndSetCheckpoint.java:212) > at > org.continuent.sequoia.controller.virtualdatabase.DistributedVirtualDatabase.handleMessageMultiThreaded(DistributedVirtualDatabase.java:370) > at > org.continuent.hedera.adapters.MulticastRequestAdapterThread.run(MulticastRequestAdapterThread.java:102) > Caused by: java.lang.NullPointerException > at > org.continuent.sequoia.controller.backend.DatabaseBackend.terminateDeadlockDetectionThread(DatabaseBackend.java:3052) > at > org.continuent.sequoia.controller.loadbalancer.raidb1.RAIDb1.terminateThreadsAndConnections(RAIDb1.java:2210) > at > org.continuent.sequoia.controller.loadbalancer.raidb1.RAIDb1.terminateThreadsAndConnections(RAIDb1.java:2203) > at > org.continuent.sequoia.controller.loadbalancer.raidb1.RAIDb1.disableBackend(RAIDb1.java:2175) > at > org.continuent.sequoia.controller.virtualdatabase.protocol.DisableBackendsAndSetCheckpoint.handleMessageMultiThreaded(DisableBackendsAndSetCheckpoint.java:195) > ... 2 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://forge.continuent.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ Sequoia mailing list [email protected] https://forge.continuent.org/mailman/listinfo/sequoia
