[ https://issues.apache.org/jira/browse/SCB-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
liubao resolved SCB-1930. ------------------------- Resolution: Fixed > When MicroserivceVersions.setInstances continues fail will cause OOM > -------------------------------------------------------------------- > > Key: SCB-1930 > URL: https://issues.apache.org/jira/browse/SCB-1930 > Project: Apache ServiceComb > Issue Type: Bug > Components: Java-Chassis > Reporter: liubao > Assignee: liubao > Priority: Major > Fix For: java-chassis-2.1.0 > > > Stack traces: > > {code:java} > ERROR - [MicroserviceVersions.java:safeSetInstances:170] - [req0000001] - > Failed to setInstances, appId=WiseConference, > microserviceName=ConferenceControl.ERROR - > [MicroserviceVersions.java:safeSetInstances:170] - [req0000001] - Failed to > setInstances, appId=WiseConference, > microserviceName=ConferenceControl.java.lang.Error: Param count is not equal > between swagger and method, > path=null;operation=ConferenceControl.media-schedule-client-channel.queryP2PChannel > at > org.apache.servicecomb.common.rest.definition.RestOperationMeta.init(RestOperationMeta.java:100) > ~[common-rest-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.common.rest.locator.ServicePathManager.addSchema(ServicePathManager.java:86) > ~[common-rest-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.common.rest.RestEngineSchemaListener.onSchemaLoaded(RestEngineSchemaListener.java:54) > ~[common-rest-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.core.definition.loader.SchemaListenerManager.notifySchemaListener(SchemaListenerManager.java:59) > ~[java-chassis-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.core.definition.loader.SchemaListenerManager.notifySchemaListener(SchemaListenerManager.java:48) > ~[java-chassis-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.core.definition.MicroserviceVersionMeta.<init>(MicroserviceVersionMeta.java:46) > ~[java-chassis-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.core.definition.MicroserviceVersionMetaFactory.create(MicroserviceVersionMetaFactory.java:38) > ~[java-chassis-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.lambda$setInstances$0(MicroserviceVersions.java:188) > ~[service-registry-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) > ~[?:1.8.0_212] at > org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx.computeIfAbsent(ConcurrentHashMapEx.java:56) > ~[foundation-common-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.setInstances(MicroserviceVersions.java:187) > ~[service-registry-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.safeSetInstances(MicroserviceVersions.java:167) > ~[service-registry-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.pullInstances(MicroserviceVersions.java:162) > ~[service-registry-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.submitPull(MicroserviceVersions.java:134) > ~[service-registry-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.lambda$getOrCreateMicroserviceVersions$0(MicroserviceManager.java:55) > ~[service-registry-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) > ~[?:1.8.0_212] at > org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx.computeIfAbsent(ConcurrentHashMapEx.java:56) > ~[foundation-common-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.getOrCreateMicroserviceVersions(MicroserviceManager.java:53) > ~[service-registry-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.getOrCreateMicroserviceVersionRule(MicroserviceManager.java:80) > ~[service-registry-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.serviceregistry.consumer.AppManager.getOrCreateMicroserviceVersionRule(AppManager.java:67) > ~[service-registry-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.core.provider.consumer.ReferenceConfig.<init>(ReferenceConfig.java:40) > ~[java-chassis-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.core.provider.consumer.ConsumerProviderManager.createReferenceConfig(ConsumerProviderManager.java:56) > ~[java-chassis-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.core.provider.consumer.ConsumerProviderManager.createReferenceConfig(ConsumerProviderManager.java:87) > ~[java-chassis-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) > ~[?:1.8.0_212] at > org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx.computeIfAbsent(ConcurrentHashMapEx.java:56) > ~[foundation-common-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.core.provider.consumer.ConsumerProviderManager.getReferenceConfig(ConsumerProviderManager.java:91) > ~[java-chassis-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.core.SCBEngine.getReferenceConfigForInvoke(SCBEngine.java:346) > ~[java-chassis-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.provider.pojo.Invoker.findReferenceConfig(Invoker.java:120) > ~[provider-pojo-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.provider.pojo.Invoker.createInvokerMeta(Invoker.java:89) > ~[provider-pojo-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.provider.pojo.Invoker.invoke(Invoker.java:130) > ~[provider-pojo-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > com.sun.proxy.$Proxy95.queryChannel(Unknown Source) ~[?:?] at > com.huawei.wisecloud.conference.control.manager.JoinConferenceServiceImpl.handleJoinConferenceRsp(JoinConferenceServiceImpl.java:120) > ~[wisecloud.conference.control.service-1.0.3.100.jar!/:?] at > com.huawei.wisecloud.conference.control.manager.JoinConferenceServiceImpl.joinConference(JoinConferenceServiceImpl.java:114) > ~[wisecloud.conference.control.service-1.0.3.100.jar!/:?] at > com.huawei.wisecloud.conference.control.service.InConferenceController.joinConference(InConferenceController.java:259) > ~[wisecloud.conference.control.service-1.0.3.100.jar!/:?] at > sun.reflect.GeneratedMethodAccessor354.invoke(Unknown Source) ~[?:?] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[?:1.8.0_212] at java.lang.reflect.Method.invoke(Method.java:498) > ~[?:1.8.0_212] at > org.apache.servicecomb.swagger.engine.SwaggerProducerOperation.doInvoke(SwaggerProducerOperation.java:180) > ~[swagger-invocation-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.swagger.engine.SwaggerProducerOperation.syncInvoke(SwaggerProducerOperation.java:165) > ~[swagger-invocation-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.swagger.engine.SwaggerProducerOperation.invoke(SwaggerProducerOperation.java:119) > ~[swagger-invocation-core-1.2.0.B007r7.jar!/:1.2.0.B007r7] at > org.apache.servicecomb.core.handler.impl.ProducerOperationHandler.handle(ProducerOperationHandler.java:40){code} > > > -- This message was sent by Atlassian Jira (v8.3.4#803005)