changwei0708 opened a new issue #8273: URL: https://github.com/apache/dubbo/issues/8273
- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate. - [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate. ### Environment * Dubbo version: 3.0.1 * Operating System version: Linux or Win * Java version: 1.8.201 ### Steps to reproduce this issue Upgrade Dubbo from 2.7.11 to 3.0.1 get RuntimeException just like ``` [ERROR] - [DUBBO] [source error] getExportedURLs() not found in org.apache.dubbo.registry.client.metadata.store.InMemoryWritableMetadataService, dubbo version: 3.0.1, current host: 169.254.166.203 java.lang.RuntimeException: [source error] getExportedURLs() not found in org.apache.dubbo.registry.client.metadata.store.InMemoryWritableMetadataService ``` and I check another different between 2.7.x and 3.0.x , it is the class DubboBootstrap of 3.0.x init InMemoryWritableMetadataService when start , just like this : ``` executorRepository.nextScheduledExecutor().scheduleAtFixedRate(() -> { InMemoryWritableMetadataService localMetadataService = (InMemoryWritableMetadataService) WritableMetadataService.getDefaultExtension(); localMetadataService.blockUntilUpdated(); try { ServiceInstanceMetadataUtils.refreshMetadataAndInstance(serviceInstance); } catch (Exception e) { logger.error("Refresh instance and metadata error", e); } }, 0, ConfigurationUtils.get(METADATA_PUBLISH_DELAY_KEY, DEFAULT_METADATA_PUBLISH_DELAY), TimeUnit.MILLISECONDS); ``` in other word InMemoryWritableMetadataService Is automatically initialized, Is it related to this place? -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
