Repository navigation
Commit e4c72a8
committed
[BUG] End the Elasticsearch exporter's wait on a read or write error
ResponseHandler::OnEvent records a completion for each session state that
ends the session, but ReadError and WriteError only log. A client that
reports either of them as its last event leaves the synchronous Export()
blocked on its condition variable with nothing left to wake it.
The bundled curl client dispatches neither state, so this does not change
behaviour for callers who use it. It matters for the HttpClient that the
exporter's constructor accepts.
The cases live in the existing synchronous fixture, which skips when the
exporter is built for async export, and a CTest timeout bounds them because
a regression here stalls the job rather than failing an assertion.
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>1 parent 489cd82 commit e4c72a8
4 files changed
Lines changed: 348 additions & 13 deletions
File tree
- exporters/elasticsearch
- src
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
| 113 | + | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| 194 | + | |
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
| |||
0 commit comments