Skip to content

Commit 2d5df63

Browse files
Fix error filtering in race condition test
The `filter_expected_errors` function was not properly filtering all expected errors during the race condition: 1. "UNKNOWN_TABLE" didn't match the actual error message "Unknown table expression identifier" - changed to "Unknown table" 2. Code 279 errors (`ALL_CONNECTION_TRIES_FAILED`) were not filtered at all - added filters for "All connection tries failed" and "connect to any replica" Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent bfdd8cc commit 2d5df63

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/queries/0_stateless/03806_drop_table_while_query_running_race.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ function filter_expected_errors()
2222
{
2323
# Filter out expected errors during race conditions:
2424
# - "is currently dropped or renamed" - table being dropped
25-
# - "UNKNOWN_TABLE" - table doesn't exist (code 60)
25+
# - "Unknown table" - table doesn't exist (code 60)
2626
# - "does not exist" - table was dropped
27-
grep -F "Code: " | grep -Fv "is currently dropped or renamed" | grep -Fv "UNKNOWN_TABLE" | grep -Fv "does not exist" || true
27+
# - "All connection tries failed" - remote query failed because table dropped (code 279)
28+
# - "Can't connect to any replica" - remote query failed because table dropped (code 279)
29+
grep -F "Code: " | grep -Fv "is currently dropped or renamed" | grep -Fv "Unknown table" | grep -Fv "does not exist" | grep -Fv "All connection tries failed" | grep -Fv "connect to any replica" || true
2830
}
2931

3032
function create_and_fill()

0 commit comments

Comments
 (0)