You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/10/20 15:25:33 UTC

[GitHub] [dubbo] zrlw opened a new issue #9079: FrameworkModel的onDestroy方法销毁dubbo协议之后有时集成测试案例会失败

zrlw opened a new issue #9079:
URL: https://github.com/apache/dubbo/issues/9079


   * Dubbo version: 3.0
   
   ```
   2021-10-20T13:28:53.6306484Z Running org.apache.dubbo.samples.version.VersionServiceStarIT 
   <== 开始测试VersionServiceStarIT 
   ...
   
   2021-10-20T13:28:53.6558073Z [20/10/21 01:28:12:012 UTC] main  INFO model.FrameworkModel:  [DUBBO] Dubbo framework[1] is destroying ..., dubbo version: 3.0.4-SNAPSHOT, current host: 192.168.160.5
   <== 开始销毁DubboProtocol ( @BeforeClass的DubboBootstrap.reset()语句)
   
   2021-10-20T13:28:53.6559810Z [20/10/21 01:28:12:012 UTC] main  INFO dubbo.DubboProtocol:  [DUBBO] Destroying protocol [DubboProtocol] ..., dubbo version: 3.0.4-SNAPSHOT, current host: 192.168.160.5
   2021-10-20T13:28:53.6577037Z [20/10/21 01:28:12:012 UTC] main  INFO model.FrameworkModel:  [DUBBO] Dubbo framework[1] is destroyed, dubbo version: 3.0.4-SNAPSHOT, current host: 192.168.160.5
   2021-10-20T13:28:53.6578732Z [20/10/21 01:28:12:012 UTC] main  INFO resource.GlobalResourcesRepository:  [DUBBO] Destroying global resources ..., dubbo version: 3.0.4-SNAPSHOT, current host: 192.168.160.5
   2021-10-20T13:28:53.6580622Z [20/10/21 01:28:12:012 UTC] main  INFO resource.GlobalResourcesRepository:  [DUBBO] Dubbo is completely destroyed, dubbo version: 3.0.4-SNAPSHOT, current host: 192.168.160.5
   <== 销毁完毕
   
   <== 然后开始测试就直接抛DubboProtocol is destroyed异常
   2021-10-20T13:28:53.6694315Z [20/10/21 01:28:13:013 UTC] main ERROR integration.RegistryDirectory:  [DUBBO] Failed to refer invoker for interface:interface org.apache.dubbo.samples.version.api.VersionService,url:(dubbo://192.168.160.3:20880/org.apache.dubbo.samples.version.api.VersionService?anyhost=true&application=version-provider&background=false&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.samples.version.api.VersionService&metadata-type=remote&methods=sayHello&release=3.0.4-SNAPSHOT&revision=1.0.0&service-name-mapping=true&side=provider&token=1de93a01-b8f8-4f81-aa28-653b638e83ed&version=1.0.0)DubboProtocol is destroyed, dubbo version: 3.0.4-SNAPSHOT, current host: 192.168.160.5
   2021-10-20T13:28:53.6699094Z java.lang.IllegalStateException: DubboProtocol is destroyed
   2021-10-20T13:28:53.6700889Z 	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.checkDestroyed(DubboProtocol.java:346)
   2021-10-20T13:28:53.6703229Z 	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.refer(DubboProtocol.java:421)
   2021-10-20T13:28:53.6705268Z 	at org.apache.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:85)
   2021-10-20T13:28:53.6707565Z 	at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:77)
   2021-10-20T13:28:53.6710150Z 	at org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:74)
   2021-10-20T13:28:53.6712930Z 	at org.apache.dubbo.rpc.protocol.ProtocolSerializationWrapper.refer(ProtocolSerializationWrapper.java:52)
   2021-10-20T13:28:53.6714976Z 	at org.apache.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java)
   2021-10-20T13:28:53.6716909Z 	at org.apache.dubbo.registry.integration.RegistryDirectory.toInvokers(RegistryDirectory.java:376)
   2021-10-20T13:28:53.6719727Z 	at org.apache.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:235)
   2021-10-20T13:28:53.6723032Z 	at org.apache.dubbo.registry.integration.RegistryDirectory.refreshOverrideAndInvoker(RegistryDirectory.java:187)
   2021-10-20T13:28:53.6726085Z 	at org.apache.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:164)
   2021-10-20T13:28:53.6728400Z 	at org.apache.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:439)
   2021-10-20T13:28:53.6730626Z 	at org.apache.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:371)
   2021-10-20T13:28:53.6732859Z 	at org.apache.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:363)
   2021-10-20T13:28:53.6816166Z 	at org.apache.dubbo.registry.zookeeper.ZookeeperRegistry.doSubscribe(ZookeeperRegistry.java:190)
   2021-10-20T13:28:53.6818703Z 	at org.apache.dubbo.registry.support.FailbackRegistry.subscribe(FailbackRegistry.java:298)
   2021-10-20T13:28:53.6821130Z 	at org.apache.dubbo.registry.ListenerRegistryWrapper.subscribe(ListenerRegistryWrapper.java:109)
   2021-10-20T13:28:53.6823746Z 	at org.apache.dubbo.registry.integration.RegistryDirectory.subscribe(RegistryDirectory.java:119)
   2021-10-20T13:28:53.6826502Z 	at org.apache.dubbo.registry.integration.RegistryProtocol.doCreateInvoker(RegistryProtocol.java:560)
   2021-10-20T13:28:53.6830203Z 	at org.apache.dubbo.registry.integration.InterfaceCompatibleRegistryProtocol.getInvoker(InterfaceCompatibleRegistryProtocol.java:58)
   2021-10-20T13:28:53.6834332Z 	at org.apache.dubbo.registry.client.migration.MigrationInvoker.refreshInterfaceInvoker(MigrationInvoker.java:448)
   2021-10-20T13:28:53.6838444Z 	at org.apache.dubbo.registry.client.migration.MigrationInvoker.migrateToApplicationFirstInvoker(MigrationInvoker.java:239)
   2021-10-20T13:28:53.6842415Z 	at org.apache.dubbo.registry.client.migration.MigrationRuleHandler.refreshInvoker(MigrationRuleHandler.java:73)
   2021-10-20T13:28:53.6845753Z 	at org.apache.dubbo.registry.client.migration.MigrationRuleHandler.doMigrate(MigrationRuleHandler.java:57)
   2021-10-20T13:28:53.6848930Z 	at org.apache.dubbo.registry.client.migration.MigrationRuleListener.onRefer(MigrationRuleListener.java:241)
   2021-10-20T13:28:53.6852265Z 	at org.apache.dubbo.registry.integration.RegistryProtocol.interceptInvoker(RegistryProtocol.java:529)
   2021-10-20T13:28:53.6855117Z 	at org.apache.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:498)
   2021-10-20T13:28:53.6857492Z 	at org.apache.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:483)
   2021-10-20T13:28:53.6860176Z 	at org.apache.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:83)
   2021-10-20T13:28:53.6862490Z 	at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:74)
   2021-10-20T13:28:53.6865071Z 	at org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:71)
   2021-10-20T13:28:53.6867853Z 	at org.apache.dubbo.rpc.protocol.ProtocolSerializationWrapper.refer(ProtocolSerializationWrapper.java:52)
   2021-10-20T13:28:53.6870057Z 	at org.apache.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java)
   2021-10-20T13:28:53.6872000Z 	at org.apache.dubbo.config.ReferenceConfig.createInvokerForRemote(ReferenceConfig.java:474)
   2021-10-20T13:28:53.6874192Z 	at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:379)
   2021-10-20T13:28:53.6875945Z 	at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:266)
   2021-10-20T13:28:53.6877534Z 	at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:203)
   2021-10-20T13:28:53.6879403Z 	at org.apache.dubbo.config.utils.SimpleReferenceCache.get(SimpleReferenceCache.java:117)
   2021-10-20T13:28:53.6881786Z 	at org.apache.dubbo.config.deploy.DefaultModuleDeployer.lambda$referServices$6(DefaultModuleDeployer.java:326)
   2021-10-20T13:28:53.6883898Z 	at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4707)
   2021-10-20T13:28:53.6886142Z 	at org.apache.dubbo.config.deploy.DefaultModuleDeployer.referServices(DefaultModuleDeployer.java:306)
   2021-10-20T13:28:53.6888758Z 	at org.apache.dubbo.config.deploy.DefaultModuleDeployer.start(DefaultModuleDeployer.java:146)
   2021-10-20T13:28:53.6892449Z 	at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextRefreshedEvent(DubboDeployApplicationListener.java:108)
   2021-10-20T13:28:53.6897335Z 	at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:98)
   2021-10-20T13:28:53.6901894Z 	at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:44)
   
   ```
   https://github.com/apache/dubbo/runs/3951950812?check_suite_focus=true


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952471825


   ```
   [INFO] [27/10/21 09:53:30:532 CST] ERROR model.ScopeModel:  [DUBBO] Error happened when destroying ScopeModel., dubbo version: 3.0.5-SNAPSHOT, current host: 192.168.1.23
   [INFO] java.lang.IllegalStateException: Not all application models are completely destroyed, remaining 1 application models may be created during destruction: [ApplicationModel-26.1]
   [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.checkApplicationDestroy(FrameworkModel.java:124)
   [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.onDestroy(FrameworkModel.java:94)
   [INFO] 	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:105)
   [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.destroyAll(FrameworkModel.java:160)
   [INFO] 	at org.apache.dubbo.test.check.DubboTestChecker.executionFinished(DubboTestChecker.java:224)
   [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.lambda$executionFinished$10(TestExecutionListenerRegistry.java:109)
   [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.lambda$notifyEach$1(TestExecutionListenerRegistry.java:67)
   [INFO] 	at java.util.ArrayList.forEach(ArrayList.java:1259)
   [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.notifyEach(TestExecutionListenerRegistry.java:65)
   [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.access$200(TestExecutionListenerRegistry.java:32)
   [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.executionFinished(TestExecutionListenerRegistry.java:108)
   [INFO] 	at org.junit.platform.launcher.core.ExecutionListenerAdapter.executionFinished(ExecutionListenerAdapter.java:56)
   [INFO] 	at org.junit.platform.launcher.core.DelegatingEngineExecutionListener.executionFinished(DelegatingEngineExecutionListener.java:46)
   [INFO] 	at org.junit.platform.launcher.core.OutcomeDelayingEngineExecutionListener.executionFinished(OutcomeDelayingEngineExecutionListener.java:63)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.reportCompletion(NodeTestTask.java:179)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:85)
   [INFO] 	at java.util.ArrayList.forEach(ArrayList.java:1259)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   [INFO] 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
   [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)
   [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)
   [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)
   [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)
   [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)
   [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:188)
   [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
   [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:128)
   [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
   [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
   [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
   [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
   [ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.146 s <<< FAILURE! - in org.apache.dubbo.registry.client.migration.MigrationRuleListenerTest
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-955664729


   现在ServiceConfigTest.testDelayExport第222行抛RejectedExecution:
   ```
   Error:  org.apache.dubbo.config.ServiceConfigTest.testDelayExport  Time elapsed: 0.351 s  <<< ERROR!
   java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@33a910c5 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@2e7c932c[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
   	at org.apache.dubbo.config.ServiceConfigTest.testDelayExport(ServiceConfigTest.java:222)
   ```
   github构建也经常遇到,比如:
   https://github.com/apache/dubbo/runs/4058917480?check_suite_focus=true
   https://github.com/apache/dubbo/runs/4058917494?check_suite_focus=true
   根源是ServiceConfig的doDelayExport()方法执行异常:
   ```
       protected void doDelayExport() {
           getScopeModel().getDefaultExtension(ExecutorRepository.class).getServiceExportExecutor()
               .schedule(() -> {
                   try {
                       doExport();
                   } catch (Exception e) {
                       logger.error("Failed to export service config: " + interfaceName, e);
                   }
               }, getDelay(), TimeUnit.MILLISECONDS);
       }
   ```
   可能是MultiInstanceTest导致的,MultiInstanceTest有线程泄露


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950351995


   下面再说一下github单元测试的问题,如下所示,启动一个新的测试类的时候开始释放全局资源了,然后导致无休止的Failed to load service metadata:
   ```
   2021-10-24T14:57:05.3959123Z [INFO] Running org.apache.dubbo.registry.client.migration.MigrationRuleListenerTest
   2021-10-24T14:57:08.1420853Z [24/10/21 14:57:05:567 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo framework[19] is destroying ..., dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1422428Z [24/10/21 14:57:05:567 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo framework[19] is destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1424017Z [24/10/21 14:57:05:567 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Destroying global resources ..., dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1426081Z [24/10/21 14:57:05:567 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Dubbo is completely destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   ...
   2021-10-24T14:57:08.1445495Z [24/10/21 14:57:06:123 UTC] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to load service metadata, meta type is local, dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   <== 开始无休止的Failed to load service metadata
   2021-10-24T14:57:08.1446797Z java.lang.NullPointerException
   2021-10-24T14:57:08.1449183Z 	at org.apache.dubbo.registry.client.metadata.StandardMetadataServiceURLBuilder.build(StandardMetadataServiceURLBuilder.java:87)
   ```
   具体内容见:https://github.com/apache/dubbo/runs/3989352973?check_suite_focus=true


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951843086


   destroy需要加上ServiceInstancesChangedListener的destroy,否则AddressRefreshRetryTask会一直运行,导致后续测试类执行失败:
   ```
   [INFO] Running org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest
   [INFO] [26/10/21 10:48:33:099 UTC]  WARN listener.ServiceInstancesChangedListener:  [DUBBO] Received address refresh retry event, 1635245303041, dubbo version: 3.0.5-SNAPSHOT, current host: 172.31.192.1
   <== 这个AddressRefreshRetryTask是前面的ServiceInstancesChangedListenerTest创建的
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-956085280


   更新2021-11-02: 下面的问题可能都是 #9185 导致的。
   1. NPE at org.apache.dubbo.rpc.model.ApplicationModel.onDestroy(ApplicationModel.java:255)
   2. IllegalStateException at org.apache.dubbo.rpc.model.FrameworkModel.checkDestroyed(FrameworkModel.java:257)
   3. NPE at org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test(DefaultMigrationAddressComparatorTest.java:83)
   
   ```
   2021-11-01T09:29:56.8368167Z [INFO] Running org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest
   2021-11-01T09:29:56.8372225Z [DubboTestChecker] Run test method: org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest#test
   2021-11-01T09:29:57.3850014Z [INFO] [01/11/21 09:29:57:255 UTC]  WARN listener.ServiceInstancesChangedListener:  [DUBBO] Received address refresh retry event, 1635758987187, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.4474706Z [INFO] [01/11/21 09:29:57:302 UTC]  WARN listener.ServiceInstancesChangedListener:  [DUBBO] Retrying address notification..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.4912968Z [INFO] [01/11/21 09:29:57:465 UTC]  INFO migration.DefaultMigrationAddressComparator:  [DUBBO] No instance address available, stop compare., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5006954Z [INFO] [01/11/21 09:29:57:468 UTC]  INFO migration.DefaultMigrationAddressComparator:  [DUBBO] No interface address available, stop compare., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5012279Z [INFO] [01/11/21 09:29:57:473 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from null to Dubbo Application[22.0](unknown), dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5034212Z [INFO] [01/11/21 09:29:57:474 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[22.0](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5036248Z [INFO] [01/11/21 09:29:57:464 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from null to Dubbo Framework[22], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5037972Z [INFO] [01/11/21 09:29:57:489 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5253170Z [INFO] [01/11/21 09:29:57:491 UTC]  INFO model.FrameworkModel:  [DUBBO] Destroying default framework model: Dubbo Framework[22], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5283856Z [INFO] [01/11/21 09:29:57:491 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is destroying ..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5288063Z [INFO] [01/11/21 09:29:57:492 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from Dubbo Application[22.0](unknown) to null, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5314733Z [INFO] [01/11/21 09:29:57:492 UTC] ERROR model.ScopeModel:  [DUBBO] Error happened when destroying ScopeModel., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5316630Z [INFO] java.lang.NullPointerException
   2021-11-01T09:29:57.5318763Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.onDestroy(ApplicationModel.java:255)
   2021-11-01T09:29:57.5327542Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:108)
   2021-11-01T09:29:57.5329957Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.onDestroy(FrameworkModel.java:113)
   2021-11-01T09:29:57.5331977Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:108)
   2021-11-01T09:29:57.5396105Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.destroyAll(FrameworkModel.java:191)
   2021-11-01T09:29:57.5399043Z [INFO] 	at org.apache.dubbo.test.check.DubboTestChecker.executionFinished(DubboTestChecker.java:224)
   2021-11-01T09:29:57.5402410Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.lambda$executionFinished$10(TestExecutionListenerRegistry.java:109)
   2021-11-01T09:29:57.6126030Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.lambda$notifyEach$1(TestExecutionListenerRegistry.java:67)
   2021-11-01T09:29:57.6192054Z [INFO] 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   2021-11-01T09:29:57.6195195Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.notifyEach(TestExecutionListenerRegistry.java:65)
   2021-11-01T09:29:57.6198609Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.access$200(TestExecutionListenerRegistry.java:32)
   2021-11-01T09:29:57.6202334Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.executionFinished(TestExecutionListenerRegistry.java:108)
   2021-11-01T09:29:57.6205993Z [INFO] 	at org.junit.platform.launcher.core.ExecutionListenerAdapter.executionFinished(ExecutionListenerAdapter.java:56)
   2021-11-01T09:29:57.6209704Z [INFO] 	at org.junit.platform.launcher.core.DelegatingEngineExecutionListener.executionFinished(DelegatingEngineExecutionListener.java:46)
   2021-11-01T09:29:57.6214176Z [INFO] 	at org.junit.platform.launcher.core.OutcomeDelayingEngineExecutionListener.executionFinished(OutcomeDelayingEngineExecutionListener.java:63)
   2021-11-01T09:29:57.6218067Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.reportCompletion(NodeTestTask.java:179)
   2021-11-01T09:29:57.6220817Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:85)
   2021-11-01T09:29:57.6222744Z [INFO] 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   2021-11-01T09:29:57.6228400Z [INFO] 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
   2021-11-01T09:29:57.6232453Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
   2021-11-01T09:29:57.6302426Z [INFO] 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   2021-11-01T09:29:57.6305699Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
   2021-11-01T09:29:57.6308183Z [INFO] 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
   2021-11-01T09:29:57.6310647Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
   2021-11-01T09:29:57.6313738Z [INFO] 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   2021-11-01T09:29:57.6317051Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
   2021-11-01T09:29:57.6320053Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
   2021-11-01T09:29:57.6327453Z [INFO] 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
   2021-11-01T09:29:57.6332779Z [INFO] 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   2021-11-01T09:29:57.6336286Z [INFO] 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
   2021-11-01T09:29:57.6338980Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)
   2021-11-01T09:29:57.6341036Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)
   2021-11-01T09:29:57.6343553Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)
   2021-11-01T09:29:57.6345995Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)
   2021-11-01T09:29:57.6348034Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)
   2021-11-01T09:29:57.6350497Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:188)
   2021-11-01T09:29:57.6353828Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
   2021-11-01T09:29:57.6357010Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:128)
   2021-11-01T09:29:57.6359648Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
   2021-11-01T09:29:57.6361849Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
   2021-11-01T09:29:57.6363694Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
   2021-11-01T09:29:57.6365415Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
   2021-11-01T09:29:57.6366913Z [INFO] [01/11/21 09:29:57:496 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6368526Z [INFO] [01/11/21 09:29:57:508 UTC] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to load service metadata, meta type is local, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6370073Z [INFO] java.lang.IllegalStateException: FrameworkModel is destroyed
   2021-11-01T09:29:57.6371663Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.checkDestroyed(FrameworkModel.java:257)
   2021-11-01T09:29:57.6374015Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.addApplication(FrameworkModel.java:224)
   2021-11-01T09:29:57.6376021Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.<init>(ApplicationModel.java:203)
   2021-11-01T09:29:57.6377750Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.initialize(FrameworkModel.java:91)
   2021-11-01T09:29:57.6379829Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.<init>(FrameworkModel.java:77)
   2021-11-01T09:29:57.6381788Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.defaultModel(FrameworkModel.java:169)
   2021-11-01T09:29:57.6385378Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.defaultModel(ApplicationModel.java:93)
   2021-11-01T09:29:57.6388229Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModelUtil.getOrDefaultApplicationModel(ScopeModelUtil.java:64)
   2021-11-01T09:29:57.6390912Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModelUtil.getApplicationModel(ScopeModelUtil.java:59)
   2021-11-01T09:29:57.6393684Z [INFO] 	at org.apache.dubbo.registry.client.ServiceInstance.getOrDefaultApplicationModel(ServiceInstance.java:103)
   2021-11-01T09:29:57.6396521Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.referProxy(MetadataUtils.java:81)
   2021-11-01T09:29:57.6399207Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.lambda$getMetadataServiceProxy$0(MetadataUtils.java:67)
   2021-11-01T09:29:57.6401910Z [INFO] 	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
   2021-11-01T09:29:57.6425235Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.getMetadataServiceProxy(MetadataUtils.java:67)
   2021-11-01T09:29:57.6429434Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.doGetMetadataInfo(ServiceInstancesChangedListener.java:379)
   2021-11-01T09:29:57.6434446Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.getRemoteMetadata(ServiceInstancesChangedListener.java:330)
   2021-11-01T09:29:57.6439047Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:143)
   2021-11-01T09:29:57.6443918Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener$AddressRefreshRetryTask.run(ServiceInstancesChangedListener.java:493)
   2021-11-01T09:29:57.6446773Z [INFO] 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   2021-11-01T09:29:57.6448073Z [INFO] 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   2021-11-01T09:29:57.6449942Z [INFO] 	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
   2021-11-01T09:29:57.6452140Z [INFO] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   2021-11-01T09:29:57.6453987Z [INFO] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   2021-11-01T09:29:57.6455206Z [INFO] 	at java.base/java.lang.Thread.run(Thread.java:829)
   2021-11-01T09:29:57.6456790Z [INFO] [01/11/21 09:29:57:510 UTC] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to get MetadataInfo for instance 30.10.0.8:20880?revision=444&cluster=default, wait for retry., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6458613Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from Dubbo Framework[22] to null, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6460134Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Destroying global resources ..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6461754Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Dubbo is completely destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6463306Z [INFO] [01/11/21 09:29:57:530 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from null to Dubbo Framework[23], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6464836Z [INFO] [01/11/21 09:29:57:530 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[23] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6466131Z [INFO] [01/11/21 09:29:57:535 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[23.0](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6467375Z [INFO] [01/11/21 09:29:57:535 UTC]  INFO model.ScopeModel:  [DUBBO] Dubbo Module[23.0.0] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6469126Z [INFO] [01/11/21 09:29:57:542 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6471516Z [INFO] [01/11/21 09:29:57:545 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6474386Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from null to Dubbo Application[23.1](unknown), dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6476243Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[23.1](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6477676Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.ScopeModel:  [DUBBO] Dubbo Module[23.1.0] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6479448Z [INFO] [01/11/21 09:29:57:552 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6485027Z [INFO] [01/11/21 09:29:57:553 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6488630Z [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.692 s <<< FAILURE! - in org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest
   2021-11-01T09:29:57.6492111Z [ERROR] org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test  Time elapsed: 0.66 s  <<< ERROR!
   2021-11-01T09:29:57.6494343Z java.lang.NullPointerException
   2021-11-01T09:29:57.6496881Z 	at org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test(DefaultMigrationAddressComparatorTest.java:83)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw closed issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw closed issue #9079:
URL: https://github.com/apache/dubbo/issues/9079


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-954603607


   请提供具体的操作系统版本和jdk版本号,我尝试是否可以重现问题。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952476651


   
   ```
   [ERROR] Errors: 
   [ERROR]   RegistryFactoryWrapperTest.<init>:27 ? NullPointer
   [ERROR]   MigrationRuleListenerTest.test:82 NullPointer
   [ERROR]   MigrationRuleListenerTest.testWithConfigurationListenerAndLocalRule:152 NullPointer
   [ERROR]   MigrationRuleListenerTest.testWithInitAndNoLocalRule:114 NullPointer
   [ERROR]   DynamicDirectoryTest.testSimplifiedUrl:69 ? NullPointer
   [ERROR]   DynamicDirectoryTest.testSubscribe:134 ? NullPointer
   [ERROR]   RegistryProtocolTest.testConsumerUrlWithProtocol:182 ? NullPointer
   [ERROR]   RegistryProtocolTest.testConsumerUrlWithoutProtocol:115 ? NullPointer
   [ERROR]   RegistryProtocolTest.testInterceptInvokerForCustomRegistryProtocolListener:453 ? NullPointer
   [ERROR]   RegistryProtocolTest.testInterceptInvokerForMigrationRuleListener:387 ? NullPointer
   [ERROR]   RegistryProtocolTest.testReferWithGroup:313 ? NullPointer
   [ERROR]   RegistryProtocolTest.testReferWithoutGroup:251 ? NullPointer
   [ERROR]   RegistryProtocolTest.testRegisterConsumerUrl:501 ? NullPointer
   [ERROR]   AbstractRegistryFactoryTest.testDestroyAllRegistries:119 ? IllegalState Unable...
   [ERROR]   AbstractRegistryFactoryTest.testRegistryFactoryCache:95 ? IllegalState Unable ...
   [ERROR]   AbstractRegistryFactoryTest.testRegistryFactoryGroupCache:112 ? IllegalState U...
   [ERROR]   AbstractRegistryTest.after:86 ? NullPointer
   [ERROR]   AbstractRegistryTest.destroyTest:506 ? NullPointer
   [ERROR]   AbstractRegistryTest.after:86 ? NullPointer
   ```
   拿dubbo-registry-api这个工程做mvn install验证吧,它的问题貌似最多。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952470567


   
   ```
   [INFO] [27/10/21 09:53:30:482 CST] ERROR model.ScopeModel:  [DUBBO] Error happened when destroying ScopeModel., dubbo version: 3.0.5-SNAPSHOT, current host: 192.168.1.23
   [INFO] java.lang.NullPointerException
   [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.onDestroy(ApplicationModel.java:237)
   [INFO] 	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:105)
   [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.reset(ApplicationModel.java:181)
   [INFO] 	at org.apache.dubbo.registry.client.migration.MigrationRuleListenerTest.test(MigrationRuleListenerTest.java:81)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw removed a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw removed a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950355054


   看日志感觉是GlobalResourcesRepository的destroy处理过程有异步操作,没有等到异步操作完成就开始执行后面的测试代码导致的各种问题。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950351995


   下面是github单元测试出问题场景,很明显也是启动一个新的测试类的时候开始释放前面测试类的全局资源了,然后导致正在启动的测试类陷入无限循环等待:
   
   ```
   2021-10-24T14:57:05.3959123Z [INFO] Running org.apache.dubbo.registry.client.migration.MigrationRuleListenerTest
   2021-10-24T14:57:08.1420853Z [24/10/21 14:57:05:567 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo framework[19] is destroying ..., dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1422428Z [24/10/21 14:57:05:567 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo framework[19] is destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1424017Z [24/10/21 14:57:05:567 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Destroying global resources ..., dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1426081Z [24/10/21 14:57:05:567 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Dubbo is completely destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   ```
   具体内容见:https://github.com/apache/dubbo/runs/3989352973?check_suite_focus=true


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 集成测试一个测试类在执行FrameworkModel的onDestroy方法时,正在启动的其他测试类会启动失败

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950351995


   下面这个是github单元测试出问题场景之一:
   ```
   2021-10-24T14:57:05.3959123Z [INFO] Running org.apache.dubbo.registry.client.migration.MigrationRuleListenerTest
   2021-10-24T14:57:08.1420853Z [24/10/21 14:57:05:567 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo framework[19] is destroying ..., dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1422428Z [24/10/21 14:57:05:567 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo framework[19] is destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1424017Z [24/10/21 14:57:05:567 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Destroying global resources ..., dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1426081Z [24/10/21 14:57:05:567 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Dubbo is completely destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   ```
   全部日志:https://github.com/apache/dubbo/runs/3989352973?check_suite_focus=true


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951632210


   > ConfigurationUtils#getCachedDynamicProperty方法有时会NPE,看了一下代码,
   
   具体是什么错误?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951634535


   ```
   java.lang.NullPointerException
   	at org.apache.dubbo.registry.client.InstanceAddressURL.getScopeModel(InstanceAddressURL.java:498)
   	at org.apache.dubbo.remoting.transport.dispatcher.WrappedChannelHandler.getSharedExecutorService(WrappedChannelHandler.java:137)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-955664729


   现在ServiceConfigTest.testDelayExport第222行抛RejectedExecution:
   ```
   Error:  org.apache.dubbo.config.ServiceConfigTest.testDelayExport  Time elapsed: 0.351 s  <<< ERROR!
   java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@33a910c5 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@2e7c932c[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
   	at org.apache.dubbo.config.ServiceConfigTest.testDelayExport(ServiceConfigTest.java:222)
   ```
   github构建也经常遇到,比如:
   https://github.com/apache/dubbo/runs/4058917480?check_suite_focus=true
   https://github.com/apache/dubbo/runs/4058917494?check_suite_focus=true
   根源是ServiceConfig的doDelayExport()方法执行异常:
   ```
       protected void doDelayExport() {
           getScopeModel().getDefaultExtension(ExecutorRepository.class).getServiceExportExecutor()
               .schedule(() -> {
                   try {
                       doExport();
                   } catch (Exception e) {
                       logger.error("Failed to export service config: " + interfaceName, e);
                   }
               }, getDelay(), TimeUnit.MILLISECONDS);
       }
   ```
   可能是getServiceExportExecutor获取到的executor正在做shutdown,获取方法的同步机制有缺陷。
   #9015 试着改了一下getServiceExportExecutor,把同步锁提前到了方法入口,目前看这么修改是有效的,无论本机构建还是github构建,这个问题尚未再出现过。
   初步分析是ServiceConfigTest的代码执行顺序发生了重排,导致修改前的getServiceExportExecutor返回了正在做shutdown的executor。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951886059


   > java.lang.NullPointerException
   > 	at org.apache.dubbo.registry.client.InstanceAddressURL.getScopeModel(InstanceAddressURL.java:498)
   > 	at org.apache.dubbo.remoting.transport.dispatcher.WrappedChannelHandler.getSharedExecutorService(WrappedChannelHandler.java:137)
   
   这个问题应该解决了 https://github.com/apache/dubbo/pull/9129#commits-pushed-b712a5f


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950447553


   #8954 尝试在FrameworkModel的addApplication和tryDestroy之间加了互斥锁,貌似也不能解决这个问题。
   看日志是每个测试类的测试方法都在并行执行,很多集成测试类的方法并行执行都会有问题,比如集成测试dubbo-samples-nacos-override的DemoServiceIT的两个测试方法并行执行:
   https://github.com/zrlw/dubbo/runs/3991744097?check_suite_focus=true
   ```
   Running org.apache.dubbo.samples.governance.DemoServiceIT
   [25/10/21 01:27:07:007 UTC] main  INFO deploy.DefaultModuleDeployer:  [DUBBO] Dubbo module[1.1.0] has been initialized!, dubbo version: 3.0.4-SNAPSHOT, current host: 172.23.0.4
   <== 启动两个测试方法中的1个
   [25/10/21 01:27:07:007 UTC] main  INFO deploy.DefaultModuleDeployer:  [DUBBO] Dubbo module[1.1.1] has been initialized!, dubbo version: 3.0.4-SNAPSHOT, current host: 172.23.0.4
   <== 同时又启动两个测试方法中的另1个
   ```
   结果两个方法都将超时时间增加到了6秒:
   ```
   All Consumers that consume the service org.apache.dubbo.samples.governance.api.DemoService will increase the timeout value to 6000
   ```
   导致其中验证超时异常的testWithoutRule方法没有出现超时异常而失败。
   
   不知道从什么时候开始,github执行测试类的各个方法开始并行执行了,从测试代码看,全部搞并行执行显然是有问题的。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951946724


   Please check it again with https://github.com/apache/dubbo/pull/9129


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950950186


   > 我能想到的只有spring事件积压了,到了启动test3的时候,DefaultApplicationDeployer的preDestroy才开始处理test1和test2的close事件
   
   不存在这样的问题,另外在Test中是主动destroy framework,看起来与这个问题有关: https://github.com/apache/dubbo/issues/9127


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950917847


   我看了dubbo samples的代码,有点明白AlbumenJ 说的意思了,他可能说这些测试类应该在各自的```@AfterClass```方法里加上
   ```DubboBootstrap.reset();```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950574802


   #8954 一顿操作之后貌似问题(包括 #9115 ) 都解决了,我主要改的地方有两处:
   1. GlobalResourcesRepository的Executor只能随用随取,原来是静态初始化,github构建总是陷入死循环,不停地输出ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to load service metadata,具体因果关系我还没搞明白。
   2. FrameworkModel的addApplication和tryDestroy之间加了互斥锁,启动和销毁的操作排队串行处理(这个已删除,发现两个方法上都已经有了synchronized修饰符,在同一个FrameworkModel对象执行上述方法自动就排队了)。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951731250


   > dubbo-samples-version 的 GlobalResourcesRepository 因素其实不是根本问题,根本问题应该是在前一个测试类退出后应该清理 defaultFrameworkModel 状态的,但是没清空,导致后续测试类使用了被污染的 FrameworkModel
   
   我在dubbo-samples提交了一个pr,这个问题实际上对master分支影响更大,因为master分支很多类都有static boolean destroyed成员,如果不重置,那么下一个测试类启动的时候看到这些destroyed是true会导致很多诡异的问题。
   https://github.com/apache/dubbo-samples/pull/384


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951455889


   > 请测试这个pr #9129 是否解决此问题。 checkout pr,本地编译一下clean install -DskipTests,修改版本号为3.0.5-SNAPSHOT
   
   本机dubbo-samples-version集成测试ok,但是ReferenceAnnotationBeanPostProcessorTest会hang在main  INFO netty4.NettyChannel:  [DUBBO] Close netty channel


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951455889


   > 请测试这个pr #9129 是否解决此问题。 checkout pr,本地编译一下clean install -DskipTests,修改版本号为3.0.5-SNAPSHOT
   
   本机dubbo-samples-version集成测试ok


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951455889


   > 请测试这个pr #9129 是否解决此问题。 checkout pr,本地编译一下clean install -DskipTests,修改版本号为3.0.5-SNAPSHOT
   
   本机测试ok


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952468993


   很多这样的
   ```
   [INFO] java.lang.IllegalStateException
   [INFO] [27/10/21 09:53:03:376 CST] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to get MetadataInfo for instance 30.10.0.8:20880?revision=444&cluster=default, wait for retry., dubbo version: 3.0.5-SNAPSHOT, current host: 192.168.1.23
   [INFO] [27/10/21 09:53:04:377 CST] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to load service metadata, meta type is local, dubbo version: 3.0.5-SNAPSHOT, current host: 192.168.1.23
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw removed a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw removed a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951731250


   > dubbo-samples-version 的 GlobalResourcesRepository 因素其实不是根本问题,根本问题应该是在前一个测试类退出后应该清理 defaultFrameworkModel 状态的,但是没清空,导致后续测试类使用了被污染的 FrameworkModel
   
   我在dubbo-samples提交了一个pr,这个问题实际上对master分支影响更大,因为master分支很多类都有static boolean destroyed成员,如果不重置,那么下一个测试类启动的时候看到这些destroyed是true会导致很多诡异的问题。
   https://github.com/apache/dubbo-samples/pull/384


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951634081


   ```
   [INFO] java.lang.NullPointerException
   [INFO] 	at org.apache.dubbo.common.config.ConfigurationUtils.getCachedDynamicProperty(ConfigurationUtils.java:132)
   [INFO] 	at org.apache.dubbo.registry.client.migration.model.MigrationRule.getStep(MigrationRule.java:183)
   [INFO] 	at org.apache.dubbo.registry.client.migration.MigrationRuleHandler.doMigrate(MigrationRuleHandler.java:51)
   [INFO] 	at org.apache.dubbo.registry.client.migration.MigrationRuleHandlerTest.test(MigrationRuleHandlerTest.java:41)
   ```
   我看github构建也有
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-955664729


   现在ServiceConfigTest.testDelayExport第222行抛RejectedExecution:
   ```
   Error:  org.apache.dubbo.config.ServiceConfigTest.testDelayExport  Time elapsed: 0.351 s  <<< ERROR!
   java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@33a910c5 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@2e7c932c[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
   	at org.apache.dubbo.config.ServiceConfigTest.testDelayExport(ServiceConfigTest.java:222)
   ```
   github构建也经常遇到,比如:
   https://github.com/apache/dubbo/runs/4058917480?check_suite_focus=true
   https://github.com/apache/dubbo/runs/4058917494?check_suite_focus=true
   根源是ServiceConfig的doDelayExport()方法执行异常:
   ```
       protected void doDelayExport() {
           getScopeModel().getDefaultExtension(ExecutorRepository.class).getServiceExportExecutor()
               .schedule(() -> {
                   try {
                       doExport();
                   } catch (Exception e) {
                       logger.error("Failed to export service config: " + interfaceName, e);
                   }
               }, getDelay(), TimeUnit.MILLISECONDS);
       }
   ```
   可能是getServiceExportExecutor获取到的executor正在做shutdown,获取方法的同步机制有缺陷。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950447553


   #8954 尝试在FrameworkModel的addApplication和tryDestroy之间加了互斥锁,貌似能够解决这个问题。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951611982


   重新pull了一下 pr 9129, 现在ReferenceAnnotationBeanPostProcessorTest没问题了。
   新问题:
   ConfigurationUtils#getCachedDynamicProperty方法有时会NPE,看了一下代码,
   ConfigurationCache configurationCache = scopeModel.getBeanFactory().getBean(ConfigurationCache.class);
   有时返回null


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950767563


   ![image](https://user-images.githubusercontent.com/5483385/138674770-8c380e6e-a050-47d2-b203-b6a6a789dead.png)
   It seems something wrong,  destroy application 1 and 2 and framework when starting application 3, lead to incomplete resources.
   running test 1 -> start application 1 -> run test method 
   -> running test 2 -> start application 2 -> run test method 
   -> running test 3 -> new application 3 
   -> destroy application 1 and 2 -> destroy framework 
   -> start application 3 (at this moment, the framework model is destroyed, so get every thing of framework is destroyed)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952470938


   ```
   [INFO] [27/10/21 09:53:30:521 CST] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to load service metadata, meta type is local, dubbo version: 3.0.5-SNAPSHOT, current host: 192.168.1.23
   [INFO] java.lang.IllegalArgumentException: ModuleServiceRepository can not be null
   [INFO] 	at org.apache.dubbo.common.utils.Assert.notNull(Assert.java:27)
   [INFO] 	at org.apache.dubbo.rpc.model.ModuleModel.<init>(ModuleModel.java:55)
   [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.initialize(ApplicationModel.java:198)
   [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.<init>(ApplicationModel.java:192)
   [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.newApplication(FrameworkModel.java:165)
   [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.defaultApplication(FrameworkModel.java:178)
   [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.defaultModel(ApplicationModel.java:86)
   [INFO] 	at org.apache.dubbo.rpc.model.ScopeModelUtil.getOrDefaultApplicationModel(ScopeModelUtil.java:64)
   [INFO] 	at org.apache.dubbo.rpc.model.ScopeModelUtil.getApplicationModel(ScopeModelUtil.java:59)
   [INFO] 	at org.apache.dubbo.registry.client.ServiceInstance.getOrDefaultApplicationModel(ServiceInstance.java:103)
   [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.referProxy(MetadataUtils.java:81)
   [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.lambda$getMetadataServiceProxy$0(MetadataUtils.java:67)
   [INFO] 	at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
   [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.getMetadataServiceProxy(MetadataUtils.java:67)
   [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.doGetMetadataInfo(ServiceInstancesChangedListener.java:378)
   [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.getRemoteMetadata(ServiceInstancesChangedListener.java:329)
   [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:143)
   [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener$AddressRefreshRetryTask.run(ServiceInstancesChangedListener.java:492)
   [INFO] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   [INFO] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   [INFO] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
   [INFO] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
   [INFO] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   [INFO] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   [INFO] 	at java.lang.Thread.run(Thread.java:748)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-954871602


   Some relative prs: 
   https://github.com/apache/dubbo/pull/9165
   https://github.com/apache/dubbo/pull/9161
   https://github.com/apache/dubbo/pull/9164


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-956085280


   更新2021-11-02: 下面的问题可能都是 #9185 导致的。
   1. NPE at org.apache.dubbo.rpc.model.ApplicationModel.onDestroy(ApplicationModel.java:255)
   2. IllegalStateException at org.apache.dubbo.rpc.model.FrameworkModel.checkDestroyed(FrameworkModel.java:257)
   3. NPE at org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test(DefaultMigrationAddressComparatorTest.java:83)
   
   ```
   2021-11-01T09:29:56.8368167Z [INFO] Running org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest
   2021-11-01T09:29:56.8372225Z [DubboTestChecker] Run test method: org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest#test
   2021-11-01T09:29:57.3850014Z [INFO] [01/11/21 09:29:57:255 UTC]  WARN listener.ServiceInstancesChangedListener:  [DUBBO] Received address refresh retry event, 1635758987187, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.4474706Z [INFO] [01/11/21 09:29:57:302 UTC]  WARN listener.ServiceInstancesChangedListener:  [DUBBO] Retrying address notification..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.4912968Z [INFO] [01/11/21 09:29:57:465 UTC]  INFO migration.DefaultMigrationAddressComparator:  [DUBBO] No instance address available, stop compare., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5006954Z [INFO] [01/11/21 09:29:57:468 UTC]  INFO migration.DefaultMigrationAddressComparator:  [DUBBO] No interface address available, stop compare., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5012279Z [INFO] [01/11/21 09:29:57:473 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from null to Dubbo Application[22.0](unknown), dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5034212Z [INFO] [01/11/21 09:29:57:474 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[22.0](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5036248Z [INFO] [01/11/21 09:29:57:464 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from null to Dubbo Framework[22], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5037972Z [INFO] [01/11/21 09:29:57:489 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5253170Z [INFO] [01/11/21 09:29:57:491 UTC]  INFO model.FrameworkModel:  [DUBBO] Destroying default framework model: Dubbo Framework[22], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5283856Z [INFO] [01/11/21 09:29:57:491 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is destroying ..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5288063Z [INFO] [01/11/21 09:29:57:492 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from Dubbo Application[22.0](unknown) to null, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5314733Z [INFO] [01/11/21 09:29:57:492 UTC] ERROR model.ScopeModel:  [DUBBO] Error happened when destroying ScopeModel., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5316630Z [INFO] java.lang.NullPointerException
   2021-11-01T09:29:57.5318763Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.onDestroy(ApplicationModel.java:255)
   2021-11-01T09:29:57.5327542Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:108)
   2021-11-01T09:29:57.5329957Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.onDestroy(FrameworkModel.java:113)
   2021-11-01T09:29:57.5331977Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:108)
   2021-11-01T09:29:57.5396105Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.destroyAll(FrameworkModel.java:191)
   2021-11-01T09:29:57.5399043Z [INFO] 	at org.apache.dubbo.test.check.DubboTestChecker.executionFinished(DubboTestChecker.java:224)
   2021-11-01T09:29:57.5402410Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.lambda$executionFinished$10(TestExecutionListenerRegistry.java:109)
   2021-11-01T09:29:57.6126030Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.lambda$notifyEach$1(TestExecutionListenerRegistry.java:67)
   2021-11-01T09:29:57.6192054Z [INFO] 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   2021-11-01T09:29:57.6195195Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.notifyEach(TestExecutionListenerRegistry.java:65)
   2021-11-01T09:29:57.6198609Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.access$200(TestExecutionListenerRegistry.java:32)
   2021-11-01T09:29:57.6202334Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.executionFinished(TestExecutionListenerRegistry.java:108)
   2021-11-01T09:29:57.6205993Z [INFO] 	at org.junit.platform.launcher.core.ExecutionListenerAdapter.executionFinished(ExecutionListenerAdapter.java:56)
   2021-11-01T09:29:57.6209704Z [INFO] 	at org.junit.platform.launcher.core.DelegatingEngineExecutionListener.executionFinished(DelegatingEngineExecutionListener.java:46)
   2021-11-01T09:29:57.6214176Z [INFO] 	at org.junit.platform.launcher.core.OutcomeDelayingEngineExecutionListener.executionFinished(OutcomeDelayingEngineExecutionListener.java:63)
   2021-11-01T09:29:57.6218067Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.reportCompletion(NodeTestTask.java:179)
   2021-11-01T09:29:57.6220817Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:85)
   2021-11-01T09:29:57.6222744Z [INFO] 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   2021-11-01T09:29:57.6228400Z [INFO] 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
   2021-11-01T09:29:57.6232453Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
   2021-11-01T09:29:57.6302426Z [INFO] 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   2021-11-01T09:29:57.6305699Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
   2021-11-01T09:29:57.6308183Z [INFO] 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
   2021-11-01T09:29:57.6310647Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
   2021-11-01T09:29:57.6313738Z [INFO] 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   2021-11-01T09:29:57.6317051Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
   2021-11-01T09:29:57.6320053Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
   2021-11-01T09:29:57.6327453Z [INFO] 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
   2021-11-01T09:29:57.6332779Z [INFO] 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   2021-11-01T09:29:57.6336286Z [INFO] 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
   2021-11-01T09:29:57.6338980Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)
   2021-11-01T09:29:57.6341036Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)
   2021-11-01T09:29:57.6343553Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)
   2021-11-01T09:29:57.6345995Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)
   2021-11-01T09:29:57.6348034Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)
   2021-11-01T09:29:57.6350497Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:188)
   2021-11-01T09:29:57.6353828Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
   2021-11-01T09:29:57.6357010Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:128)
   2021-11-01T09:29:57.6359648Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
   2021-11-01T09:29:57.6361849Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
   2021-11-01T09:29:57.6363694Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
   2021-11-01T09:29:57.6365415Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
   2021-11-01T09:29:57.6366913Z [INFO] [01/11/21 09:29:57:496 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6368526Z [INFO] [01/11/21 09:29:57:508 UTC] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to load service metadata, meta type is local, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6370073Z [INFO] java.lang.IllegalStateException: FrameworkModel is destroyed
   2021-11-01T09:29:57.6371663Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.checkDestroyed(FrameworkModel.java:257)
   2021-11-01T09:29:57.6374015Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.addApplication(FrameworkModel.java:224)
   2021-11-01T09:29:57.6376021Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.<init>(ApplicationModel.java:203)
   2021-11-01T09:29:57.6377750Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.initialize(FrameworkModel.java:91)
   2021-11-01T09:29:57.6379829Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.<init>(FrameworkModel.java:77)
   2021-11-01T09:29:57.6381788Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.defaultModel(FrameworkModel.java:169)
   2021-11-01T09:29:57.6385378Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.defaultModel(ApplicationModel.java:93)
   2021-11-01T09:29:57.6388229Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModelUtil.getOrDefaultApplicationModel(ScopeModelUtil.java:64)
   2021-11-01T09:29:57.6390912Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModelUtil.getApplicationModel(ScopeModelUtil.java:59)
   2021-11-01T09:29:57.6393684Z [INFO] 	at org.apache.dubbo.registry.client.ServiceInstance.getOrDefaultApplicationModel(ServiceInstance.java:103)
   2021-11-01T09:29:57.6396521Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.referProxy(MetadataUtils.java:81)
   2021-11-01T09:29:57.6399207Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.lambda$getMetadataServiceProxy$0(MetadataUtils.java:67)
   2021-11-01T09:29:57.6401910Z [INFO] 	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
   2021-11-01T09:29:57.6425235Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.getMetadataServiceProxy(MetadataUtils.java:67)
   2021-11-01T09:29:57.6429434Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.doGetMetadataInfo(ServiceInstancesChangedListener.java:379)
   2021-11-01T09:29:57.6434446Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.getRemoteMetadata(ServiceInstancesChangedListener.java:330)
   2021-11-01T09:29:57.6439047Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:143)
   2021-11-01T09:29:57.6443918Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener$AddressRefreshRetryTask.run(ServiceInstancesChangedListener.java:493)
   2021-11-01T09:29:57.6446773Z [INFO] 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   2021-11-01T09:29:57.6448073Z [INFO] 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   2021-11-01T09:29:57.6449942Z [INFO] 	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
   2021-11-01T09:29:57.6452140Z [INFO] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   2021-11-01T09:29:57.6453987Z [INFO] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   2021-11-01T09:29:57.6455206Z [INFO] 	at java.base/java.lang.Thread.run(Thread.java:829)
   2021-11-01T09:29:57.6456790Z [INFO] [01/11/21 09:29:57:510 UTC] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to get MetadataInfo for instance 30.10.0.8:20880?revision=444&cluster=default, wait for retry., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6458613Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from Dubbo Framework[22] to null, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6460134Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Destroying global resources ..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6461754Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Dubbo is completely destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6463306Z [INFO] [01/11/21 09:29:57:530 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from null to Dubbo Framework[23], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6464836Z [INFO] [01/11/21 09:29:57:530 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[23] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6466131Z [INFO] [01/11/21 09:29:57:535 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[23.0](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6467375Z [INFO] [01/11/21 09:29:57:535 UTC]  INFO model.ScopeModel:  [DUBBO] Dubbo Module[23.0.0] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6469126Z [INFO] [01/11/21 09:29:57:542 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6471516Z [INFO] [01/11/21 09:29:57:545 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6474386Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from null to Dubbo Application[23.1](unknown), dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6476243Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[23.1](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6477676Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.ScopeModel:  [DUBBO] Dubbo Module[23.1.0] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6479448Z [INFO] [01/11/21 09:29:57:552 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6485027Z [INFO] [01/11/21 09:29:57:553 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6488630Z [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.692 s <<< FAILURE! - in org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest
   2021-11-01T09:29:57.6492111Z [ERROR] org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test  Time elapsed: 0.66 s  <<< ERROR!
   2021-11-01T09:29:57.6494343Z java.lang.NullPointerException
   2021-11-01T09:29:57.6496881Z 	at org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test(DefaultMigrationAddressComparatorTest.java:83)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950523428


   dubbo-samples-version 的 GlobalResourcesRepository 因素其实不是根本问题,根本问题应该是在前一个测试类退出后应该清理 defaultFrameworkModel 状态的,但是没清空,导致后续测试类使用了被污染的 FrameworkModel


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952638737


   > 拿dubbo-registry-api这个工程做mvn install验证吧,它的问题貌似最多。
   
   具体是怎么测试的?单测跑通了,没发现有这么多错误 https://github.com/apache/dubbo/pull/9129/checks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951062166


   请测试这个pr #9129 是否解决此问题。
   checkout pr,本地编译一下clean install -DskipTests,修改版本号为3.0.5-SNAPSHOT


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952458559


   mvn test有时出现很多NPE,比如:
   ```
   java.lang.NullPointerException
   	at org.apache.dubbo.registry.support.AbstractRegistryTest.after(AbstractRegistryTest.java:86)
   ```
   但是junit test单独测试AbstractRegistryTest很正常,可能还是全局资源释放还有问题


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950360731


   可能是spring通知ContextClosedEvent事件存在时延,收到迟到的通知之后GlobalResourcesRepository开始去释放全局资源时,另一个测试类已经开始启动了,这样搞到一起并行执行就会出各种问题。
   虽然现实中这种场景可能不多,但基于事件通知搞全局资源管理还是存在并行风险。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952664425


   > > 拿dubbo-registry-api这个工程做mvn install验证吧,它的问题貌似最多。
   > 
   > 具体是怎么测试的?单测跑通了,没发现有这么多错误 https://github.com/apache/dubbo/pull/9129/checks
   
   就是pull了最新代码,重复做mvn clean install,两台Windows机器,一台有时出现上述问题,一台没有出现过。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-954674230


   > 请提供具体的操作系统版本和jdk版本号,我尝试是否可以重现问题。
   
   出问题的那个是64位win7,jdk1.8.0_131,不过现在pull更新了代码之后,原来的问题没有再出现,但是冒出了新问题,看了github构建日志,也有:
   https://github.com/apache/dubbo/runs/4042205535?check_suite_focus=true
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-955692625


   貌似DefaultExecutorRepository的serviceExportExecutor的scope应该改成framework,不应该随着每个application进行shutdown


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-955664729


   现在ServiceConfigTest.testDelayExport第222行抛RejectedExecution:
   ```
   Error:  org.apache.dubbo.config.ServiceConfigTest.testDelayExport  Time elapsed: 0.351 s  <<< ERROR!
   java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@33a910c5 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@2e7c932c[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
   	at org.apache.dubbo.config.ServiceConfigTest.testDelayExport(ServiceConfigTest.java:222)
   ```
   github构建也经常遇到,比如:
   https://github.com/apache/dubbo/runs/4058917480?check_suite_focus=true
   https://github.com/apache/dubbo/runs/4058917494?check_suite_focus=true
   根源是ServiceConfig的doDelayExport()方法执行异常:
   ```
       protected void doDelayExport() {
           getScopeModel().getDefaultExtension(ExecutorRepository.class).getServiceExportExecutor()
               .schedule(() -> {
                   try {
                       doExport();
                   } catch (Exception e) {
                       logger.error("Failed to export service config: " + interfaceName, e);
                   }
               }, getDelay(), TimeUnit.MILLISECONDS);
       }
   ```
   可能是MultiInstanceTest.testAsyncExportAndReferServices导致的,MultiInstanceTest有线程泄露


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952943080


   都是Windows,jdk8,只是一台8核,一台4核


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-955664729


   现在ServiceConfigTest.testDelayExport第222行抛RejectedExecution:
   ```
   Error:  org.apache.dubbo.config.ServiceConfigTest.testDelayExport  Time elapsed: 0.351 s  <<< ERROR!
   java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@33a910c5 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@2e7c932c[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
   	at org.apache.dubbo.config.ServiceConfigTest.testDelayExport(ServiceConfigTest.java:222)
   ```
   github构建也经常遇到,比如:
   https://github.com/apache/dubbo/runs/4058917480?check_suite_focus=true
   https://github.com/apache/dubbo/runs/4058917494?check_suite_focus=true
   根源是ServiceConfig的doDelayExport()方法执行异常:
   ```
       protected void doDelayExport() {
           getScopeModel().getDefaultExtension(ExecutorRepository.class).getServiceExportExecutor()
               .schedule(() -> {
                   try {
                       doExport();
                   } catch (Exception e) {
                       logger.error("Failed to export service config: " + interfaceName, e);
                   }
               }, getDelay(), TimeUnit.MILLISECONDS);
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-956085280


   更新2021-11-02: 下面的问题可能都是 #9185 导致的。
   1. NPE at org.apache.dubbo.rpc.model.ApplicationModel.onDestroy(ApplicationModel.java:255)
   2. IllegalStateException at org.apache.dubbo.rpc.model.FrameworkModel.checkDestroyed(FrameworkModel.java:257)
   3. NPE at org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test(DefaultMigrationAddressComparatorTest.java:83)
   
   ```
   2021-11-01T09:29:56.8368167Z [INFO] Running org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest
   2021-11-01T09:29:56.8372225Z [DubboTestChecker] Run test method: org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest#test
   2021-11-01T09:29:57.3850014Z [INFO] [01/11/21 09:29:57:255 UTC]  WARN listener.ServiceInstancesChangedListener:  [DUBBO] Received address refresh retry event, 1635758987187, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.4474706Z [INFO] [01/11/21 09:29:57:302 UTC]  WARN listener.ServiceInstancesChangedListener:  [DUBBO] Retrying address notification..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.4912968Z [INFO] [01/11/21 09:29:57:465 UTC]  INFO migration.DefaultMigrationAddressComparator:  [DUBBO] No instance address available, stop compare., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5006954Z [INFO] [01/11/21 09:29:57:468 UTC]  INFO migration.DefaultMigrationAddressComparator:  [DUBBO] No interface address available, stop compare., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5012279Z [INFO] [01/11/21 09:29:57:473 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from null to Dubbo Application[22.0](unknown), dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5034212Z [INFO] [01/11/21 09:29:57:474 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[22.0](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5036248Z [INFO] [01/11/21 09:29:57:464 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from null to Dubbo Framework[22], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5037972Z [INFO] [01/11/21 09:29:57:489 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5253170Z [INFO] [01/11/21 09:29:57:491 UTC]  INFO model.FrameworkModel:  [DUBBO] Destroying default framework model: Dubbo Framework[22], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5283856Z [INFO] [01/11/21 09:29:57:491 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is destroying ..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5288063Z [INFO] [01/11/21 09:29:57:492 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from Dubbo Application[22.0](unknown) to null, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5314733Z [INFO] [01/11/21 09:29:57:492 UTC] ERROR model.ScopeModel:  [DUBBO] Error happened when destroying ScopeModel., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5316630Z [INFO] java.lang.NullPointerException
   2021-11-01T09:29:57.5318763Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.onDestroy(ApplicationModel.java:255)
   2021-11-01T09:29:57.5327542Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:108)
   2021-11-01T09:29:57.5329957Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.onDestroy(FrameworkModel.java:113)
   2021-11-01T09:29:57.5331977Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:108)
   2021-11-01T09:29:57.5396105Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.destroyAll(FrameworkModel.java:191)
   2021-11-01T09:29:57.5399043Z [INFO] 	at org.apache.dubbo.test.check.DubboTestChecker.executionFinished(DubboTestChecker.java:224)
   2021-11-01T09:29:57.5402410Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.lambda$executionFinished$10(TestExecutionListenerRegistry.java:109)
   2021-11-01T09:29:57.6126030Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.lambda$notifyEach$1(TestExecutionListenerRegistry.java:67)
   2021-11-01T09:29:57.6192054Z [INFO] 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   2021-11-01T09:29:57.6195195Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.notifyEach(TestExecutionListenerRegistry.java:65)
   2021-11-01T09:29:57.6198609Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.access$200(TestExecutionListenerRegistry.java:32)
   2021-11-01T09:29:57.6202334Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.executionFinished(TestExecutionListenerRegistry.java:108)
   2021-11-01T09:29:57.6205993Z [INFO] 	at org.junit.platform.launcher.core.ExecutionListenerAdapter.executionFinished(ExecutionListenerAdapter.java:56)
   2021-11-01T09:29:57.6209704Z [INFO] 	at org.junit.platform.launcher.core.DelegatingEngineExecutionListener.executionFinished(DelegatingEngineExecutionListener.java:46)
   2021-11-01T09:29:57.6214176Z [INFO] 	at org.junit.platform.launcher.core.OutcomeDelayingEngineExecutionListener.executionFinished(OutcomeDelayingEngineExecutionListener.java:63)
   2021-11-01T09:29:57.6218067Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.reportCompletion(NodeTestTask.java:179)
   2021-11-01T09:29:57.6220817Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:85)
   2021-11-01T09:29:57.6222744Z [INFO] 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   2021-11-01T09:29:57.6228400Z [INFO] 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
   2021-11-01T09:29:57.6232453Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
   2021-11-01T09:29:57.6302426Z [INFO] 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   2021-11-01T09:29:57.6305699Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
   2021-11-01T09:29:57.6308183Z [INFO] 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
   2021-11-01T09:29:57.6310647Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
   2021-11-01T09:29:57.6313738Z [INFO] 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   2021-11-01T09:29:57.6317051Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
   2021-11-01T09:29:57.6320053Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
   2021-11-01T09:29:57.6327453Z [INFO] 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
   2021-11-01T09:29:57.6332779Z [INFO] 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   2021-11-01T09:29:57.6336286Z [INFO] 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
   2021-11-01T09:29:57.6338980Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)
   2021-11-01T09:29:57.6341036Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)
   2021-11-01T09:29:57.6343553Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)
   2021-11-01T09:29:57.6345995Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)
   2021-11-01T09:29:57.6348034Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)
   2021-11-01T09:29:57.6350497Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:188)
   2021-11-01T09:29:57.6353828Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
   2021-11-01T09:29:57.6357010Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:128)
   2021-11-01T09:29:57.6359648Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
   2021-11-01T09:29:57.6361849Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
   2021-11-01T09:29:57.6363694Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
   2021-11-01T09:29:57.6365415Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
   2021-11-01T09:29:57.6366913Z [INFO] [01/11/21 09:29:57:496 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6368526Z [INFO] [01/11/21 09:29:57:508 UTC] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to load service metadata, meta type is local, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6370073Z [INFO] java.lang.IllegalStateException: FrameworkModel is destroyed
   2021-11-01T09:29:57.6371663Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.checkDestroyed(FrameworkModel.java:257)
   2021-11-01T09:29:57.6374015Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.addApplication(FrameworkModel.java:224)
   2021-11-01T09:29:57.6376021Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.<init>(ApplicationModel.java:203)
   2021-11-01T09:29:57.6377750Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.initialize(FrameworkModel.java:91)
   2021-11-01T09:29:57.6379829Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.<init>(FrameworkModel.java:77)
   2021-11-01T09:29:57.6381788Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.defaultModel(FrameworkModel.java:169)
   2021-11-01T09:29:57.6385378Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.defaultModel(ApplicationModel.java:93)
   2021-11-01T09:29:57.6388229Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModelUtil.getOrDefaultApplicationModel(ScopeModelUtil.java:64)
   2021-11-01T09:29:57.6390912Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModelUtil.getApplicationModel(ScopeModelUtil.java:59)
   2021-11-01T09:29:57.6393684Z [INFO] 	at org.apache.dubbo.registry.client.ServiceInstance.getOrDefaultApplicationModel(ServiceInstance.java:103)
   2021-11-01T09:29:57.6396521Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.referProxy(MetadataUtils.java:81)
   2021-11-01T09:29:57.6399207Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.lambda$getMetadataServiceProxy$0(MetadataUtils.java:67)
   2021-11-01T09:29:57.6401910Z [INFO] 	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
   2021-11-01T09:29:57.6425235Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.getMetadataServiceProxy(MetadataUtils.java:67)
   2021-11-01T09:29:57.6429434Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.doGetMetadataInfo(ServiceInstancesChangedListener.java:379)
   2021-11-01T09:29:57.6434446Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.getRemoteMetadata(ServiceInstancesChangedListener.java:330)
   2021-11-01T09:29:57.6439047Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:143)
   2021-11-01T09:29:57.6443918Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener$AddressRefreshRetryTask.run(ServiceInstancesChangedListener.java:493)
   2021-11-01T09:29:57.6446773Z [INFO] 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   2021-11-01T09:29:57.6448073Z [INFO] 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   2021-11-01T09:29:57.6449942Z [INFO] 	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
   2021-11-01T09:29:57.6452140Z [INFO] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   2021-11-01T09:29:57.6453987Z [INFO] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   2021-11-01T09:29:57.6455206Z [INFO] 	at java.base/java.lang.Thread.run(Thread.java:829)
   2021-11-01T09:29:57.6456790Z [INFO] [01/11/21 09:29:57:510 UTC] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to get MetadataInfo for instance 30.10.0.8:20880?revision=444&cluster=default, wait for retry., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6458613Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from Dubbo Framework[22] to null, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6460134Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Destroying global resources ..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6461754Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Dubbo is completely destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6463306Z [INFO] [01/11/21 09:29:57:530 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from null to Dubbo Framework[23], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6464836Z [INFO] [01/11/21 09:29:57:530 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[23] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6466131Z [INFO] [01/11/21 09:29:57:535 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[23.0](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6467375Z [INFO] [01/11/21 09:29:57:535 UTC]  INFO model.ScopeModel:  [DUBBO] Dubbo Module[23.0.0] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6469126Z [INFO] [01/11/21 09:29:57:542 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6471516Z [INFO] [01/11/21 09:29:57:545 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6474386Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from null to Dubbo Application[23.1](unknown), dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6476243Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[23.1](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6477676Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.ScopeModel:  [DUBBO] Dubbo Module[23.1.0] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6479448Z [INFO] [01/11/21 09:29:57:552 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6485027Z [INFO] [01/11/21 09:29:57:553 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6488630Z [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.692 s <<< FAILURE! - in org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest
   2021-11-01T09:29:57.6492111Z [ERROR] org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test  Time elapsed: 0.66 s  <<< ERROR!
   2021-11-01T09:29:57.6494343Z java.lang.NullPointerException
   2021-11-01T09:29:57.6496881Z 	at org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test(DefaultMigrationAddressComparatorTest.java:83)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-955664729


   现在ServiceConfigTest.testDelayExport第222行抛RejectedExecution:
   ```
   Error:  org.apache.dubbo.config.ServiceConfigTest.testDelayExport  Time elapsed: 0.351 s  <<< ERROR!
   java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@33a910c5 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@2e7c932c[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
   	at org.apache.dubbo.config.ServiceConfigTest.testDelayExport(ServiceConfigTest.java:222)
   ```
   github构建也经常遇到,比如:
   https://github.com/apache/dubbo/runs/4058917480?check_suite_focus=true
   https://github.com/apache/dubbo/runs/4058917494?check_suite_focus=true


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950917847


   我看了dubbo samples的代码,有点明白AlbumenJ 说的意思了,他可能说这些测试类应该在测试结束的@AfterClass里写上
   ```DubboBootstrap.reset();```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950767563


   ![image](https://user-images.githubusercontent.com/5483385/138674770-8c380e6e-a050-47d2-b203-b6a6a789dead.png)
   It seems something wrong,  destroy application 1 and 2 and framework when starting application 3, lead to incomplete resources.
   running test 1 -> start application 1.1 -> run test method 
   -> running test 2 -> start application 1.2 -> run test method 
   -> running test 3 -> 
   -> destroy application 1.1 and 1.2 -> destroy framework  1
   -> load spring context -> start application 1.3 and use destroyed framework 1
   (at this moment, the framework model [1] is destroyed, so get every thing of framework is destroyed)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950355054


   看日志感觉是GlobalResourcesRepository的destroy处理过程有异步操作,没有等到异步操作完成就开始执行后面的测试代码导致的各种问题。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw removed a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw removed a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950165690


   单元测试也存在类似的问题。github构建默认方式是并行执行UT,当测试类A结束后github的main线程会立即启动测试类B,但是测试A的全局资源可能还在销毁过程中,此时测试类B使用全局资源就会出现各种问题。
   比如 #8954 用了GlobalResourcesRepository的线程池之后的github单元测试结果这样:
   ```
   Error:  Failures: 
   Error:    DefaultFutureTest.interruptSend:158 expected: <null> but was: <org.apache.dubbo.remoting.exchange.support.DefaultFuture@b7a74ac[Not completed]>
   Error:    CloseTimerTaskTest.testClose:70 expected: <true> but was: <false>
   Error:    HeartBeatTaskTest.testHeartBeat:74 expected: <true> but was: <false>
   Error:    ReconnectTimerTaskTest.testReconnect:73 expected: <true> but was: <false>
   ```
   为了支持全局资源管理,我们可能需要将单元测试和集成测试的执行模式改为串行。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952460274


   另外集成测试dubbo-samples-nacos-tagrouter,dubbo-samples-nacos-override完成时间貌似变长了,超过250秒奔着300秒去了,github貌似IT设置的超时只有200秒。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950882862


   > ![image](https://user-images.githubusercontent.com/5483385/138674770-8c380e6e-a050-47d2-b203-b6a6a789dead.png) It seems something wrong, destroy application 1 and 2 and framework when starting application 3, lead to incomplete resources. running test 1 -> start application 1.1 -> run test method -> running test 2 -> start application 1.2 -> run test method -> running test 3 -> -> destroy application 1.1 and 1.2 -> destroy framework 1 -> load spring context -> start application 1.3 and use destroyed framework 1 (at this moment, the framework model [1] is destroyed, so get every thing of framework is destroyed)
   
   我能想到的只有spring事件积压了,到了启动test3的时候,DefaultApplicationDeployer的preDestroy才开始处理test1和test2的close事件:
   test1 end -> spring publish application close event ->  something block event process until test3 is starting ->
   DubboDeployApplicationListener#onContextClosedEvent -> ScopeModel#destroy -> ApplicationModel#onDestroy -> DefaultApplicationDeployer#preDestroy


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-951884089


   > destroy需要加上ServiceInstancesChangedListener的destroy,否则AddressRefreshRetryTask会一直运行,导致后续测试类执行失败:
   
   从代码来看,scheduler使用了Application的ExecutorRepository,这个组件会在应用关闭时shutdown 所持有的ExecutorService资源,不应该会一直执行。可以打开线程检查看一下是否所有线程被清理。
   ```
   mvn test -DcheckThreads=true
   ```
   
   ```java
   ...
           this.scheduler = ScopeModelUtil.getApplicationModel(serviceDiscovery == null || serviceDiscovery.getUrl() == null ? null : serviceDiscovery.getUrl().getScopeModel())
               .getExtensionLoader(ExecutorRepository.class).getDefaultExtension().getMetadataRetryExecutor();
   ...
           if (hasEmptyMetadata(newRevisionToMetadata)) {// retry every 10 seconds
               if (retryPermission.tryAcquire()) {
                   retryFuture = scheduler.schedule(new AddressRefreshRetryTask(retryPermission, event.getServiceName()), 10_000L, TimeUnit.MILLISECONDS);
                   logger.warn("Address refresh try task submitted.");
               }
               logger.error("Address refresh failed because of Metadata Server failure, wait for retry or new address refresh event.");
               return;
           }
   ...
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950351995


   下面再说一下github单元测试的问题,如下所示,很明显也是启动一个新的测试类的时候开始释放前面测试类的全局资源了,然后导致正在启动的测试类陷入无限循环等待:
   
   ```
   2021-10-24T14:57:05.3959123Z [INFO] Running org.apache.dubbo.registry.client.migration.MigrationRuleListenerTest
   2021-10-24T14:57:08.1420853Z [24/10/21 14:57:05:567 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo framework[19] is destroying ..., dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1422428Z [24/10/21 14:57:05:567 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo framework[19] is destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1424017Z [24/10/21 14:57:05:567 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Destroying global resources ..., dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   2021-10-24T14:57:08.1426081Z [24/10/21 14:57:05:567 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Dubbo is completely destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 10.1.0.55
   ```
   具体内容见:https://github.com/apache/dubbo/runs/3989352973?check_suite_focus=true


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kylixs commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
kylixs commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952929745


   > 就是pull了最新代码,重复做mvn clean install,两台Windows机器,一台有时出现上述问题,一台没有出现过。
   
   出现问题的系统环境? 包括操作系统、Java版本等信息


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-952458559


   mvn test有时出现很多NPE,比如dubbo-registry-api:
   ```
   java.lang.NullPointerException
   	at org.apache.dubbo.registry.support.AbstractRegistryTest.after(AbstractRegistryTest.java:86)
   ```
   但是junit test单独测试AbstractRegistryTest很正常,可能还是全局资源释放还有问题


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] FrameworkModel的onDestroy方法销毁dubbo协议之后有时集成测试案例会失败

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-948323278


   看日志是VersionService1IT结束后的framework model destroy和VersionServiceStarIT的启动过程同步执行所致,VersionService1IT的framework编号是1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 集成测试一个测试类在执行FrameworkModel的onDestroy方法时,正在启动的其他测试类会启动失败

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950165690


   使用了GlobalResourcesRepository线程池之后,单元测试也存在类似的问题。
   github构建默认方式是并行执行UT,当测试类A结束后会github的main线程会立即启动测试类B,但是测试A的全局资源可能还在销毁过程中,此时测试类B使用全局资源就会出现各种问题。
   为了支持全局资源管理,我们可能需要将单元测试和集成测试的执行模式改为串行。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 集成测试一个测试类在执行FrameworkModel的onDestroy方法时,正在启动的其他测试类会启动失败

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950165690


   使用了GlobalResourcesRepository线程池之后,单元测试也存在类似的问题。
   github构建默认方式是并行执行UT,当测试类A结束后github的main线程会立即启动测试类B,但是测试A的全局资源可能还在销毁过程中,此时测试类B使用全局资源就会出现各种问题。
   为了支持全局资源管理,我们可能需要将单元测试和集成测试的执行模式改为串行。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950447553


   #8954 尝试在FrameworkModel的addApplication和tryDestroy之间加了互斥锁,貌似也不能解决这个问题。
   看日志是每个测试类的测试方法都在并行执行,很多集成测试类的方法并行执行都会有问题,比如集成测试dubbo-samples-nacos-override的DemoServiceIT的两个测试方法并行执行:
   https://github.com/zrlw/dubbo/runs/3991744097?check_suite_focus=true
   ```
   Running org.apache.dubbo.samples.governance.DemoServiceIT
   [25/10/21 01:27:07:007 UTC] main  INFO deploy.DefaultModuleDeployer:  [DUBBO] Dubbo module[1.1.0] has been initialized!, dubbo version: 3.0.4-SNAPSHOT, current host: 172.23.0.4
   <== 启动两个测试方法中的1个
   [25/10/21 01:27:07:007 UTC] main  INFO deploy.DefaultModuleDeployer:  [DUBBO] Dubbo module[1.1.1] has been initialized!, dubbo version: 3.0.4-SNAPSHOT, current host: 172.23.0.4
   <== 同时又启动两个测试方法中的另1个
   ```
   结果两个方法都将超时时间增加到了6秒:
   ```
   [25/10/21 01:27:12:012 UTC] nacos.client.cachedata.internal.notifier  INFO integration.AbstractConfiguratorListener:  [DUBBO] Notification of overriding rule, change type is: ADDED, raw config content is:
   ....
   All Consumers that consume the service org.apache.dubbo.samples.governance.api.DemoService will increase the timeout value to 6000
   <== 方法1加到了6秒
   [25/10/21 01:27:12:012 UTC] nacos.client.cachedata.internal.notifier  INFO integration.AbstractConfiguratorListener:  [DUBBO] Notification of overriding rule, change type is: ADDED, raw config content is:
   。。。
   # All Consumers that consume the service org.apache.dubbo.samples.governance.api.DemoService will increase the timeout value to 6000
   <== 方法2同时也加到了6秒
   ```
   导致其中验证超时异常的testWithoutRule方法没有出现超时异常而失败。
   
   不知道从什么时候开始,github执行测试类的各个方法开始并行执行了,从测试代码看,全部搞并行执行显然是有问题的。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950447553


   #8954 尝试在FrameworkModel的addApplication和tryDestroy之间加了互斥锁,貌似也不能解决这个问题。
   如果日志里的 module[x.y.z]是对应的不同的测试方法,那么每个测试类的测试方法貌似在并行执行,很多集成测试类的方法并行执行都会有问题,比如集成测试dubbo-samples-nacos-override的DemoServiceIT的两个测试方法:
   https://github.com/zrlw/dubbo/runs/3991744097?check_suite_focus=true
   ```
   Running org.apache.dubbo.samples.governance.DemoServiceIT
   [25/10/21 01:27:07:007 UTC] main  INFO deploy.DefaultModuleDeployer:  [DUBBO] Dubbo module[1.1.0] has been initialized!, dubbo version: 3.0.4-SNAPSHOT, current host: 172.23.0.4
   <== 启动两个测试方法中的1个?
   [25/10/21 01:27:07:007 UTC] main  INFO deploy.DefaultModuleDeployer:  [DUBBO] Dubbo module[1.1.1] has been initialized!, dubbo version: 3.0.4-SNAPSHOT, current host: 172.23.0.4
   <== 同时又启动两个测试方法中的另1个?
   ```
   结果两个方法都将超时时间增加到了6秒?
   ```
   [25/10/21 01:27:12:012 UTC] nacos.client.cachedata.internal.notifier  INFO integration.AbstractConfiguratorListener:  [DUBBO] Notification of overriding rule, change type is: ADDED, raw config content is:
   ....
   All Consumers that consume the service org.apache.dubbo.samples.governance.api.DemoService will increase the timeout value to 6000
   <== 方法1加到了6秒?
   [25/10/21 01:27:12:012 UTC] nacos.client.cachedata.internal.notifier  INFO integration.AbstractConfiguratorListener:  [DUBBO] Notification of overriding rule, change type is: ADDED, raw config content is:
   。。。
   # All Consumers that consume the service org.apache.dubbo.samples.governance.api.DemoService will increase the timeout value to 6000
   <== 方法2同时也加到了6秒?
   ```
   结果验证超时异常的testWithoutRule方法没有出现超时异常而失败。
   如果我对上述日志内容理解的没有问题,那就是github执行测试类的各个方法不知道什么时候开始并行执行了,但是并行执行显然是有问题的。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw edited a comment on issue #9079: [3.0] 集成测试一个测试类在执行FrameworkModel的onDestroy方法时,正在启动的其他测试类会启动失败

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950165690


   单元测试也存在类似的问题。github构建默认方式是并行执行UT,当测试类A结束后github的main线程会立即启动测试类B,但是测试A的全局资源可能还在销毁过程中,此时测试类B使用全局资源就会出现各种问题。
   比如 #8954 用了GlobalResourcesRepository的线程池之后的github单元测试结果这样:
   ```
   Error:  Failures: 
   Error:    DefaultFutureTest.interruptSend:158 expected: <null> but was: <org.apache.dubbo.remoting.exchange.support.DefaultFuture@b7a74ac[Not completed]>
   Error:    CloseTimerTaskTest.testClose:70 expected: <true> but was: <false>
   Error:    HeartBeatTaskTest.testHeartBeat:74 expected: <true> but was: <false>
   Error:    ReconnectTimerTaskTest.testReconnect:73 expected: <true> but was: <false>
   ```
   为了支持全局资源管理,我们可能需要将单元测试和集成测试的执行模式改为串行。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950985548


   我在windows机器上的eclipse验证了一下,方法如下:
   1. dubbo-samples-version的pom里的dubbo.version改为当前dubbo 3.0分支的3.0.5-SNAPSHOT
   2. 从dubbo-samples-basic里copy一个EmbeddedZooKeeper到dubbo-samples-version,修改一下VersionProvider,在启动context前面加上启动zk的代码:
   ```
           new EmbeddedZooKeeper(2181, false).start();
           // wait for embedded zookeeper start completely.
           Thread.sleep(1000);
   ```
   3. 依次启动VersionProvider,VersionProvider2
   4. 然后对dubbo-samples-version执行 run as junit test测试
   对比结果如下:
   VersionService1IT和VersionService2IT添加了下面的代码,测试就ok:
   ```
       @AfterClass
       public static void after() {
           DubboBootstrap.reset();
       }
   ```
   不添加上述代码,就持续抛异常:
   ```
   main ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to load service metadata, meta type is local, dubbo version: 3.0.5-SNAPSHOT, current host: x.x.x.x
   java.lang.IllegalStateException: DubboProtocol is destroyed
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950574802


   #8954 一顿操作之后貌似问题(包括 #9115 ) 都解决了,我主要改的地方有两处:
   1. GlobalResourcesRepository的Executor只能随用随取,原来是静态初始化,github构建总是陷入死循环,不停地输出ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to load service metadata,具体因果关系我还没搞明白。
   2. FrameworkModel的addApplication和tryDestroy之间加了互斥锁,启动和销毁的操作排队串行处理,我不清楚是不是必须这么互斥,只是从代码角度分析这两个方法操作的那个map应该是临界区资源,需要排队串行处理。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-956085280


   新情况:
   1. NPE at org.apache.dubbo.rpc.model.ApplicationModel.onDestroy(ApplicationModel.java:255)
   2. IllegalStateException at org.apache.dubbo.rpc.model.FrameworkModel.checkDestroyed(FrameworkModel.java:257)
   3. NPE at org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test(DefaultMigrationAddressComparatorTest.java:83)
   ```
   2021-11-01T09:29:56.8368167Z [INFO] Running org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest
   2021-11-01T09:29:56.8372225Z [DubboTestChecker] Run test method: org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest#test
   2021-11-01T09:29:57.3850014Z [INFO] [01/11/21 09:29:57:255 UTC]  WARN listener.ServiceInstancesChangedListener:  [DUBBO] Received address refresh retry event, 1635758987187, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.4474706Z [INFO] [01/11/21 09:29:57:302 UTC]  WARN listener.ServiceInstancesChangedListener:  [DUBBO] Retrying address notification..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.4912968Z [INFO] [01/11/21 09:29:57:465 UTC]  INFO migration.DefaultMigrationAddressComparator:  [DUBBO] No instance address available, stop compare., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5006954Z [INFO] [01/11/21 09:29:57:468 UTC]  INFO migration.DefaultMigrationAddressComparator:  [DUBBO] No interface address available, stop compare., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5012279Z [INFO] [01/11/21 09:29:57:473 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from null to Dubbo Application[22.0](unknown), dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5034212Z [INFO] [01/11/21 09:29:57:474 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[22.0](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5036248Z [INFO] [01/11/21 09:29:57:464 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from null to Dubbo Framework[22], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5037972Z [INFO] [01/11/21 09:29:57:489 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5253170Z [INFO] [01/11/21 09:29:57:491 UTC]  INFO model.FrameworkModel:  [DUBBO] Destroying default framework model: Dubbo Framework[22], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5283856Z [INFO] [01/11/21 09:29:57:491 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is destroying ..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5288063Z [INFO] [01/11/21 09:29:57:492 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from Dubbo Application[22.0](unknown) to null, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5314733Z [INFO] [01/11/21 09:29:57:492 UTC] ERROR model.ScopeModel:  [DUBBO] Error happened when destroying ScopeModel., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.5316630Z [INFO] java.lang.NullPointerException
   2021-11-01T09:29:57.5318763Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.onDestroy(ApplicationModel.java:255)
   2021-11-01T09:29:57.5327542Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:108)
   2021-11-01T09:29:57.5329957Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.onDestroy(FrameworkModel.java:113)
   2021-11-01T09:29:57.5331977Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:108)
   2021-11-01T09:29:57.5396105Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.destroyAll(FrameworkModel.java:191)
   2021-11-01T09:29:57.5399043Z [INFO] 	at org.apache.dubbo.test.check.DubboTestChecker.executionFinished(DubboTestChecker.java:224)
   2021-11-01T09:29:57.5402410Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.lambda$executionFinished$10(TestExecutionListenerRegistry.java:109)
   2021-11-01T09:29:57.6126030Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.lambda$notifyEach$1(TestExecutionListenerRegistry.java:67)
   2021-11-01T09:29:57.6192054Z [INFO] 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   2021-11-01T09:29:57.6195195Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.notifyEach(TestExecutionListenerRegistry.java:65)
   2021-11-01T09:29:57.6198609Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry.access$200(TestExecutionListenerRegistry.java:32)
   2021-11-01T09:29:57.6202334Z [INFO] 	at org.junit.platform.launcher.core.TestExecutionListenerRegistry$CompositeTestExecutionListener.executionFinished(TestExecutionListenerRegistry.java:108)
   2021-11-01T09:29:57.6205993Z [INFO] 	at org.junit.platform.launcher.core.ExecutionListenerAdapter.executionFinished(ExecutionListenerAdapter.java:56)
   2021-11-01T09:29:57.6209704Z [INFO] 	at org.junit.platform.launcher.core.DelegatingEngineExecutionListener.executionFinished(DelegatingEngineExecutionListener.java:46)
   2021-11-01T09:29:57.6214176Z [INFO] 	at org.junit.platform.launcher.core.OutcomeDelayingEngineExecutionListener.executionFinished(OutcomeDelayingEngineExecutionListener.java:63)
   2021-11-01T09:29:57.6218067Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.reportCompletion(NodeTestTask.java:179)
   2021-11-01T09:29:57.6220817Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:85)
   2021-11-01T09:29:57.6222744Z [INFO] 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
   2021-11-01T09:29:57.6228400Z [INFO] 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
   2021-11-01T09:29:57.6232453Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
   2021-11-01T09:29:57.6302426Z [INFO] 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   2021-11-01T09:29:57.6305699Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
   2021-11-01T09:29:57.6308183Z [INFO] 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
   2021-11-01T09:29:57.6310647Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
   2021-11-01T09:29:57.6313738Z [INFO] 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   2021-11-01T09:29:57.6317051Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
   2021-11-01T09:29:57.6320053Z [INFO] 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
   2021-11-01T09:29:57.6327453Z [INFO] 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
   2021-11-01T09:29:57.6332779Z [INFO] 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   2021-11-01T09:29:57.6336286Z [INFO] 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
   2021-11-01T09:29:57.6338980Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)
   2021-11-01T09:29:57.6341036Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)
   2021-11-01T09:29:57.6343553Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)
   2021-11-01T09:29:57.6345995Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)
   2021-11-01T09:29:57.6348034Z [INFO] 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)
   2021-11-01T09:29:57.6350497Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:188)
   2021-11-01T09:29:57.6353828Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
   2021-11-01T09:29:57.6357010Z [INFO] 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:128)
   2021-11-01T09:29:57.6359648Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
   2021-11-01T09:29:57.6361849Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
   2021-11-01T09:29:57.6363694Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
   2021-11-01T09:29:57.6365415Z [INFO] 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
   2021-11-01T09:29:57.6366913Z [INFO] [01/11/21 09:29:57:496 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[22] is destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6368526Z [INFO] [01/11/21 09:29:57:508 UTC] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to load service metadata, meta type is local, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6370073Z [INFO] java.lang.IllegalStateException: FrameworkModel is destroyed
   2021-11-01T09:29:57.6371663Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.checkDestroyed(FrameworkModel.java:257)
   2021-11-01T09:29:57.6374015Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.addApplication(FrameworkModel.java:224)
   2021-11-01T09:29:57.6376021Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.<init>(ApplicationModel.java:203)
   2021-11-01T09:29:57.6377750Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.initialize(FrameworkModel.java:91)
   2021-11-01T09:29:57.6379829Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.<init>(FrameworkModel.java:77)
   2021-11-01T09:29:57.6381788Z [INFO] 	at org.apache.dubbo.rpc.model.FrameworkModel.defaultModel(FrameworkModel.java:169)
   2021-11-01T09:29:57.6385378Z [INFO] 	at org.apache.dubbo.rpc.model.ApplicationModel.defaultModel(ApplicationModel.java:93)
   2021-11-01T09:29:57.6388229Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModelUtil.getOrDefaultApplicationModel(ScopeModelUtil.java:64)
   2021-11-01T09:29:57.6390912Z [INFO] 	at org.apache.dubbo.rpc.model.ScopeModelUtil.getApplicationModel(ScopeModelUtil.java:59)
   2021-11-01T09:29:57.6393684Z [INFO] 	at org.apache.dubbo.registry.client.ServiceInstance.getOrDefaultApplicationModel(ServiceInstance.java:103)
   2021-11-01T09:29:57.6396521Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.referProxy(MetadataUtils.java:81)
   2021-11-01T09:29:57.6399207Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.lambda$getMetadataServiceProxy$0(MetadataUtils.java:67)
   2021-11-01T09:29:57.6401910Z [INFO] 	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
   2021-11-01T09:29:57.6425235Z [INFO] 	at org.apache.dubbo.registry.client.metadata.MetadataUtils.getMetadataServiceProxy(MetadataUtils.java:67)
   2021-11-01T09:29:57.6429434Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.doGetMetadataInfo(ServiceInstancesChangedListener.java:379)
   2021-11-01T09:29:57.6434446Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.getRemoteMetadata(ServiceInstancesChangedListener.java:330)
   2021-11-01T09:29:57.6439047Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:143)
   2021-11-01T09:29:57.6443918Z [INFO] 	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener$AddressRefreshRetryTask.run(ServiceInstancesChangedListener.java:493)
   2021-11-01T09:29:57.6446773Z [INFO] 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   2021-11-01T09:29:57.6448073Z [INFO] 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   2021-11-01T09:29:57.6449942Z [INFO] 	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
   2021-11-01T09:29:57.6452140Z [INFO] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   2021-11-01T09:29:57.6453987Z [INFO] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   2021-11-01T09:29:57.6455206Z [INFO] 	at java.base/java.lang.Thread.run(Thread.java:829)
   2021-11-01T09:29:57.6456790Z [INFO] [01/11/21 09:29:57:510 UTC] ERROR listener.ServiceInstancesChangedListener:  [DUBBO] Failed to get MetadataInfo for instance 30.10.0.8:20880?revision=444&cluster=default, wait for retry., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6458613Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from Dubbo Framework[22] to null, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6460134Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Destroying global resources ..., dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6461754Z [INFO] [01/11/21 09:29:57:510 UTC]  INFO resource.GlobalResourcesRepository:  [DUBBO] Dubbo is completely destroyed, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6463306Z [INFO] [01/11/21 09:29:57:530 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default framework from null to Dubbo Framework[23], dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6464836Z [INFO] [01/11/21 09:29:57:530 UTC]  INFO model.FrameworkModel:  [DUBBO] Dubbo Framework[23] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6466131Z [INFO] [01/11/21 09:29:57:535 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[23.0](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6467375Z [INFO] [01/11/21 09:29:57:535 UTC]  INFO model.ScopeModel:  [DUBBO] Dubbo Module[23.0.0] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6469126Z [INFO] [01/11/21 09:29:57:542 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6471516Z [INFO] [01/11/21 09:29:57:545 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6474386Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.FrameworkModel:  [DUBBO] Reset global default application from null to Dubbo Application[23.1](unknown), dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6476243Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.ApplicationModel:  [DUBBO] Dubbo Application[23.1](unknown) is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6477676Z [INFO] [01/11/21 09:29:57:550 UTC]  INFO model.ScopeModel:  [DUBBO] Dubbo Module[23.1.0] is created, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6479448Z [INFO] [01/11/21 09:29:57:552 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6485027Z [INFO] [01/11/21 09:29:57:553 UTC]  INFO context.AbstractConfigManager:  [DUBBO] Config settings: {dubbo.config.mode=STRICT, dubbo.config.ignore-duplicated-interface=false}, dubbo version: 3.0.5-SNAPSHOT, current host: 172.23.96.1
   2021-11-01T09:29:57.6488630Z [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.692 s <<< FAILURE! - in org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest
   2021-11-01T09:29:57.6492111Z [ERROR] org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test  Time elapsed: 0.66 s  <<< ERROR!
   2021-11-01T09:29:57.6494343Z java.lang.NullPointerException
   2021-11-01T09:29:57.6496881Z 	at org.apache.dubbo.registry.client.migration.DefaultMigrationAddressComparatorTest.test(DefaultMigrationAddressComparatorTest.java:83)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org