Commit 1fe2a8f
committed
MB-52541:[ BP to 7.1.2 of MB 52355] Add more logging when maxCompositeFilters > Num SecKeys
* Adding the print in fillScans and not setExplodePositions to capture
protoscans received from the query
* Index out of range panic was seen in setExplodedPositions function
when accessing explodePositions array of size len(IndexInst.Defn.SecExprs)
* -- panic: runtime error: index out of range [4] with length 4
* Print the scans details and return error than panic
* Example print
2022-06-17T02:37:02.185+05:30 [Error] SCAN##2 ReqID: ee9939aa-d17c-4705-9d60-91d773053bbd Defn: 9151033855720878966
SecExprs: [`age`]
Scans: <ud>([{ [150] 3 filterRange [{[{ 100 2}] [100] 3 } {[{50 150 3}] [50] [150] 3 }] <nil>} {[200] [200] 3 range [{[{200 200 3}] [200] [200] 3 }] <nil>}])</ud>
MaxCompositeFilters: 1
ProtoScans:
protobuf scan 0 filters:<low:"null" high:"100" inclusion:2 >
protobuf scan 1 filters:<low:"50" high:"150" inclusion:3 >
protobuf scan 2 filters:<low:"200" high:"200" inclusion:3 >
Change-Id: Ibb017edb6e84af3d963e80f2549e28b69dc82d57
(cherry picked from commit 20e09f1)1 parent ca81693 commit 1fe2a8f
1 file changed
+29
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
1090 | 1092 | | |
1091 | 1093 | | |
1092 | 1094 | | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | 1095 | | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
| 1096 | + | |
1105 | 1097 | | |
1106 | 1098 | | |
1107 | 1099 | | |
1108 | 1100 | | |
1109 | 1101 | | |
1110 | 1102 | | |
1111 | 1103 | | |
1112 | | - | |
1113 | | - | |
| 1104 | + | |
| 1105 | + | |
1114 | 1106 | | |
1115 | 1107 | | |
1116 | 1108 | | |
1117 | 1109 | | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
1118 | 1133 | | |
1119 | 1134 | | |
1120 | 1135 | | |
1121 | 1136 | | |
1122 | 1137 | | |
1123 | | - | |
| 1138 | + | |
1124 | 1139 | | |
1125 | 1140 | | |
1126 | 1141 | | |
| |||
0 commit comments