{"action":"created","issue":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/13840","repository_url":"https://api.github.com/repos/hazelcast/hazelcast","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/13840/labels{/name}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/13840/comments","events_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/13840/events","html_url":"https://github.com/hazelcast/hazelcast/issues/13840","id":363872867,"node_id":"MDU6SXNzdWUzNjM4NzI4Njc=","number":13840,"title":"OperationTimeoutException with dynamic mapconfig","user":{"login":"saimonsez","id":26276490,"node_id":"MDQ6VXNlcjI2Mjc2NDkw","avatar_url":"https://avatars0.githubusercontent.com/u/26276490?v=4","gravatar_id":"","url":"https://api.github.com/users/saimonsez","html_url":"https://github.com/saimonsez","followers_url":"https://api.github.com/users/saimonsez/followers","following_url":"https://api.github.com/users/saimonsez/following{/other_user}","gists_url":"https://api.github.com/users/saimonsez/gists{/gist_id}","starred_url":"https://api.github.com/users/saimonsez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saimonsez/subscriptions","organizations_url":"https://api.github.com/users/saimonsez/orgs","repos_url":"https://api.github.com/users/saimonsez/repos","events_url":"https://api.github.com/users/saimonsez/events{/privacy}","received_events_url":"https://api.github.com/users/saimonsez/received_events","type":"User","site_admin":false},"labels":[{"id":843257255,"node_id":"MDU6TGFiZWw4NDMyNTcyNTU=","url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Module:%20Config","name":"Module: Config","color":"efefef","default":false},{"id":137752575,"node_id":"MDU6TGFiZWwxMzc3NTI1NzU=","url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Team:%20Core","name":"Team: Core","color":"fef2c0","default":false},{"id":2715855,"node_id":"MDU6TGFiZWwyNzE1ODU1","url":"https://api.github.com/repos/hazelcast/hazelcast/labels/Team:%20Integration","name":"Team: Integration","color":"fef2c0","default":false},{"id":680491059,"node_id":"MDU6TGFiZWw2ODA0OTEwNTk=","url":"https://api.github.com/repos/hazelcast/hazelcast/labels/To%20Triage","name":"To Triage","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":{"login":"tkountis","id":3369598,"node_id":"MDQ6VXNlcjMzNjk1OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/3369598?v=4","gravatar_id":"","url":"https://api.github.com/users/tkountis","html_url":"https://github.com/tkountis","followers_url":"https://api.github.com/users/tkountis/followers","following_url":"https://api.github.com/users/tkountis/following{/other_user}","gists_url":"https://api.github.com/users/tkountis/gists{/gist_id}","starred_url":"https://api.github.com/users/tkountis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkountis/subscriptions","organizations_url":"https://api.github.com/users/tkountis/orgs","repos_url":"https://api.github.com/users/tkountis/repos","events_url":"https://api.github.com/users/tkountis/events{/privacy}","received_events_url":"https://api.github.com/users/tkountis/received_events","type":"User","site_admin":false},"assignees":[{"login":"tkountis","id":3369598,"node_id":"MDQ6VXNlcjMzNjk1OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/3369598?v=4","gravatar_id":"","url":"https://api.github.com/users/tkountis","html_url":"https://github.com/tkountis","followers_url":"https://api.github.com/users/tkountis/followers","following_url":"https://api.github.com/users/tkountis/following{/other_user}","gists_url":"https://api.github.com/users/tkountis/gists{/gist_id}","starred_url":"https://api.github.com/users/tkountis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkountis/subscriptions","organizations_url":"https://api.github.com/users/tkountis/orgs","repos_url":"https://api.github.com/users/tkountis/repos","events_url":"https://api.github.com/users/tkountis/events{/privacy}","received_events_url":"https://api.github.com/users/tkountis/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/hazelcast/hazelcast/milestones/112","html_url":"https://github.com/hazelcast/hazelcast/milestone/112","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/milestones/112/labels","id":3354840,"node_id":"MDk6TWlsZXN0b25lMzM1NDg0MA==","number":112,"title":"3.12","description":null,"creator":{"login":"burakcelebi","id":928875,"node_id":"MDQ6VXNlcjkyODg3NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/928875?v=4","gravatar_id":"","url":"https://api.github.com/users/burakcelebi","html_url":"https://github.com/burakcelebi","followers_url":"https://api.github.com/users/burakcelebi/followers","following_url":"https://api.github.com/users/burakcelebi/following{/other_user}","gists_url":"https://api.github.com/users/burakcelebi/gists{/gist_id}","starred_url":"https://api.github.com/users/burakcelebi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burakcelebi/subscriptions","organizations_url":"https://api.github.com/users/burakcelebi/orgs","repos_url":"https://api.github.com/users/burakcelebi/repos","events_url":"https://api.github.com/users/burakcelebi/events{/privacy}","received_events_url":"https://api.github.com/users/burakcelebi/received_events","type":"User","site_admin":false},"open_issues":290,"closed_issues":8,"state":"open","created_at":"2018-05-17T14:36:02Z","updated_at":"2018-10-12T14:28:55Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-09-26T06:14:32Z","updated_at":"2018-10-15T10:17:34Z","closed_at":null,"author_association":"NONE","body":"Adding the following dynamic map config on a Hazelcast 3.9.3 Cluster deployed on OpenShift 3.6 used to work fine:\r\n\r\n```java\r\n@Bean\r\n    public HazelcastInstance hazelcastClientInstance() {\r\n        final ClientConfig clientConfig = new ClientConfig();\r\n        clientConfig.setNetworkConfig(new ClientNetworkConfig().setConnectionAttemptLimit(10).setAddresses(Collections.singletonList(\"host\")).setRedoOperation(true));\r\n        clientConfig.setGroupConfig(new GroupConfig(\"groupName\", \"groupPassword\"));\r\n        clientConfig.setSerializationConfig(serializationConfig());\r\n        HazelcastInstance instance = HazelcastClient.newHazelcastClient(clientConfig);\r\n        instance.getConfig().addMapConfig(new MapConfig()\r\n                .setName(\"my-map-*\")\r\n                .setTimeToLiveSeconds(60)\r\n                .setEvictionPolicy(EvictionPolicy.LRU)\r\n                .setMaxIdleSeconds(0)\r\n                .setAsyncBackupCount(1)\r\n                .setMaxSizeConfig(new MaxSizeConfig().setMaxSizePolicy(MaxSizeConfig.MaxSizePolicy.PER_NODE).setSize(200_000))\r\n                .setBackupCount(0));\r\n        return instance;\r\n    }\r\n```\r\nHowever, with Hazelcast 3.10.x I'm getting a timeout exception:\r\n\r\n```\r\n[2018-09-26 07:20:34,722] [hz.client_0.cluster-] INFO  com.hazelcast.client.connection.ClientConnectionManager - corid= hz.client_0 [hazelcast-dev] [3.10.2] Trying to connect to [hazelcast-dev]:5701 as owner member\r\n[2018-09-26 07:20:34,922] [hz.client_0.internal-3] INFO  com.hazelcast.client.connection.ClientConnectionManager - corid= hz.client_0 [hazelcast-dev] [3.10.2] Setting ClientConnection{alive=true, connectionId=1, channel=NioChannel{/10.1.23.138:44003->hazelcast-dev/10.1.17.99:5701}, remoteEndpoint=[10.1.17.99]:5701, lastReadTime=2018-09-26 07:20:34.841, lastWriteTime=2018-09-26 07:20:34.837, closedTime=never, lastHeartbeatRequested=never, lastHeartbeatReceived=never, connected server version=3.10.2} as owner with principal ClientPrincipal{uuid='f1f8e393-7e36-48b4-9c8c-ca48163abae3', ownerUuid='17b697ef-8124-44be-bba8-2a782888420e'}\r\n[2018-09-26 07:20:34,922] [hz.client_0.internal-3] INFO  com.hazelcast.client.connection.ClientConnectionManager - corid= hz.client_0 [hazelcast-dev] [3.10.2] Authenticated with server [10.1.17.99]:5701, server version:3.10.2 Local address: /10.1.23.138:44003\r\n[2018-09-26 07:20:34,940] [hz.client_0.event-2] INFO  com.hazelcast.client.spi.impl.ClientMembershipListener - corid= hz.client_0 [hazelcast-dev] [3.10.2] \r\n\r\nMembers [2] {\r\n\tMember [10.1.27.184]:5701 - ab6e8aa2-c0ce-4c5a-9575-889ac8723468\r\n\tMember [10.1.17.99]:5701 - 17b697ef-8124-44be-bba8-2a782888420e\r\n}\r\n\r\n[2018-09-26 07:20:34,942] [hz.client_0.cluster-] INFO  com.hazelcast.core.LifecycleService - corid= hz.client_0 [hazelcast-dev] [3.10.2] HazelcastClient 3.10.2 (20180606 - 84cfd49) is CLIENT_CONNECTED\r\n[2018-09-26 07:20:34,943] [main] INFO  com.hazelcast.internal.diagnostics.Diagnostics - corid= hz.client_0 [hazelcast-dev] [3.10.2] Diagnostics disabled. To enable add -Dhazelcast.diagnostics.enabled=true to the JVM arguments.\r\n[2018-09-26 07:22:36,257] [main] WARN  org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext - corid= Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hazelcastInstance' defined in class path resource [config/HazelcastAutoConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.hazelcast.core.HazelcastInstance]: Factory method 'hazelcastClientInstance' threw exception; nested exception is com.hazelcast.core.OperationTimeoutException: ClientInvocation{clientMessage = ClientMessage{length=22, correlationId=228, operation=null, messageType=1e0e, partitionId=-1, isComplete=false, isRetryable=false, isEvent=false, writeOffset=0}, objectName = null, target = random, sendConnection = ClientConnection{alive=true, connectionId=2, channel=NioChannel{/10.1.23.138:45403->/10.1.27.184:5701}, remoteEndpoint=[10.1.27.184]:5701, lastReadTime=2018-09-26 07:22:36.248, lastWriteTime=2018-09-26 07:22:36.246, closedTime=never, lastHeartbeatRequested=never, lastHeartbeatReceived=never, connected server version=3.10.2}} timed out because exception occurred after client invocation timeout 120000 ms. Current time: 2018-09-26 07:22:36.249. Start time: 2018-09-26 07:20:35.535. Total elapsed time: 120714 ms. \r\n[2018-09-26 07:22:36,263] [main] INFO  org.apache.catalina.core.StandardService - corid= Stopping service [Tomcat]\r\n[2018-09-26 07:22:36,431] [main] INFO  org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener - corid= \r\n\r\nError starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.\r\n[2018-09-26 07:22:36,732] [main] ERROR org.springframework.boot.SpringApplication - corid= Application run failed\r\norg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hazelcastInstance' defined in class path resource [config/HazelcastAutoConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.hazelcast.core.HazelcastInstance]: Factory method 'hazelcastClientInstance' threw exception; nested exception is com.hazelcast.core.OperationTimeoutException: ClientInvocation{clientMessage = ClientMessage{length=22, correlationId=228, operation=null, messageType=1e0e, partitionId=-1, isComplete=false, isRetryable=false, isEvent=false, writeOffset=0}, objectName = null, target = random, sendConnection = ClientConnection{alive=true, connectionId=2, channel=NioChannel{/10.1.23.138:45403->/10.1.27.184:5701}, remoteEndpoint=[10.1.27.184]:5701, lastReadTime=2018-09-26 07:22:36.248, lastWriteTime=2018-09-26 07:22:36.246, closedTime=never, lastHeartbeatRequested=never, lastHeartbeatReceived=never, connected server version=3.10.2}} timed out because exception occurred after client invocation timeout 120000 ms. Current time: 2018-09-26 07:22:36.249. Start time: 2018-09-26 07:20:35.535. Total elapsed time: 120714 ms. \r\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:590) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1247) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089) ~[spring-context-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859) ~[spring-context-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:780) [spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412) [spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:333) [spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1277) [spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1265) [spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]\r\n\tat MyApp.main(MyApp.java:26) [classes!/:1.166.3-SNAPSHOT]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_181]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_181]\r\n\tat java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181]\r\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [app.jar:1.166.3-SNAPSHOT]\r\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [app.jar:1.166.3-SNAPSHOT]\r\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [app.jar:1.166.3-SNAPSHOT]\r\n\tat org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [app.jar:1.166.3-SNAPSHOT]\r\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.hazelcast.core.HazelcastInstance]: Factory method 'hazelcastClientInstance' threw exception; nested exception is com.hazelcast.core.OperationTimeoutException: ClientInvocation{clientMessage = ClientMessage{length=22, correlationId=228, operation=null, messageType=1e0e, partitionId=-1, isComplete=false, isRetryable=false, isEvent=false, writeOffset=0}, objectName = null, target = random, sendConnection = ClientConnection{alive=true, connectionId=2, channel=NioChannel{/10.1.23.138:45403->/10.1.27.184:5701}, remoteEndpoint=[10.1.27.184]:5701, lastReadTime=2018-09-26 07:22:36.248, lastWriteTime=2018-09-26 07:22:36.246, closedTime=never, lastHeartbeatRequested=never, lastHeartbeatReceived=never, connected server version=3.10.2}} timed out because exception occurred after client invocation timeout 120000 ms. Current time: 2018-09-26 07:22:36.249. Start time: 2018-09-26 07:20:35.535. Total elapsed time: 120714 ms. \r\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:582) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\t... 28 common frames omitted\r\nCaused by: com.hazelcast.core.OperationTimeoutException: ClientInvocation{clientMessage = ClientMessage{length=22, correlationId=228, operation=null, messageType=1e0e, partitionId=-1, isComplete=false, isRetryable=false, isEvent=false, writeOffset=0}, objectName = null, target = random, sendConnection = ClientConnection{alive=true, connectionId=2, channel=NioChannel{/10.1.23.138:45403->/10.1.27.184:5701}, remoteEndpoint=[10.1.27.184]:5701, lastReadTime=2018-09-26 07:22:36.248, lastWriteTime=2018-09-26 07:22:36.246, closedTime=never, lastHeartbeatRequested=never, lastHeartbeatReceived=never, connected server version=3.10.2}} timed out because exception occurred after client invocation timeout 120000 ms. Current time: 2018-09-26 07:22:36.249. Start time: 2018-09-26 07:20:35.535. Total elapsed time: 120714 ms. \r\n\tat com.hazelcast.client.spi.impl.ClientInvocation.newOperationTimeoutException(ClientInvocation.java:344) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.spi.impl.ClientInvocation.notifyException(ClientInvocation.java:241) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.spi.impl.ClientResponseHandlerSupplier.handleClientMessage(ClientResponseHandlerSupplier.java:134) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.spi.impl.ClientResponseHandlerSupplier.process(ClientResponseHandlerSupplier.java:115) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.spi.impl.ClientResponseHandlerSupplier.access$500(ClientResponseHandlerSupplier.java:50) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.spi.impl.ClientResponseHandlerSupplier$ResponseThread.doRun(ClientResponseHandlerSupplier.java:168) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.spi.impl.ClientResponseHandlerSupplier$ResponseThread.run(ClientResponseHandlerSupplier.java:152) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat ------ submitted from ------.(Unknown Source) ~[na:na]\r\n\tat com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:96) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:33) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:162) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.impl.ClientDynamicClusterConfig.invoke(ClientDynamicClusterConfig.java:1206) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.impl.ClientDynamicClusterConfig.addMapConfig(ClientDynamicClusterConfig.java:156) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat ch.config.HazelcastAutoConfig.hazelcastClientInstance(HazelcastAutoConfig.java:66) ~[classes!/:1.166.3-SNAPSHOT]\r\n\tat ch.config.HazelcastAutoConfig$$EnhancerBySpringCGLIB$$4e1d13c4.CGLIB$hazelcastClientInstance$0(<generated>) ~[classes!/:1.166.3-SNAPSHOT]\r\n\tat ch.config.HazelcastAutoConfig$$EnhancerBySpringCGLIB$$4e1d13c4$$FastClassBySpringCGLIB$$a08dcd77.invoke(<generated>) ~[classes!/:1.166.3-SNAPSHOT]\r\n\tat org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:365) ~[spring-context-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\tat ch.config.HazelcastAutoConfig$$EnhancerBySpringCGLIB$$4e1d13c4.hazelcastClientInstance(<generated>) ~[classes!/:1.166.3-SNAPSHOT]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_181]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_181]\r\n\tat java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181]\r\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]\r\n\t... 29 common frames omitted\r\nCaused by: com.hazelcast.config.ConfigurationException: Cannot add a dynamic configuration 'MapConfig{name='my-map-*', inMemoryFormat=BINARY', backupCount=0, asyncBackupCount=1, timeToLiveSeconds=259200, maxIdleSeconds=0, evictionPolicy='LRU', mapEvictionPolicy='com.hazelcast.map.eviction.LRUEvictionPolicy@45cd5c81', evictionPercentage=25, minEvictionCheckMillis=100, maxSizeConfig=MaxSizeConfig{maxSizePolicy='PER_NODE', size=200000}, readBackupData=false, hotRestart=HotRestartConfig{enabled=false, fsync=false}, nearCacheConfig=null, mapStoreConfig=MapStoreConfig{enabled=false, className='null', factoryClassName='null', writeDelaySeconds=0, writeBatchSize=1, implementation=null, factoryImplementation=null, properties={}, initialLoadMode=LAZY, writeCoalescing=true}, mergePolicyConfig=MergePolicyConfig{policy='com.hazelcast.spi.merge.PutIfAbsentMergePolicy', batchSize=100}, wanReplicationRef=null, entryListenerConfigs=null, mapIndexConfigs=[], mapAttributeConfigs=[], quorumName=null, queryCacheConfigs=null, cacheDeserializedValues=INDEX_ONLY}' as there is already a conflicting configuration 'MapConfig{name='my-map-*', inMemoryFormat=BINARY', backupCount=0, asyncBackupCount=1, timeToLiveSeconds=259200, maxIdleSeconds=0, evictionPolicy='LRU', mapEvictionPolicy='com.hazelcast.map.eviction.LRUEvictionPolicy@45cd5c81', evictionPercentage=25, minEvictionCheckMillis=100, maxSizeConfig=MaxSizeConfig{maxSizePolicy='PER_NODE', size=200000}, readBackupData=false, hotRestart=HotRestartConfig{enabled=false, fsync=false}, nearCacheConfig=null, mapStoreConfig=MapStoreConfig{enabled=false, className='null', factoryClassName='null', writeDelaySeconds=0, writeBatchSize=1, implementation=null, factoryImplementation=null, properties={}, initialLoadMode=LAZY, writeCoalescing=true}, mergePolicyConfig=MergePolicyConfig{policy='com.hazelcast.map.merge.PutIfAbsentMapMergePolicy', batchSize=100}, wanReplicationRef=null, entryListenerConfigs=[], mapIndexConfigs=[], mapAttributeConfigs=[], quorumNa\r\nme=null, queryCacheConfigs=[], cacheDeserializedValues=INDEX_ONLY}'\r\n\tat com.hazelcast.internal.dynamicconfig.ClusterWideConfigurationService.checkCurrentConfigNullOrEqual(ClusterWideConfigurationService.java:402) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.internal.dynamicconfig.ClusterWideConfigurationService.registerConfigLocally(ClusterWideConfigurationService.java:360) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.internal.dynamicconfig.AddDynamicConfigOperation.run(AddDynamicConfigOperation.java:48) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.Operation.call(Operation.java:148) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.call(OperationRunnerImpl.java:202) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:191) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.impl.operationexecutor.impl.OperationExecutorImpl.run(OperationExecutorImpl.java:406) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.impl.operationexecutor.impl.OperationExecutorImpl.runOrExecute(OperationExecutorImpl.java:433) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.impl.operationservice.impl.Invocation.doInvokeLocal(Invocation.java:581) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.impl.operationservice.impl.Invocation.doInvoke(Invocation.java:566) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.impl.operationservice.impl.Invocation.invoke0(Invocation.java:525) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.impl.operationservice.impl.Invocation.invoke(Invocation.java:215) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnTarget(OperationServiceImpl.java:321) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.internal.util.InvocationUtil$InvokeOnMemberFunction.invokeOnMember(InvocationUtil.java:165) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.internal.util.InvocationUtil$InvokeOnMemberFunction.apply(InvocationUtil.java:142) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.internal.util.InvocationUtil$InvokeOnMemberFunction.apply(InvocationUtil.java:119) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.util.IterableUtil$2.next(IterableUtil.java:60) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.internal.util.futures.ChainingFuture.<init>(ChainingFuture.java:49) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.internal.util.InvocationUtil.invokeOnStableClusterSerial(InvocationUtil.java:87) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.internal.dynamicconfig.ClusterWideConfigurationService.broadcastConfigAsync(ClusterWideConfigurationService.java:246) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.impl.protocol.task.dynamicconfig.AbstractAddConfigMessageTask.processMessage(AbstractAddConfigMessageTask.java:73) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.impl.protocol.task.AbstractMessageTask.initializeAndProcessMessage(AbstractMessageTask.java:123) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.impl.protocol.task.AbstractMessageTask.doRun(AbstractMessageTask.java:111) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.client.impl.protocol.task.AbstractMessageTask.run(AbstractMessageTask.java:101) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_181]\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_181]\r\n\tat java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_181]\r\n\tat com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:64) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:80) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat ------ submitted from ------.(Unknown Source) ~[na:na]\r\n\tat com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolve(InvocationFuture.java:127) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.spi.impl.AbstractInvocationFuture$1.run(AbstractInvocationFuture.java:250) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_181]\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_181]\r\n\tat java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_181]\r\n\tat com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:64) ~[hazelcast-all-3.10.2.jar!/:3.10.2]\r\n\tat com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:80) ~[hazelcast-all-3.10.2.jar!/:3.10.2][2018-09-26 07:20:35,550] [hz.client_0.internal-3] INFO  com.hazelcast.client.connection.ClientConnectionManager - corid= hz.client_0 [hazelcast-dev] [3.10.2] Authenticated with server [10.1.27.184]:5701, server version:3.10.2 Local address: /10.1.23.138:45403\r\n```\r\n\r\nI cannot reproduce this behaviour on my local machine, but only on OpenShift. \r\nIf I remove the dynamic configuration code snippet, everything works as expected."},"comment":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/comments/429789909","html_url":"https://github.com/hazelcast/hazelcast/issues/13840#issuecomment-429789909","issue_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/13840","id":429789909,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTc4OTkwOQ==","user":{"login":"saimonsez","id":26276490,"node_id":"MDQ6VXNlcjI2Mjc2NDkw","avatar_url":"https://avatars0.githubusercontent.com/u/26276490?v=4","gravatar_id":"","url":"https://api.github.com/users/saimonsez","html_url":"https://github.com/saimonsez","followers_url":"https://api.github.com/users/saimonsez/followers","following_url":"https://api.github.com/users/saimonsez/following{/other_user}","gists_url":"https://api.github.com/users/saimonsez/gists{/gist_id}","starred_url":"https://api.github.com/users/saimonsez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saimonsez/subscriptions","organizations_url":"https://api.github.com/users/saimonsez/orgs","repos_url":"https://api.github.com/users/saimonsez/repos","events_url":"https://api.github.com/users/saimonsez/events{/privacy}","received_events_url":"https://api.github.com/users/saimonsez/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T10:17:34Z","updated_at":"2018-10-15T10:17:34Z","author_association":"NONE","body":"@mmedenjak:\r\nadding \r\n````\r\n.setMergePolicyConfig(new MergePolicyConfig().setPolicy(PutIfAbsentMapMergePolicy.class.getName()))\r\n````\r\nto the mapconfig worked. I consider this as a workaround because\r\n\r\n- having no specific merge policy should not lead to a timeout\r\n- having no specific merge policy should be possible if the the map does not already exist\r\n\r\nThanks for your support.\r\n"}}
{"actor":{"display_login":"saimonsez"}}