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
Clean up redundant examples and document final findings
Remove redundant and non-functional test examples:
- tombstone_purge_test_short.rs: Redundant with tombstone_quick_check
- tombstone_resurrection_test.rs: Non-functional - reset checkpoint does not re-push unmodified documents
- test_with_reporting.rs: Demo only, not a real test
Keep essential examples:
- ticket_70596.rs: Original auto-purge test
- check_cbs_config.rs: Configuration verification utility
- tombstone_quick_check.rs: Rapid validation (~30s)
- tombstone_purge_test.rs: Complete automated test with reporting
All utility infrastructure (utils/) remains unchanged.
README updates:
- Document key findings from extensive testing
- Tombstone purge timing requirements
- Reset checkpoint limitation for BC-994 scenario
- Simplified examples section
Key findings documented:
✅ Tombstone purge works when configured at bucket creation
❌ Retroactive configuration does not purge existing tombstones
❌ Reset checkpoint alone does not re-push unmodified documents
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
- ✅ Tombstones are purged after 1 hour when purge interval is configured **at bucket creation**
70
+
- ❌ Configuring purge interval after tombstones are created does NOT purge existing tombstones
71
+
- ✅ Re-created documents are always treated as new (`flags=0`) even if tombstone persists
72
+
73
+
**Reset Checkpoint Limitation:**
74
+
- ❌ Reset checkpoint alone does NOT re-push unmodified documents
75
+
- CBLite only pushes documents that changed since last successful sync
76
+
- For BC-994 scenario, documents must be modified locally before reset to trigger push
77
+
65
78
## Running an example
66
79
67
80
### Available examples
@@ -98,15 +111,6 @@ Demonstrates auto-purge behavior when documents are moved to inaccessible channe
98
111
$ cargo run --features=enterprise --example ticket_70596
99
112
```
100
113
101
-
#### `tombstone_purge_test_short`
102
-
Tests tombstone purge with a short interval (~5 minutes). Useful for quick validation of the test logic, though CBS may not actually purge tombstones below the 1-hour minimum.
103
-
104
-
**Runtime: ~10 minutes**
105
-
106
-
```shell
107
-
$ cargo run --features=enterprise --example tombstone_purge_test_short
108
-
```
109
-
110
114
#### `tombstone_purge_test`
111
115
Complete tombstone purge test following Couchbase support recommendations (Thomas). Tests whether tombstones can be completely purged from CBS and SGW after the minimum 1-hour interval, such that re-creating a document with the same ID is treated as a new document.
112
116
@@ -137,52 +141,6 @@ $ cargo run --features=enterprise --example tombstone_purge_test
0 commit comments