sharding scaling didn't sync the increment data
See original GitHub issueBug Report
Please answer these questions before submitting your issue. Thanks!
Which version of ShardingSphere did you use?
4.1.0 or 5.0.0 SNAPSHOT , MySQL 5.7.28
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
sharding scaling
Expected behavior
Sync increment data
Actual behavior
Does’n work
Reason analyze (If you can)
Maybe the handleUpdateRowsEvent
doesn’t work well
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
before start this issue , I already ensure the binlog sync mode is ROW , and test table has PK
- insert some test data into table
source_schema.test
- start sharding scaling, and post the
scaling/job/start
request - scaling start to sync the inventory data , this works well
- during scaling sync the inventory data , try to update one of the data in
source_schema.test
, such asupdate test set amount = amount +1 where id = 123
- wait for a moment , all inventory data have been transtered to new sharded database through proxy, but the update change doesn’t work
I grant the root user all privileges , and config root user in proxy.I’m not sure if there is any other configuration for database or proxy I should set up ?
I tried insert data ,during the inventory sync , if insert some new data , these could be sync to sharded part , but update data does’t work
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
What do experienced developers mean when they say uuids ...
Database sharding is a partition scheme which divides the data horizontally in the database.Each individual partition is called a shard.The database sharding is ......
Read more >Precautions and limits for synchronizing data from a MongoDB ...
During a data synchronization task, ApsaraDB for MongoDB sharded cluster instances involved in the task cannot be scaled.
Read more >All Things Sharding: Techniques and Real-Life Examples in ...
Sharding is a popular technique for database performance optimization. When data size becomes bigger, it becomes difficult to place it in a single...
Read more >Oracle Sharding Linear Scalability, Fault Isolation and Geo ...
Performance scales linearly as shards are added to the pool because each shard is completely independent from other shards.
Read more >Horizontally Scaling for Data Volume with Sharding
InterSystems IRIS mirroring can be used to provide high availability for the data nodes in a sharded cluster; a mirrored failover pair of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@taojintianxia hi, I find a easy way to do this.
f_user_id
->Long.parseLong(f_user_id)
quite clearly, I undertand .