-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#22071] YSQL: Fix Bitmap Scan Postmaster Crash
Summary: D34122 / 7b418b8 introduced a fix for Bitmap Scan pushdown on primary indexes for colocated tables. This inadvertently caused a TServer crash for Bitmap Scan pushdown on secondary indexes on text columns on colocated tables. When the tserver crashes, the Postmaster exits normally The check added in D34122 classified secondary indexes as primary indexes too - which worked fine for integer columns, but not for text columns. That's why this issue wasn't caught by the tests - because there were no colocated text tests. Updating the `is_primary` check allows for the pushdown expressions to be applied as expected to either the main table or the remote filter. Also, I created `relation` and `index` variables to increase the readability of `nodeYbBitmapIndexScan`. Jira: DB-10992 Test Plan: ``` ./yb_build.sh --java-test 'org.yb.pgsql.TestPgRegressYbBitmapScans' ``` Updated the bitmap scan regression test to include text columns on the colocated table. Reviewers: tnayak, amartsinchyk Reviewed By: tnayak, amartsinchyk Subscribers: smishra, yql Differential Revision: https://phorge.dev.yugabyte.com/D34397
- Loading branch information
Showing
3 changed files
with
140 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.