Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] prevent node from joining cluster until it'll be fully initialized #147

Open
dsukhoroslov opened this issue Jan 17, 2018 · 0 comments

Comments

@dsukhoroslov
Copy link
Owner

  • start Bagri node, run some long tests
  • in the middle of the tests start second node to join the first one
  • after node initialization and joining cluster, but before Schema initialization complete the test throws exception:
...
Caused by: com.hazelcast.client.UndefinedErrorCodeException: Class name : com.bagri.core.api.BagriException , Message :java.util.concurrent.ExecutionException: com.hazelcast.nio.serialization.HazelcastSerializationException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.bagri.server.hazelcast.task.doc.DocumentCleaner': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.bagri.server.hazelcast.task.doc.DocumentCleaner.setRepository(com.bagri.server.hazelcast.impl.SchemaRepositoryImpl); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xdmRepo' defined in URL [file:src/main/resources/spring/cache-schema-context.xml]: Cannot resolve reference to bean 'queryManager' while setting bean property 'queryManagement'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryManager' defined in URL [file:src/main/resources/spring/cache-schema-context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'repository' threw exception; nested exception is java.lang.NullPointerException
        at com.bagri.server.hazelcast.impl.TransactionManagementImpl.cleanAffectedDocuments(TransactionManagementImpl.java:253) ~[na:na]
        at com.bagri.server.hazelcast.impl.TransactionManagementImpl.rollbackTransaction(TransactionManagementImpl.java:198) ~[na:na]
        at com.bagri.server.hazelcast.impl.TransactionManagementImpl.callInTransaction(TransactionManagementImpl.java:370) ~[na:na]
        at com.bagri.server.hazelcast.task.query.QueryExecutor.call(QueryExecutor.java:53) ~[na:na]
        at com.bagri.server.hazelcast.task.query.QueryExecutor.call(QueryExecutor.java:21) ~[na:na]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_74]
        at com.hazelcast.executor.impl.DistributedExecutorService$CallableProcessor.run(DistributedExecutorService.java:241) ~[hazelcast-all-3.8.7.jar:3.8.7]
        at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:227) ~[hazelcast-all-3.8.7.jar:3.8.7]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_74]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_74]
        at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_74]
        at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:64) ~[hazelcast-all-3.8.7.jar:3.8.7]
        at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:80) ~[hazelcast-all-3.8.7.jar:3.8.7]
        at ------ submitted from ------.(Unknown Source) ~[na:na]
        at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolve(InvocationFuture.java:114) ~[hazelcast-all-3.8.7.jar:3.8.7]
        at com.hazelcast.spi.impl.AbstractInvocationFuture$1.run(AbstractInvocationFuture.java:243) ~[hazelcast-all-3.8.7.jar:3.8.7]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_74]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_74]
        at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_74]
        at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:64) ~[hazelcast-all-3.8.7.jar:3.8.7]
        at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:80) ~[hazelcast-all-3.8.7.jar:3.8.7]
dsukhoroslov added a commit that referenced this issue Jan 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant