apache / apache/iotdb-client-rust
Session::open does not fail over when openSession/requestStatementId fails (only TCP-layer failover)
- 主要語言
- Rust
- 星號
- 1
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
描述
`Session::open` only fails over at the TCP layer: the loop over `config.endpoints` opens a `Connection`, but `authenticate()` (openSession + requestStatementId) runs **after** the loop. `reconnect()` does the opposite — it retries connect **and** authenticate for every endpoint.
With a 3-node cluster where one node accepts TCP but fails `openSession` (e.g. overloaded, misconfigured, or wedged by the missing socket timeout), roughly one `open()` in three fails while 2 of 3 nodes are healthy.
Fix: move the `authenticate()` step inside the endpoint loop, mirroring `reconnect()`.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
從 Session::open 開始,將其端點迴圈與 reconnect() 進行比較。追蹤 authenticate(),包括 openSession 和 requestStatementId,以了解每個失敗在哪裡得到處理。完成的標準是:驗證失敗會導致嘗試下一個已設定的端點,與 reconnect() 的行為一致;issue 中未指定任何測試檔案。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust
- 領域
- databases
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 活躍
- 描述清晰度
- 描述清楚
- 新手友好度
- 78/100