diff --git a/tree/ntuple/v7/test/ntuple_view.cxx b/tree/ntuple/v7/test/ntuple_view.cxx index 2ba07a6682b44..92746dd29b306 100644 --- a/tree/ntuple/v7/test/ntuple_view.cxx +++ b/tree/ntuple/v7/test/ntuple_view.cxx @@ -293,6 +293,7 @@ TEST(RNTuple, ViewFrameworkUse) auto model = RNTupleModel::Create(); auto ptrPx = model->MakeField("px"); auto ptrPy = model->MakeField("py"); + // The trigger pages make a hole in the on-disk layout that is not (purposefully) read model->MakeField("trigger"); auto ptrPz = model->MakeField("pz"); @@ -346,6 +347,8 @@ TEST(RNTuple, ViewFrameworkUse) } // Ensure that cluster prefetching and smearing of read requests works + // Note that "nClusterLoaded" is the number of _partial_ clusters preloaded from storage. Because we read + // from the first cluster first px and then py, we'll call two times `LoadCluster()` on the first cluster. EXPECT_LT(reader->GetDescriptor().GetNClusters(), reader->GetMetrics().GetCounter("RNTupleReader.RPageSourceFile.nClusterLoaded")->GetValueAsInt()); EXPECT_LT(reader->GetMetrics().GetCounter("RNTupleReader.RPageSourceFile.nReadV")->GetValueAsInt(),