|
1 | 1 |
|
2 | 2 | === Command should use default number of retries: |
3 | 3 | >>> musterr [CLI] psql my-database -- --dbname=db1 -p 3000 |
4 | | -Connecting to Databricks Database Instance my-database ... |
5 | | -Postgres version: 14 |
6 | | -Database instance status: AVAILABLE |
7 | | -Successfully fetched database credentials |
8 | | -Launching psql session to my-database.my-host.com (attempt 1/3)... |
| 4 | +Instance: my-database |
| 5 | +Connecting to database instance... |
9 | 6 | Simulating connection failure with exit code '2' |
10 | | -Connection failed with retryable error: connection failed (retryable): psql exited with code 2 |
| 7 | +Connection failed with retryable error: connection failed: psql exited with code 2 |
11 | 8 | Connection attempt 1/3 failed, retrying in 1s... |
12 | | -Launching psql session to my-database.my-host.com (attempt 2/3)... |
| 9 | +Retrying connection (attempt 2/3)... |
13 | 10 | Simulating connection failure with exit code '2' |
14 | | -Connection failed with retryable error: connection failed (retryable): psql exited with code 2 |
| 11 | +Connection failed with retryable error: connection failed: psql exited with code 2 |
15 | 12 | Connection attempt 2/3 failed, retrying in 2s... |
16 | | -Launching psql session to my-database.my-host.com (attempt 3/3)... |
| 13 | +Retrying connection (attempt 3/3)... |
17 | 14 | Simulating connection failure with exit code '2' |
18 | | -Connection failed with retryable error: connection failed (retryable): psql exited with code 2 |
19 | | -Error: failed to connect after 3 attempts, last error: connection failed (retryable): psql exited with code 2 |
| 15 | +Connection failed with retryable error: connection failed: psql exited with code 2 |
| 16 | +Error: failed to connect after 3 attempts, last error: connection failed: psql exited with code 2 |
20 | 17 |
|
21 | 18 | === Command should use custom number of retries: |
22 | 19 | >>> musterr [CLI] psql my-database --max-retries 5 -- --dbname=db1 -p 3000 |
23 | | -Connecting to Databricks Database Instance my-database ... |
24 | | -Postgres version: 14 |
25 | | -Database instance status: AVAILABLE |
26 | | -Successfully fetched database credentials |
27 | | -Launching psql session to my-database.my-host.com (attempt 1/5)... |
| 20 | +Instance: my-database |
| 21 | +Connecting to database instance... |
28 | 22 | Simulating connection failure with exit code '2' |
29 | | -Connection failed with retryable error: connection failed (retryable): psql exited with code 2 |
| 23 | +Connection failed with retryable error: connection failed: psql exited with code 2 |
30 | 24 | Connection attempt 1/5 failed, retrying in 1s... |
31 | | -Launching psql session to my-database.my-host.com (attempt 2/5)... |
| 25 | +Retrying connection (attempt 2/5)... |
32 | 26 | Simulating connection failure with exit code '2' |
33 | | -Connection failed with retryable error: connection failed (retryable): psql exited with code 2 |
| 27 | +Connection failed with retryable error: connection failed: psql exited with code 2 |
34 | 28 | Connection attempt 2/5 failed, retrying in 2s... |
35 | | -Launching psql session to my-database.my-host.com (attempt 3/5)... |
| 29 | +Retrying connection (attempt 3/5)... |
36 | 30 | Simulating connection failure with exit code '2' |
37 | | -Connection failed with retryable error: connection failed (retryable): psql exited with code 2 |
| 31 | +Connection failed with retryable error: connection failed: psql exited with code 2 |
38 | 32 | Connection attempt 3/5 failed, retrying in 4s... |
39 | | -Launching psql session to my-database.my-host.com (attempt 4/5)... |
| 33 | +Retrying connection (attempt 4/5)... |
40 | 34 | Simulating connection failure with exit code '2' |
41 | | -Connection failed with retryable error: connection failed (retryable): psql exited with code 2 |
| 35 | +Connection failed with retryable error: connection failed: psql exited with code 2 |
42 | 36 | Connection attempt 4/5 failed, retrying in 8s... |
43 | | -Launching psql session to my-database.my-host.com (attempt 5/5)... |
| 37 | +Retrying connection (attempt 5/5)... |
44 | 38 | Simulating connection failure with exit code '2' |
45 | | -Connection failed with retryable error: connection failed (retryable): psql exited with code 2 |
46 | | -Error: failed to connect after 5 attempts, last error: connection failed (retryable): psql exited with code 2 |
| 39 | +Connection failed with retryable error: connection failed: psql exited with code 2 |
| 40 | +Error: failed to connect after 5 attempts, last error: connection failed: psql exited with code 2 |
47 | 41 |
|
48 | 42 | === Command should not use retries: |
49 | 43 | >>> musterr [CLI] psql my-database --max-retries 0 -- --dbname=db1 -p 3000 |
50 | | -Connecting to Databricks Database Instance my-database ... |
51 | | -Postgres version: 14 |
52 | | -Database instance status: AVAILABLE |
53 | | -Successfully fetched database credentials |
54 | | -Launching psql with connection to my-database.my-host.com... |
| 44 | +Instance: my-database |
| 45 | +Connecting to database instance... |
55 | 46 | Simulating connection failure with exit code '2' |
0 commit comments