You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(sharding): enforce explicit rollback commands in queue
- Remove RollbackCommandGenerator and legacy fallback code
- Make rollback SQL parameter required for all queue operations
- Update queue schema and docs to mandate rollback commands
- Add rollback commands for shard and cluster operations
- Improve test coverage with explicit rollback parameters
- Simplify rollback handling by assuming always-on support
Copy file name to clipboardExpand all lines: doc/sharding/11-rollback-system.md
+35-19Lines changed: 35 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
-
# Sharding Rollback and Recovery System
1
+
# Sharding Rollback System
2
2
3
3
## Overview
4
4
5
-
The ManticoreSearch Buddy sharding system now includes a comprehensive rollback and recovery mechanism that ensures system consistency and reliability by automatically reversing failed operations and providing tools for health monitoring and resource cleanup.
5
+
The ManticoreSearch Buddy sharding system includes a simplified rollback mechanism that ensures system consistency by storing rollback commands directly when operations are queued. Rollback is always enabled and commands are provided upfront.
6
6
7
7
## Key Features
8
8
9
-
### 1. Automatic Rollback
10
-
-**Operation Groups**: Related commands grouped for atomic execution
11
-
-**Rollback Commands**: Automatic generation of reverse SQL commands
12
-
-**Failure Detection**: Automatic rollback trigger on operation failure
For existing systems, run the migration to add rollback support:
176
+
The queue table is automatically created with rollback support:
161
177
162
178
```php
163
179
$queue = new Queue($cluster, $client);
@@ -234,4 +250,4 @@ Configure alerts for:
234
250
235
251
## Conclusion
236
252
237
-
The rollback and recovery system transforms the ManticoreSearch Buddy sharding system from a basic distributed system into a production-ready platform with comprehensive error handling, automatic recovery, and resource management capabilities. This ensures high availability, data consistency, and operational reliability in production environments.
253
+
The rollback and recovery system transforms the ManticoreSearch Buddy sharding system from a basic distributed system into a production-ready platform with comprehensive error handling, automatic recovery, and resource management capabilities. This ensures high availability, data consistency, and operational reliability in production environments.
0 commit comments