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:
lichaoyong
2020-03-07 11:16:48 +08:00
committed by GitHub
parent 1d296e907d
commit c83729435f
3 changed files with 36 additions and 9 deletions

View File

@ -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;