Commit a77ae15
committed
fix: add limits to ErrorInfo fields
- ErrorInfo is passed as FlightError.extra_info
- In turn, extra_info contents are transported via gRPC headers
- gRPC headers have hard limit of 16kB size (otherwise get gRPC Resource Exhausted: initial metadata too large)
- added code to truncate `msg` and `detail` if necessary. Limit for each is 1kB
- added code (breaking change) to limit `body` to 4kB
- note: body is not used anywhere, and it is unlikely it is used 'in the wild' because as is it is
not taken into account by the server (it will be used to pass polling info in the future)
JIRA: CQ-12681 parent d355477 commit a77ae15
File tree
2 files changed
+63
-12
lines changed- gooddata-flight-server
- gooddata_flight_server/errors
- tests/errors
2 files changed
+63
-12
lines changedLines changed: 43 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
11 | 38 | | |
12 | 39 | | |
13 | 40 | | |
| |||
22 | 49 | | |
23 | 50 | | |
24 | 51 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
28 | 55 | | |
29 | 56 | | |
30 | 57 | | |
31 | 58 | | |
32 | 59 | | |
33 | | - | |
| 60 | + | |
34 | 61 | | |
35 | 62 | | |
36 | 63 | | |
| |||
60 | 87 | | |
61 | 88 | | |
62 | 89 | | |
63 | | - | |
| 90 | + | |
64 | 91 | | |
65 | 92 | | |
66 | | - | |
| 93 | + | |
| 94 | + | |
67 | 95 | | |
68 | 96 | | |
69 | 97 | | |
70 | 98 | | |
71 | 99 | | |
72 | 100 | | |
73 | | - | |
| 101 | + | |
| 102 | + | |
74 | 103 | | |
75 | 104 | | |
76 | | - | |
| 105 | + | |
| 106 | + | |
77 | 107 | | |
78 | 108 | | |
79 | 109 | | |
80 | 110 | | |
81 | 111 | | |
82 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
83 | 116 | | |
84 | 117 | | |
85 | 118 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 119 | + | |
| 120 | + | |
90 | 121 | | |
91 | 122 | | |
92 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
25 | 45 | | |
26 | 46 | | |
27 | 47 | | |
| |||
0 commit comments