Commit ed82233
authored
fix(scripts): M5a — --host 127.0.0.1 for --local mode (#926)
**Bug fix** discovered during the M5a E2E run of
`scripts/run-jepsen-m5-local.sh` after PR #924 + #925 merge.
## 症状
`./scripts/run-jepsen-m5-local.sh` 実行時、最初の workload setup! が以下で失敗:
```
DynamoDB :cognitect.anomalies/not-found: n5: nodename nor servname provided, or not known
```
## 根本原因
`dynamodb_multi_table_workload.clj` の `open!` で:
```clojure
host (or (:dynamo-host test) (name node))
```
`--local` 設定時、`:dynamo-host` は nil なので `(name node)` (`default-nodes` の
`"n1".."n5"`) を hostname として使用 → DNS 解決失敗。
## Fix
`lein run` に `--host 127.0.0.1` を追加。`cli/common-cli-opts` 経由で `:host` →
`:dynamo-host` → `make-ddb-client` に thread されて、全 5 nodes の client
が同じループバック endpoint を dial する。
## 関連する未解決問題 (本 PR スコープ外)
この修正後、setup! は `n5` DNS failure を回避できるが、新たに workers が全 txn で
`ResourceNotFoundException: table not found` を返す問題が surface した。:
- `create-all-tables!` は (5 並列 client で) 5 回成功 report
- ListRoutes は期待通りの 2 group catalog を返す
- 直接 curl で `CreateTable` を投げると HTTP 200 + `"TableStatus":"ACTIVE"`
- それでも `GetItem` / `TransactGetItems` は `ResourceNotFoundException`
5 client 並列での CreateTable race か、`adapter/dynamodb.go` の internal sync
問題か。別 issue で調査予定。
## Test plan
- [x] `bash -n scripts/run-jepsen-m5-local.sh` 構文OK
- [x] 実行時 `n5: nodename nor servname provided` エラーは出ない
- [ ] E2E zero G1c — 上記 `ResourceNotFoundException` 別件解決後1 file changed
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | 99 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| |||
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
203 | 218 | | |
204 | 219 | | |
205 | 220 | | |
206 | 221 | | |
207 | 222 | | |
208 | 223 | | |
| 224 | + | |
209 | 225 | | |
210 | 226 | | |
211 | 227 | | |
| |||
0 commit comments