Развертывание кластера отката wildfly 9 и infinispan

У меня есть сервер Wildfly 9 с 2 узлами и 2 JVM на узлы (2 физических сервера на каждую 2 JVM,4 JVM). На данный момент конфигурация только с одной группой серверов.

Проблема в том, что когда у нас только одна Война в группе серверов, и мы пытаемся ее повторно развернуть (горячее развертывание), у нас возникает ошибка, и происходит откат, мы имеем бесконечно длительную ошибку, но когда в группе серверов происходит 2 разных войны, повторное развертывание каждой один работает отлично. Мы используем UDP и конфигурацию по умолчанию для бесконечности, мы проверили TCPPING, и у нас тоже есть ошибка. мы стремимся иметь 2 группы серверов с одним приложением на каждом.. мы отмечаем, что это происходит, когда у нас более 2 JVMS, даже если у нас есть 2 физических сервера и 1 JVM, это работает...

бесконечность и EJB конф

  <subsystem xmlns="urn:jboss:domain:ejb3:3.0">
            <session-bean>
                <stateless>
                    <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
                </stateless>
                <stateful default-access-timeout="5000" cache-ref="distributable" passivation-disabled-cache-ref="simple"/>
                <singleton default-access-timeout="5000"/>
            </session-bean>
            <mdb>
                <resource-adapter-ref resource-adapter-name="${ejb.resource-adapter-name:hornetq-ra.rar}"/>
                <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
            </mdb>
            <pools>
                <bean-instance-pools>
                    <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                    <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                </bean-instance-pools>
            </pools>
            <caches>
                <cache name="simple"/>
                <cache name="distributable" passivation-store-ref="infinispan" aliases="passivating clustered"/>
            </caches>
            <passivation-stores>
                <passivation-store name="infinispan" cache-container="ejb" max-size="10000"/>
            </passivation-stores>
            <async thread-pool-name="default"/>
            <timer-service thread-pool-name="default" default-data-store="default-file-store">
                <data-stores>
                    <file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/>
                </data-stores>
            </timer-service>
            <remote connector-ref="http-remoting-connector" thread-pool-name="default"/>
            <thread-pools>
                <thread-pool name="default">
                    <max-threads count="10"/>
                    <keepalive-time time="100" unit="milliseconds"/>
                </thread-pool>
            </thread-pools>
            <iiop enable-by-default="false" use-qualified-name="false"/>
            <default-security-domain value="AofRealm"/>
            <default-missing-method-permissions-deny-access value="true"/>
    <statistics enabled="true"/>
            <log-system-exceptions value="true"/>
        </subsystem>
        <subsystem xmlns="urn:jboss:domain:io:1.1">
            <worker name="default"/>
            <buffer-pool name="default"/>
        </subsystem>
        <subsystem xmlns="urn:jboss:domain:infinispan:3.0">
            <cache-container name="server" default-cache="default" module="org.wildfly.clustering.server" aliases="singleton cluster" statistics-enabled="true">
                <transport lock-timeout="60000"/>
                <replicated-cache name="default" mode="SYNC">
                    <transaction mode="BATCH"/>
                </replicated-cache>
            </cache-container>
            <cache-container name="web" default-cache="dist" module="org.wildfly.clustering.web.infinispan" statistics-enabled="true">
                <transport channel="ee" lock-timeout="60000"/>
                <distributed-cache name="dist" mode="ASYNC" owners="2" l1-lifespan="0">
                    <locking isolation="REPEATABLE_READ"/>
                    <transaction mode="BATCH"/>
                    <file-store/>
                </distributed-cache>
            </cache-container>
            <cache-container name="ejb" default-cache="dist" module="org.wildfly.clustering.ejb.infinispan" aliases="sfsb" statistics-enabled="true">
                <transport channel="ee" lock-timeout="60000"/>
                <distributed-cache name="dist" mode="ASYNC" owners="2" l1-lifespan="0">
                    <locking isolation="REPEATABLE_READ"/>
                    <transaction mode="BATCH"/>
                    <file-store/>
                </distributed-cache>
            </cache-container>
            <cache-container name="hibernate" default-cache="local-query" module="org.hibernate.infinispan" statistics-enabled="true">
                <transport lock-timeout="60000"/>
                <local-cache name="local-query">
                    <eviction strategy="LRU" max-entries="10000"/>
                    <expiration max-idle="100000"/>
                </local-cache>
                <invalidation-cache name="entity" mode="SYNC">
                    <transaction mode="NON_XA"/>
                    <eviction strategy="LRU" max-entries="10000"/>
                    <expiration max-idle="100000"/>
                </invalidation-cache>
                <replicated-cache name="timestamps" mode="ASYNC"/>
            </cache-container>
        </subsystem>

и журналы:

2018-01-19 14:53:23,268 INFO  [org.jboss.weld.deployer] (MSC service thread 
1-8) WFLYWELD0010: Stopping weld service for deployment test.war
2018-01-19 14:53:23,272 INFO  [org.activiti.cdi.impl.ActivitiExtension] (MSC 
service thread 1-8) Shutting down activiti-cdi
2018-01-19 14:53:23,366 INFO  
[org.infinispan.eviction.impl.PassivationManagerImpl] (ServerService Thread 
Pool -- 978) ISPN000029: Passivating all entries to disk
2018-01-19 14:53:23,367 INFO  
[org.infinispan.eviction.impl.PassivationManagerImpl] (ServerService Thread 
Pool -- 978) ISPN000030: Passivated 0 entries in 1 milliseconds
2018-01-19 14:53:23,372 INFO  [org.jboss.as.clustering.infinispan] 
(ServerService Thread Pool -- 978) WFLYCLINF0003: Stopped dist cache from 
ejb 
container
2018-01-19 14:53:23,375 INFO  
[org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service 
thread 1-5) ISPN000080: Disconnecting JGroups channel ejb
 2018-01-19 14:53:23,375 INFO  
[org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service 
thread 1-5) ISPN000082: Stopping the RpcDispatcher for channel ejb
2018-01-19 14:53:24,667 INFO  [org.jboss.as.server.deployment] (MSC service 
thread 1-8) WFLYSRV0028: Stopped deployment AofWeb.war (runtime-name: 
test.war) in 1696ms
 2018-01-19 14:53:24,668 ERROR [org.jboss.as.controller.management-
operation] 
(ServerService Thread Pool -- 621) WFLYCTL0190: Step handler 
org.jboss.as.server.deployment.DeploymentHandlerUtil$4@bc9a838 for operation 
{"operation" => "full-replace-deployment","address" => [],"name" => 
"AofWeb.war","runtime-name" => "AofWeb.war","enabled" => true,"content" => 
[{"hash" => bytes { 0x01, 0x56, 0x3a, 0xf4, 0x22, 0x94, 0x2f, 0xc5, 0x47, 
0x3b, 0x6c, 0x3c, 0x33, 0x68, 0x60, 0xdd, 0x75, 0xeb, 0xa0, 0x0c 
}}],"operation-headers" => {"access-mechanism" => "HTTP","domain-uuid" => 
"c81e29d9-3f08-450a-ab92-19f5619b0d58","push-to-servers" => 
undefined},"persistent" => true,"owner" => undefined} at address [] failed 
handling operation rollback -- java.util.NoSuchElementException: No child 
'name' exists: java.util.NoSuchElementException: No child 'name' exists
at org.jboss.dmr.ModelValue.requireChild(ModelValue.java:377)
at org.jboss.dmr.ObjectModelValue.requireChild(ObjectModelValue.java:299)
at org.jboss.dmr.ModelNode.require(ModelNode.java:870)   

на другом узле:

2018-01-19 14:53:17,651 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 993) MSC000001: Failed to start service jboss.infinispan.ejb.dist: org.jboss.msc.service.StartException in service jboss.infinispan.ejb.dist: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.statetransfer.StateTransferManagerImpl.waitForInitialStateTransferToComplete() throws java.lang.Exception on object of type StateTransferManagerImpl
at org.wildfly.clustering.service.AsynchronousServiceBuilder$1.run(AsynchronousServiceBuilder.java:107)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: org.infinispan.commons.CacheException: Unable to invoke method 
public void 

org.infinispan.statetransfer.StateTransferManagerImpl.waitForInitialStateTransferToComplete() throws java.lang.Exception on object of type StateTransferManagerImpl
at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:171)
at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:869)
at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:638)
at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:627)
at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:530)
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:218)
at org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:850)
at org.infinispan.cache.impl.AbstractDelegatingCache.start(AbstractDelegatingCache.java:327)
at org.wildfly.clustering.infinispan.spi.service.CacheBuilder.start(CacheBuilder.java:80)
at org.wildfly.clustering.service.AsynchronousServiceBuilder$1.run(AsynchronousServiceBuilder.java:102)
... 4 more

Вызывается: org.infinispan.commons.CacheException: истекло время ожидания передачи начального состояния для кэша dist на master:pre-master-one на org.infinispan.statetransfer.StateTransferManagerImpl.waitForInitialStateTransferToComplete(StateTransferManagerImpl.jative.hof.horef2).invoke0(собственный метод) в sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) в sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.javajlan.ho.j.f.j.f.:497) на сайте org.infinispan.commons.util.ReflectionUtil.invokeAccessbly(ReflectionUtil.java:168) ... еще 13

2018-01-19 14:53:17,711 ИНФОРМАЦИЯ [org.jboss.as.webservices] (поток службы MSC 1-4) WFLYWS0004: остановка службы jboss.ws.endpoint."AofWeb.war"."Com.real.aof.webservice.email.AofEmailWsService" `

и другой узел

2018-01-19 14:26:38,583 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 225) WFLYCTL0190: Step handler org.jboss.as.server.deployment.DeploymentHandlerUtil$4@2eba0a01 for operation {"operation" => "full-replace-deployment","address" => [],"name" => "AofWeb.war","runtime-name" => "test.war","enabled" => true,"content" => [{"hash" => bytes { 0x01, 0x56, 0x3a, 0xf4, 0x22, 0x94, 0x2f, 0xc5, 0x47, 0x3b, 0x6c, 0x3c, 0x33, 0x68, 0x60, 0xdd, 0x75, 0xeb, 0xa0, 0x0c }}],"operation-headers" => {"access-mechanism" => "HTTP","domain-uuid" => "9ce34bde-9560-4e3a-9dbc-16604611ea8b","push-to-servers" => undefined},"persistent" => true,"owner" => undefined} at address [] failed handling operation rollback -- java.util.NoSuchElementException: No child 'name' exists: java.util.NoSuchElementException: No child 'name' exists

любая идея?

0 ответов

Другие вопросы по тегам