Commit e7a099e
authored
Integration-test hardening + bootstrap race tolerance + XML docs (#120)
* Fix: OpenSearch dispatcher robustness + R-24c integration test coverage
- StatementDispatcher: pass CAS query params (if_seq_no/if_primary_term) via
IRequestParameters instead of embedding in path string (OpenSearch.Net rejects
paths with query strings); add CasPutParameters class
- StatementDispatcher: handle OpenSearchClientException in DispatchUpdateSettingsAsync
and DispatchReindexAsync for ThrowExceptions=true clients
- SafeDefaultMergeMiddleware: co-inject conflicts:proceed with op_type:create on
REINDEX to prevent abort-on-conflict defeating idempotency (ADR-0011)
- R-24c gap-fill tests: handle both ThrowExceptions modes in DynamicStrict assertion;
make LedgerWrite cleanup defensive against container teardown races
- InitializeTestContainers: add HYPERBEE_TESTS_PROVIDERS_ONLY env gate to scope
container startup; add HYPERBEE_TESTS_SKIP_SINGLE_NODE support
- CouchbaseTestContainer: remove erroneous port 80 mapping
* Harden bootstrap and document public OpenSearch provider surface
- LedgerIndexInitStep / LockIndexInitStep: tolerate the TOCTOU race between
Exists() and Create() by detecting `resource_already_exists_exception` in
both client modes (response-based and exception-based). On race-loss the
ledger step still verifies the existing mapping; the lock step succeeds.
- OpenSearchMigrationOptions: add XML docs to every public type, enum
value, property, const, and ctor; lift R-19 / R-29 / PA-2 rationale
from line comments into <summary>/<remarks>; add <see cref> links
between related options (LockRenewInterval <-> LockStaleAfter, etc.).
- OpenSearchExceptions: add XML docs to every exception type and ctor;
document RecordId/StatementIndex/FailedStatementIndex properties.1 parent 4035678 commit e7a099e
9 files changed
Lines changed: 469 additions & 111 deletions
File tree
- src/Hyperbee.Migrations.Providers.OpenSearch
- Internal
- Bootstrap/Steps
- Dispatch
- Middleware
- tests/Hyperbee.Migrations.Integration.Tests
- Container
- Couchbase
Lines changed: 51 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
92 | 105 | | |
93 | 106 | | |
94 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
95 | 116 | | |
96 | 117 | | |
97 | 118 | | |
| |||
155 | 176 | | |
156 | 177 | | |
157 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
158 | 204 | | |
Lines changed: 49 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
75 | 87 | | |
76 | 88 | | |
77 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
78 | 97 | | |
79 | 98 | | |
80 | 99 | | |
| |||
97 | 116 | | |
98 | 117 | | |
99 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
100 | 144 | | |
0 commit comments