linghengqian commented on issue #23839: URL: https://github.com/apache/shardingsphere/issues/23839#issuecomment-1416738032
- You don't seem to be persisting metadata to the "memory space" where the metadata really should be. Although the versions are different, the ContextManager class you modified does not seem to do the same `clearServiceCache()` operation as in StandaloneModeContextManager. Even if you don't know `clearServiceCache()`, you can force a refresh of all metadata. Refer to https://github.com/apache/shardingsphere/blob/5.3.1/mode/type/standalone/core/src/main/java/org/apache/shardingsphere/mode/manager/standalone/StandaloneModeContextManager.java and https://github.com/apache/shardingsphere/blob/5.3.1/mode/core/src/main/java/org/apache/shardingsphere/mode/manager/ContextManager.java#L465 . - Since you did not actually use H2Database to write unit tests, and did not give the corresponding SQL file, it is a bit difficult for me to see the design source of this ContextManager. -- 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]
