Commit 0f44910
committed
serverccl, application_api: Fix some tests relying on statement_statistics
This commit sets the SynchronousSQLStats testing knob on for
TestTenantCannotSeeNonTenantStats.
Additionally, it fixes a testing bug in TestTenantCannotSeeNonTenantStats,
TestStatusAPIStatements, TestStatusAPICombinedStatementsWithFullScans, and
TestStatusAPICombinedStatements.
These tests involve executing a set of statements and verifying that the
statement stats response contains the same set of statements. However, they
filter out statements with a failure count > 0.
This was a bug introduced by pull #120236 which changed the way failed
statements were collected in the SQL stats system. Previously, a stmt with the
same query that failed to execute would recieve a different fingerprint and
thus be included as a different entry in the statements response.
These existing tests filtered out statement entries that failed b/c they used
to be an additional entry that would fail when comparing with the set of stmts
executed. This filtering out from the tests should have been removed as part of
pull #120236.
Fixes: #152175
Release note: None1 parent 0317bff commit 0f44910
File tree
2 files changed
+8
-26
lines changed- pkg
- ccl/serverccl/statusccl
- server/application_api
2 files changed
+8
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
405 | 407 | | |
406 | 408 | | |
407 | 409 | | |
| 410 | + | |
408 | 411 | | |
409 | 412 | | |
410 | | - | |
| 413 | + | |
| 414 | + | |
411 | 415 | | |
412 | 416 | | |
413 | 417 | | |
| |||
418 | 422 | | |
419 | 423 | | |
420 | 424 | | |
421 | | - | |
| 425 | + | |
422 | 426 | | |
423 | 427 | | |
424 | 428 | | |
| |||
478 | 482 | | |
479 | 483 | | |
480 | 484 | | |
481 | | - | |
| 485 | + | |
482 | 486 | | |
483 | 487 | | |
484 | 488 | | |
| |||
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | 531 | | |
533 | 532 | | |
534 | 533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | 467 | | |
473 | 468 | | |
474 | 469 | | |
| |||
807 | 802 | | |
808 | 803 | | |
809 | 804 | | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
| 805 | + | |
818 | 806 | | |
819 | 807 | | |
820 | 808 | | |
| |||
927 | 915 | | |
928 | 916 | | |
929 | 917 | | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | 918 | | |
936 | 919 | | |
937 | 920 | | |
| |||
0 commit comments