@@ -6719,14 +6719,14 @@ Y_UNIT_TEST_SUITE(TFlatTableExecutor_BTreeIndex) {
6719
6719
}
6720
6720
};
6721
6721
6722
- Y_UNIT_TEST (EnableLocalDBBtreeIndex_Default) { // uses flat index
6722
+ Y_UNIT_TEST (EnableLocalDBBtreeIndex_Default) { // uses b-tree index
6723
6723
TMyEnvBase env;
6724
6724
TRowsModel rows;
6725
6725
6726
6726
auto &appData = env->GetAppData ();
6727
6727
UNIT_ASSERT_VALUES_EQUAL (appData.FeatureFlags .HasEnableLocalDBBtreeIndex (), false );
6728
6728
UNIT_ASSERT_VALUES_EQUAL (appData.FeatureFlags .HasEnableLocalDBFlatIndex (), false );
6729
- UNIT_ASSERT_VALUES_EQUAL (appData.FeatureFlags .GetEnableLocalDBBtreeIndex (), false );
6729
+ UNIT_ASSERT_VALUES_EQUAL (appData.FeatureFlags .GetEnableLocalDBBtreeIndex (), true );
6730
6730
UNIT_ASSERT_VALUES_EQUAL (appData.FeatureFlags .GetEnableLocalDBFlatIndex (), true );
6731
6731
auto counters = GetSharedPageCounters (env);
6732
6732
int readRows = 0 , failedAttempts = 0 ;
@@ -6743,8 +6743,8 @@ Y_UNIT_TEST_SUITE(TFlatTableExecutor_BTreeIndex) {
6743
6743
env.SendSync (new NFake::TEvCompact (TRowsModel::TableId));
6744
6744
env.WaitFor <NFake::TEvCompacted>();
6745
6745
6746
- // all pages are always kept in shared cache
6747
- UNIT_ASSERT_VALUES_EQUAL (counters->ActivePages ->Val (), 290 );
6746
+ // all pages are always kept in shared cache (except flat index)
6747
+ UNIT_ASSERT_VALUES_EQUAL (counters->ActivePages ->Val (), 334 );
6748
6748
6749
6749
env.SendSync (new NFake::TEvExecute{ new TTxFullScan (readRows, failedAttempts) });
6750
6750
UNIT_ASSERT_VALUES_EQUAL (readRows, 1000 );
@@ -6754,10 +6754,10 @@ Y_UNIT_TEST_SUITE(TFlatTableExecutor_BTreeIndex) {
6754
6754
env.SendSync (new TEvents::TEvPoison, false , true );
6755
6755
env.FireDummyTablet (ui32 (NFake::TDummy::EFlg::Comp));
6756
6756
6757
- // after restart we have no pages in private cache except flat index
6757
+ // after restart we have no pages in private cache
6758
6758
env.SendSync (new NFake::TEvExecute{ new TTxFullScan (readRows, failedAttempts) }, true );
6759
6759
UNIT_ASSERT_VALUES_EQUAL (readRows, 1000 );
6760
- UNIT_ASSERT_VALUES_EQUAL (failedAttempts, 286 );
6760
+ UNIT_ASSERT_VALUES_EQUAL (failedAttempts, 330 );
6761
6761
}
6762
6762
6763
6763
Y_UNIT_TEST (EnableLocalDBBtreeIndex_True) { // uses b-tree index
0 commit comments