[fix](ut) fix BE ut (#9831)
introduced from #8923, the github checks has some problem that failed to check BE ut in #8923
This commit is contained in:
@ -31,9 +31,9 @@ class TestNumBasedCumulativeCompactionPolicy : public testing::Test {
|
||||
public:
|
||||
TestNumBasedCumulativeCompactionPolicy() {}
|
||||
void SetUp() {
|
||||
_tablet_meta = static_cast<TabletMetaSharedPtr>(
|
||||
new TabletMeta(1, 2, 15673, 4, 5, TTabletSchema(), 6, {{7, 8}}, UniqueId(9, 10),
|
||||
TTabletType::TABLET_TYPE_DISK, TStorageMedium::HDD, ""));
|
||||
_tablet_meta = static_cast<TabletMetaSharedPtr>(new TabletMeta(
|
||||
1, 2, 15673, 4, 5, TTabletSchema(), 6, {{7, 8}}, UniqueId(9, 10),
|
||||
TTabletType::TABLET_TYPE_DISK, TStorageMedium::HDD, "", TCompressionType::LZ4F));
|
||||
|
||||
_json_rowset_meta = R"({
|
||||
"rowset_id": 540081,
|
||||
@ -335,9 +335,9 @@ public:
|
||||
config::cumulative_size_based_promotion_min_size_mbytes = 64;
|
||||
config::cumulative_size_based_compaction_lower_size_mbytes = 64;
|
||||
|
||||
_tablet_meta = static_cast<TabletMetaSharedPtr>(
|
||||
new TabletMeta(1, 2, 15673, 4, 5, TTabletSchema(), 6, {{7, 8}}, UniqueId(9, 10),
|
||||
TTabletType::TABLET_TYPE_DISK, TStorageMedium::HDD, ""));
|
||||
_tablet_meta = static_cast<TabletMetaSharedPtr>(new TabletMeta(
|
||||
1, 2, 15673, 4, 5, TTabletSchema(), 6, {{7, 8}}, UniqueId(9, 10),
|
||||
TTabletType::TABLET_TYPE_DISK, TStorageMedium::HDD, "", TCompressionType::LZ4F));
|
||||
|
||||
_json_rowset_meta = R"({
|
||||
"rowset_id": 540081,
|
||||
|
||||
@ -27,7 +27,8 @@ TEST(TabletMetaTest, SaveAndParse) {
|
||||
std::string meta_path = "./be/test/olap/test_data/tablet_meta_test.hdr";
|
||||
|
||||
TabletMeta old_tablet_meta(1, 2, 3, 4, 5, TTabletSchema(), 6, {{7, 8}}, UniqueId(9, 10),
|
||||
TTabletType::TABLET_TYPE_DISK, TStorageMedium::HDD, "");
|
||||
TTabletType::TABLET_TYPE_DISK, TStorageMedium::HDD, "",
|
||||
TCompressionType::LZ4F);
|
||||
EXPECT_EQ(Status::OK(), old_tablet_meta.save(meta_path));
|
||||
|
||||
{
|
||||
|
||||
@ -35,9 +35,9 @@ public:
|
||||
virtual ~TestTablet() {}
|
||||
|
||||
virtual void SetUp() {
|
||||
_tablet_meta = static_cast<TabletMetaSharedPtr>(
|
||||
new TabletMeta(1, 2, 15673, 4, 5, TTabletSchema(), 6, {{7, 8}}, UniqueId(9, 10),
|
||||
TTabletType::TABLET_TYPE_DISK, TStorageMedium::HDD, ""));
|
||||
_tablet_meta = static_cast<TabletMetaSharedPtr>(new TabletMeta(
|
||||
1, 2, 15673, 4, 5, TTabletSchema(), 6, {{7, 8}}, UniqueId(9, 10),
|
||||
TTabletType::TABLET_TYPE_DISK, TStorageMedium::HDD, "", TCompressionType::LZ4F));
|
||||
_json_rowset_meta = R"({
|
||||
"rowset_id": 540081,
|
||||
"tablet_id": 15673,
|
||||
|
||||
@ -53,7 +53,8 @@
|
||||
"delete_sign_idx": -1,
|
||||
"sequence_col_idx": -1,
|
||||
"sort_type": "LEXICAL",
|
||||
"sort_col_num": 0
|
||||
"sort_col_num": 0,
|
||||
"compression_type": "LZ4F"
|
||||
},
|
||||
"rs_metas": [
|
||||
{
|
||||
|
||||
@ -196,7 +196,7 @@ message TabletSchemaPB {
|
||||
optional int32 sequence_col_idx = 10 [default= -1];
|
||||
optional SortType sort_type = 11;
|
||||
optional int32 sort_col_num = 12;
|
||||
optional segment_v2.CompressionTypePB compression_type = 13;
|
||||
optional segment_v2.CompressionTypePB compression_type = 13 [default=LZ4F];
|
||||
}
|
||||
|
||||
enum TabletStatePB {
|
||||
|
||||
Reference in New Issue
Block a user