Commit bafd691
authored
perf(bigtable): parallelize the exportTimeSeries function (#13004)
Fix Bigtable test timeout in TestBatchingExport
The `TestBatchingExport/1199_metrics` test was timing out after 45
minutes.
This was caused by the `exportTimeSeries` function sending metric
batches sequentially. With 1199 metrics, this resulted in 6 separate,
synchronous gRPC calls, which caused a hang.
This change parallelizes the `exportTimeSeries` function to send metric
batches concurrently using goroutines. This resolves the timeout and
improves performance.
Fixes: #129201 parent 2b75879 commit bafd691
1 file changed
+27
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | | - | |
| 153 | + | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
157 | 176 | | |
158 | 177 | | |
159 | | - | |
| 178 | + | |
160 | 179 | | |
161 | 180 | | |
162 | 181 | | |
| |||
0 commit comments