File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -343,6 +343,15 @@ void FetchVerticesExecutor::processAllPropsResult(RpcResponse &&result) {
343
343
return ;
344
344
}
345
345
auto schema = ectx ()->schemaManager ()->getTagSchema (spaceId_, tdata.tag_id , ver);
346
+ if (schema == nullptr ) {
347
+ // It actually should never be null here.
348
+ // But issue1699 indicates that it would be nullptr when schema
349
+ // was altered. This is a hot fix through reporting error, and we will
350
+ // find out why it is null.
351
+ LOG (ERROR) << " Schema not found for id: " << tdata.tag_id ;
352
+ doError (Status::Error (" Get schema failed when handle data." ));
353
+ return ;
354
+ }
346
355
if (rsWriter == nullptr ) {
347
356
outputSchema = std::make_shared<SchemaWriter>();
348
357
outputSchema->appendCol (" VertexID" , nebula::cpp2::SupportedType::VID);
You can’t perform that action at this time.
0 commit comments