| CPC G06F 16/2365 (2019.01) [G06F 16/27 (2019.01)] | 20 Claims |

|
1. A data processing method, applied to a shard node of a distributed database system, comprising:
receiving a physical DDL instruction converted from a logic DDL instruction for change of data in the distributed database system;
executing the physical DDL instruction and generating a shard node mode snapshot for the shard node after the physical DDL instruction has been successfully executed, wherein the shard node mode snapshot corresponding to a shard node mode that is changed after the shard node has successfully executed the physical DDL instruction, wherein for each shard node, a shard node mode snapshot is generated for the shard node after the shard node has successfully executed the physical DDL instruction, and wherein the shard node mode snapshot describes logic structure and features of data stored in the corresponding shard node after the shard node has successfully executed the physical DDL instruction;
comparing the shard node mode snapshot with a global logic mode snapshot of the distributed database system, wherein the global logic mode snapshot corresponding to a global logic mode that is changed after all shard nodes in the database system have successfully executed the physical DDL instruction, wherein the global logic mode snapshot describes logic structure and features of all data stored in the all shard nodes in the database system; and
determining that the shard node mode snapshot is inconsistent with the global logic mode snapshot, adjusting log data of the shard node aggregated into a global log to be consistent with the global logic mode snapshot.
|