Commit cdb8993
authored
Configurable storage versions (#601)
* WIP: Implement models for incremental reprocessing.
* Handle current_data v1/v3 differences.
* Split out PersistedBatch implementations.
* Split out MongoBucketBatch implementations.
* Resolve circular imports.
* Back to old bucket names for now.
* Fix type check.
* nullable CurrentDataDocumentV3.data.
* Use string ids.
* Split collections for bucket_data.
* Use clustered collections.
* Drop bucket_data collections when clearing.
* Fix type issues.
* Fixes.
* Fix tests.
* Split out checksum implementations.
* Split bucket_parameter collections.
* Initialize collections upfront.
* Workaround for MongoDB SERVER-121822.
* Update snapshots.
* Fix for parameter lookups.
* Optimize parameter query lookups.
* Minor restructuring.
* Split current_data into separate source_record_ collections.
* Refactor _id for source_records.
* Split out CurrentDataStore.
* Further split out implementations.
* Rename CurrentData -> SourceRecord.
* Split out source_tables collections.
* Don't do initializeCurrentDataCollection for v1.
* Initialize source records collection on resolveTable instead of flush.
* Refactor more collection initialization.
* Restructure v3 parameter index lookup values.
* Update tests.
* Further test fix.
* Document collection structure.
* Add some comments.
* Rename.
* Use $unionWith to find parameter index changes.
* Fix current_data / source_records structure.
* Further fixes for v1 current_data.
* Cleanup.
* Fix type issue post merge.
* Rename postCommitCleanup.
* Track pending deletes & fix other source_table issues.
* Only cleanup pending deletes for affected source tables.
* Add timeout and retry for deletes.
* Increase clear timeout.
* Retry inner clear operations instead of the entire loop.
* Split bucket_state collections.
* Split compactor implementations.
* Avoid listing collections unless we drop them.
* Split implementation versions, phase 1.
* Split MongoChecksums.
* Split MongoParameterCompactor.
* Split methods in PersistedBatch.
* Further split MongoBucketBatch.
* Move out helpers for MongoSyncBucketStorage
* Refactor MongoSyncBucketStorage.
* Split db implementations.
* Cleanup.
* Tweak types.
* More type tweaks.
* Type tweak.
* Simplify MongoChecksums.
* Remove MongoCompactorBase.
* Remove compatibility re-rexports.
* Remove MongoParameterCompactorBase.
* Rename MongoSyncBucketStorage.
* Simplify db.
* Split v1/v3 models.
* Move files back to their original location.
* Update docs.
* Add back clear for current_data.
* Add back missing metric tracking.
* Check if collection exists before getting storage stats.
* Report metrics even if there are no active replication streams yet.
* Update comment.
* Some collection listing cleanup.
* Optimize bucket collection lookup for v3 compacting.
* Remove unused functions.
* Organize imports.
* Cleanup types.
* Reduce type casting in tests.
* Further improve test types.
* More type cast improvements and comments.
* Reduce instance state on MongoCompactor.
* Introduce SingleBucketStore.
* Minor cleanup.
* Explicitly list fields when persisting.
* Merge implementations for saveBucketData.
* Fix regression.
* Avoid double-parsing sync rules in many cases when updating.
* Add storage version parsing.
* Use configured storage version.
* Changeset.
* Re-use persisted storage version in asUpdateOptions().
* Further tweaks and comments.
* Fix tests.1 parent d564c23 commit cdb8993
11 files changed
Lines changed: 147 additions & 2 deletions
File tree
- .changeset
- modules
- module-mongodb-storage/src/storage
- module-postgres-storage/src/storage
- packages
- service-core/src
- routes/endpoints
- storage
- sync-rules
- src
- test/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| 104 | + | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| |||
411 | 416 | | |
412 | 417 | | |
413 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
414 | 444 | | |
415 | 445 | | |
416 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
144 | 151 | | |
145 | 152 | | |
146 | 153 | | |
| |||
0 commit comments