Write delete predicate into RowsetMeta upon upgrade from Doris-0.10 to Doris-0.11 (#3044)
If delete predicate exists in meta in Doris-0.10, all of this predicates should be remained. There is an confused place in Doris-0.10. The delete predicate only exists in OLAPHeaderMessage and PPendingDelta, not in PDelta. This trick results this bug.
This commit is contained in:
@ -602,8 +602,8 @@ OLAPStatus EngineCloneTask::_convert_to_new_snapshot(const string& clone_dir, in
|
||||
OlapSnapshotConverter converter;
|
||||
TabletMetaPB tablet_meta_pb;
|
||||
vector<RowsetMetaPB> pending_rowsets;
|
||||
res = converter.to_new_snapshot(olap_header_msg, clone_dir, clone_dir, &tablet_meta_pb,
|
||||
&pending_rowsets, false);
|
||||
res = converter.to_new_snapshot(olap_header_msg, clone_dir, clone_dir,
|
||||
&tablet_meta_pb, &pending_rowsets, false);
|
||||
if (res != OLAP_SUCCESS) {
|
||||
LOG(WARNING) << "fail to convert snapshot to new format. dir='" << clone_dir;
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user