print logs when parse scroll result failed (#1661)
This commit is contained in:
@ -132,6 +132,7 @@ Status ScrollParser::parse(const std::string& scroll_result) {
|
||||
}
|
||||
|
||||
if (!_document_node.HasMember(FIELD_SCROLL_ID)) {
|
||||
LOG(WARNING) << "Document has not a scroll id field scroll reponse:" << scroll_result;
|
||||
return Status::InternalError("Document has not a scroll id field");
|
||||
}
|
||||
|
||||
@ -148,6 +149,7 @@ Status ScrollParser::parse(const std::string& scroll_result) {
|
||||
VLOG(1) << "es_scan_reader total hits: " << _total << " documents";
|
||||
const rapidjson::Value &inner_hits_node = outer_hits_node[FIELD_INNER_HITS];
|
||||
if (!inner_hits_node.IsArray()) {
|
||||
LOG(WARNING) << "errors while parse scroll reponse:" << scroll_result;
|
||||
return Status::InternalError("inner hits node is not an array");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user