Commit 23d8f3f
committed
fix(clickhouse): keep limit breaches on our own queries at error level
Downgrading quota errors regardless of who wrote the SQL was wrong. An
internal analytics query hitting the memory ceiling or a timeout is a
runaway query of ours, and it was losing the alert it used to raise.
Both downgrades are now gated on the same condition: ClickHouse rejected
SQL that the caller wrote. Anything on SQL we generated stays at error,
which also makes query, queryFast and the streaming path plain error
logs again, since none of them can carry caller-written SQL.1 parent 572f394 commit 23d8f3f
2 files changed
Lines changed: 39 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 182 | + | |
192 | 183 | | |
193 | 184 | | |
194 | 185 | | |
| |||
494 | 485 | | |
495 | 486 | | |
496 | 487 | | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
| 488 | + | |
507 | 489 | | |
508 | 490 | | |
509 | 491 | | |
| |||
651 | 633 | | |
652 | 634 | | |
653 | 635 | | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
| 636 | + | |
659 | 637 | | |
660 | 638 | | |
661 | 639 | | |
| |||
1053 | 1031 | | |
1054 | 1032 | | |
1055 | 1033 | | |
1056 | | - | |
1057 | | - | |
| 1034 | + | |
| 1035 | + | |
1058 | 1036 | | |
1059 | 1037 | | |
1060 | 1038 | | |
| |||
1098 | 1076 | | |
1099 | 1077 | | |
1100 | 1078 | | |
1101 | | - | |
| 1079 | + | |
1102 | 1080 | | |
1103 | 1081 | | |
1104 | 1082 | | |
1105 | 1083 | | |
1106 | 1084 | | |
1107 | | - | |
| 1085 | + | |
1108 | 1086 | | |
1109 | 1087 | | |
1110 | 1088 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1763 | 1763 | | |
1764 | 1764 | | |
1765 | 1765 | | |
| 1766 | + | |
1766 | 1767 | | |
1767 | 1768 | | |
1768 | 1769 | | |
1769 | 1770 | | |
1770 | 1771 | | |
1771 | 1772 | | |
1772 | 1773 | | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
1773 | 1805 | | |
0 commit comments