- Notifications
You must be signed in to change notification settings - Fork1.1k
Commitb4cc982
authored
fix: ensure embedded-postgres state is wiped between retries (#20809)
Retries were previously added when starting embedded postgres tomitigate port allocation conflicts (we can't use an ephemeral port fortests). Retries alone seemingly did not fix the test flakes. A newfailure mode appeared on the retries: timing out connecting to thedatabase.When a port discovery error occurrs, embedded-postgres does not createthe database. If the data directory exists on the next attempt,embedded-postgres will assume the database has already been created.This seems to cause the timeout error. Wipe all state between retries toensure attempts execute the same logic that creates the database.[#658](coder/internal#658)1 parenta61b8bc commitb4cc982
1 file changed
+18
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2143 | 2143 | | |
2144 | 2144 | | |
2145 | 2145 | | |
2146 | | - | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
2147 | 2153 | | |
2148 | 2154 | | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
2149 | 2158 | | |
2150 | 2159 | | |
2151 | | - | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
2156 | 2160 | | |
2157 | 2161 | | |
2158 | 2162 | | |
2159 | 2163 | | |
2160 | 2164 | | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
2161 | 2173 | | |
2162 | 2174 | | |
2163 | 2175 | | |
| |||
2204 | 2216 | | |
2205 | 2217 | | |
2206 | 2218 | | |
2207 | | - | |
2208 | | - | |
2209 | | - | |
2210 | | - | |
2211 | | - | |
2212 | 2219 | | |
2213 | 2220 | | |
2214 | 2221 | | |
| |||
0 commit comments
Comments
(0)