diff --git a/be/src/olap/rowset/rowset_meta_manager.cpp b/be/src/olap/rowset/rowset_meta_manager.cpp index 58a4208f209717..16bda887c358e1 100644 --- a/be/src/olap/rowset/rowset_meta_manager.cpp +++ b/be/src/olap/rowset/rowset_meta_manager.cpp @@ -91,11 +91,11 @@ Status RowsetMetaManager::get_json_rowset_meta(OlapMeta* meta, TabletUid tablet_ } Status RowsetMetaManager::save(OlapMeta* meta, TabletUid tablet_uid, const RowsetId& rowset_id, const RowsetMetaPB& rowset_meta_pb, bool enable_binlog) { - if (rowset_meta_pb.partition_id <= 0) { + if (rowset_meta_pb.partition_id() <= 0) { LOG(WARNING) << "invalid partition id " << rowset_meta_pb.partition_id() << " tablet " << rowset_meta_pb.tablet_id(); - return Status::InternalError("invalid partition id {}, tablet {}", - rowset_meta_pb.partition_id(), rowset_meta_pb.tablet_id()); + return Status::InternalError("invaid partition id {} tablet {}", + rowset_meta_pb.partition_id(), rowset_meta_pb.tablet_id()); } if (enable_binlog) { return _save_with_binlog(meta, tablet_uid, rowset_id, rowset_meta_pb); diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp index e5ef2eaad6aa80..0d9f21da326cda 100644 --- a/be/src/olap/tablet.cpp +++ b/be/src/olap/tablet.cpp @@ -243,8 +243,8 @@ void WriteCooldownMetaExecutors::WriteCooldownMetaExecutors::submit(TabletShared TabletSharedPtr Tablet::create_tablet_from_meta(TabletMetaSharedPtr tablet_meta, DataDir* data_dir) { if (tablet_meta->partition_id() <= 0) { - LOG(WARNING) << "unexpected partition id " << tablet_meta->partition_id() - << ", tablet " << tablet_meta->tablet_id(); + LOG(WARNING) << "invalid partition id " << tablet_meta->partition_id() << ", tablet " + << tablet_meta->tablet_id(); return nullptr; } return std::make_shared(tablet_meta, data_dir); diff --git a/be/src/olap/tablet_meta_manager.cpp b/be/src/olap/tablet_meta_manager.cpp index 7f775664df0fac..20f3872a03e958 100644 --- a/be/src/olap/tablet_meta_manager.cpp +++ b/be/src/olap/tablet_meta_manager.cpp @@ -93,10 +93,10 @@ Status TabletMetaManager::save(DataDir* store, TTabletId tablet_id, TSchemaHash std::string value; tablet_meta->serialize(&value); if (tablet_meta->partition_id() <= 0) { - LOG(WARNING) << "invalid partition id " << tablet_meta->partition_id() - << " tablet " << tablet_meta->tablet_id(); - return Status::InternalError("invaid partition id {} tablet {}", tablet_meta->partition_id(), - tablet_meta->tablet_id()); + LOG(WARNING) << "invalid partition id " << tablet_meta->partition_id() << " tablet " + << tablet_meta->tablet_id(); + return Status::InternalError("invaid partition id {} tablet {}", + tablet_meta->partition_id(), tablet_meta->tablet_id()); } OlapMeta* meta = store->get_meta(); VLOG_NOTICE << "save tablet meta"