Skip to content

2.25.2.0-b252

@ttyusupov ttyusupov tagged this 28 Mar 22:10
Summary:
It can happen that tablets are split during execution of ANALYZE query.

Added `PgAnalyzeTest.AnalyzeSamplingNonColocatedWithConcurrentSplits` for testing this scenario.

Updated `SampleBlocksFeed::FetchTo` to support splitting sample blocks and assign to child tablets in case split happened after we've determined sample blocks but before we've created requests. Without that change sample block on split boundary could be assigned only to one child tablet and we won't take data from another child tablet into account that would affect pg_stats accuracy and estimated number of rows.
Jira: DB-15817

Test Plan: PgAnalyzeTest.AnalyzeSamplingNonColocatedWithConcurrentSplits

Reviewers: amartsinchyk

Reviewed By: amartsinchyk

Subscribers: yql, ybase

Tags: #jenkins-ready

Differential Revision: https://phorge.dev.yugabyte.com/D42723
Assets 2
Loading