@@ -47,8 +47,10 @@ UnhealthyOperationLatencyThreshold() = (100ms,true)
47
47
48
48
open flag= envs=(foo,bar) open=foo
49
49
----
50
- open error: directory "bar/auxiliary/wals-among-stores" may contain relevant WALs
51
- OPTIONS key: WAL Failover.secondary_dir
50
+ open error: directory "bar/auxiliary/wals-among-stores" may contain relevant WALs but is not in WALRecoveryDirs
51
+ WALFailover.Secondary changed from previous options
52
+ o.WALDir: ""
53
+ o.WALRecoveryDirs: 0
52
54
53
55
# Opening with the "disabled" setting should succeed.
54
56
@@ -109,25 +111,31 @@ UnhealthyOperationLatencyThreshold() = (100ms,true)
109
111
110
112
open flag= envs=(foo) open=foo
111
113
----
112
- open error: directory "bax" may contain relevant WALs
113
- OPTIONS key: WAL Failover.secondary_dir
114
+ open error: directory "bax" may contain relevant WALs but is not in WALRecoveryDirs
115
+ WALFailover.Secondary changed from previous options
116
+ o.WALDir: ""
117
+ o.WALRecoveryDirs: 0
114
118
115
119
# Try to disable it without setting a prev_path. It should fail
116
120
# as well.
117
121
118
122
open flag=disabled envs=(foo) open=foo
119
123
----
120
- open error: directory "bax" may contain relevant WALs
121
- OPTIONS key: WAL Failover.secondary_dir
124
+ open error: directory "bax" may contain relevant WALs but is not in WALRecoveryDirs
125
+ WALFailover.Secondary changed from previous options
126
+ o.WALDir: ""
127
+ o.WALRecoveryDirs: 0
122
128
123
129
# Changing the secondary location without specifying prev_path=bax
124
130
# should fail.
125
131
126
132
open flag=path=baz envs=(foo) open=foo
127
133
----
128
- open error: directory "bax" may contain relevant WALs
129
- OPTIONS key: WAL Failover.secondary_dir
130
- o.WALFailover.Secondary.Dirname: baz
134
+ open error: directory "bax" may contain relevant WALs but is not in WALRecoveryDirs
135
+ WALFailover.Secondary changed from previous options
136
+ o.WALDir: ""
137
+ o.WALFailover.Secondary.Dirname: "baz"
138
+ o.WALRecoveryDirs: 0
131
139
132
140
# Changing the secondary location WITH specifying prev_path=bax
133
141
# should succeed.
0 commit comments