You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/03/04 06:16:54 UTC

[GitHub] [shardingsphere] tristaZero opened a new issue #9587: Twice event post when refresh schema metadata

tristaZero opened a new issue #9587:
URL: https://github.com/apache/shardingsphere/issues/9587


   ### Problem
   
   If users execute DDL queries, in some cases, there is the possibility that ShardingProxy may post two `refresh` events.
   One is a more specific event, like `DropTableEvent`, and another one is `SchemaAlterEvent`.
   
   I am unsure whether it is necessary to post two events together. Besides, there is only a single event is posted in other cases like `AlterTableStatementSchemaRefresher`.
   
   
   ### Files
   - DatabaseCommunicationEngine (`refreshMetadata(executionContext)`)
   - AlterTableStatementSchemaRefresher
   - CreateTableStatementSchemaRefresher
   - Other implements of `SchemaRefresher`


----------------------------------------------------------------
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.

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



[GitHub] [shardingsphere] terrymanu commented on issue #9587: Twice event post when refresh schema metadata

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #9587:
URL: https://github.com/apache/shardingsphere/issues/9587#issuecomment-800006109


   Sure, the `SchemaAlterEvent` is general event which for persist schema meta data only.
   The `DropTableEvent` is for additional operation with delete single table rule from sharding rule.
   The both events are necessary.


----------------------------------------------------------------
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.

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



[GitHub] [shardingsphere] terrymanu closed issue #9587: Twice event post when refresh schema metadata

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #9587:
URL: https://github.com/apache/shardingsphere/issues/9587


   


----------------------------------------------------------------
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.

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