mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: Catch invalid json pointer error (#40625)
issue: #35528 Signed-off-by: sunby <sunbingyi1992@gmail.com>
This commit is contained in:
parent
d3adab15ac
commit
6249335859
@ -46,10 +46,19 @@ JsonInvertedIndex<T>::build_index_for_json(
|
||||
value_result<GetType> res = json_column->at<GetType>(nested_path_);
|
||||
auto err = res.error();
|
||||
if (err != simdjson::SUCCESS) {
|
||||
AssertInfo(err == simdjson::INCORRECT_TYPE ||
|
||||
err == simdjson::NO_SUCH_FIELD,
|
||||
"Failed to parse json, err: {}",
|
||||
err);
|
||||
AssertInfo(
|
||||
err == simdjson::INCORRECT_TYPE ||
|
||||
err == simdjson::NO_SUCH_FIELD ||
|
||||
err == simdjson::INVALID_JSON_POINTER,
|
||||
"Failed to parse json, err: {}, json: {}, pointer: {}",
|
||||
err,
|
||||
*json_column,
|
||||
nested_path_);
|
||||
if (err == simdjson::INVALID_JSON_POINTER) {
|
||||
LOG_WARN("Invalid json pointer, json: {}, pointer: {}",
|
||||
*json_column,
|
||||
nested_path_);
|
||||
}
|
||||
{
|
||||
folly::SharedMutex::WriteHolder lock(this->mutex_);
|
||||
this->null_offset_.push_back(i);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user