Commit 98b71ad
Fix DCP test failures and log noise for magma buckets
self.vbuckets was hard-coded to range(1024) but magma buckets default
to 128 vbuckets; accessing vb_map[128+] raised IndexError in
select_dcp_client for every DCP collection test. Fix by deriving the
range from the actual vb_map length after fetching the cluster config.
Fix TypeError in handleSystemEvent where response['key'] arrives as
bytes in Python 3 and was stored raw into the manifest, causing
json.dumps(vb['manifest']) to fail. Decode with surrogateescape so
non-UTF-8 binary keys are round-tripped safely rather than raising
UnicodeDecodeError, consistent with the existing guard in handleMutation.
Fix recv_op to suppress hundreds of spurious "recv_op Exception: timed
out" lines that appeared during disk-checkpoint streams. Socket poll
timeouts are expected when the server is flushing to disk and are
already handled by the retry logic in process_dcp_traffic; printing
them on every poll obscures real errors. Also fix a dead-code branch
where 'Timeout' (capital T) never matched the actual socket exception
message 'timed out' (lowercase), and remove the _stream_timeout
assignment from this path since a transient poll timeout should not
permanently short-circuit the connection.
Co-authored-by: Claude <noreply@anthropic.com>
Change-Id: Iecb5d78aaeafd435d7da9882e9c2e2d3f7ee6e7f
Reviewed-on: https://review.couchbase.org/c/TAF/+/245571
Reviewed-by: Ashwin <ashwin.govindarajulu@couchbase.com>
Tested-by: Balakumaran G <balakumaran.gopal@couchbase.com>
Tested-by: Couchbase QE
Reviewed-by: Balakumaran G <balakumaran.gopal@couchbase.com>1 parent f63c053 commit 98b71ad
2 files changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
160 | | - | |
161 | 159 | | |
162 | 160 | | |
163 | 161 | | |
| |||
247 | 245 | | |
248 | 246 | | |
249 | 247 | | |
250 | | - | |
251 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
252 | 251 | | |
253 | 252 | | |
254 | | - | |
255 | | - | |
| 253 | + | |
| 254 | + | |
256 | 255 | | |
257 | 256 | | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| 187 | + | |
| 188 | + | |
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
| |||
0 commit comments