You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "FlyingZC (via GitHub)" <gi...@apache.org> on 2023/06/27 01:33:00 UTC

[GitHub] [shardingsphere] FlyingZC opened a new issue, #26600: Unmodified tables are refreshed when metadata is modified

FlyingZC opened a new issue, #26600:
URL: https://github.com/apache/shardingsphere/issues/26600

   ## Bug Report
   Unmodified tables are refreshed when metadata is modified.
   
   ### Which version of ShardingSphere did you use?
   Master
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   Proxy
   
   ### Expected behavior
   Do not refresh unmodified tables.
   
   ### Actual behavior
   Unmodified tables are refreshed when metadata is modified.
   
   ### Reason analyze (If you can)
   ShardingSphereTable#getColumns is overrided to return `map.values`, `map.values` is `LinkedValues` type, the `equals` method is not overrided, resulting in `equals` is always false.
   ```java
   private final Map<String, ShardingSphereColumn> columns;
   public Collection<ShardingSphereColumn> getColumns() {
         return columns.values();
    }
   ```
   <img width="446" alt="image" src="https://github.com/apache/shardingsphere/assets/19788130/9b304cc4-9920-4eeb-b964-0536719bdc7d">
   
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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@shardingsphere.apache.org.apache.org

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


[GitHub] [shardingsphere] strongduanmu closed issue #26600: Unmodified tables are refreshed when metadata is modified

Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu closed issue #26600: Unmodified tables are refreshed when metadata is modified
URL: https://github.com/apache/shardingsphere/issues/26600


-- 
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@shardingsphere.apache.org

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