Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YSQL] Portal restart data collection should not rely on unnamed_stmt_psrc #2975

Closed
frozenspider opened this issue Nov 20, 2019 · 0 comments
Closed
Assignees
Labels
area/ysql Yugabyte SQL (YSQL) kind/bug This issue is a bug

Comments

@frozenspider
Copy link
Contributor

In yb_collect_portal_restart_data implemented for #1237, we were collecting some values from unnamed_stmt_psrc. We were relying on it always matching current statement, but after increasing buffer size it turned out that this isn't in fact guaranteed. We need to change yb_collect_portal_restart_data to only rely on portal itself.

@frozenspider frozenspider added kind/bug This issue is a bug area/ysql Yugabyte SQL (YSQL) labels Nov 20, 2019
@frozenspider frozenspider self-assigned this Nov 20, 2019
frozenspider added a commit that referenced this issue Nov 22, 2019
… fix a bug with unnamed_stmt_psrc

Summary:
This revision addresses two issues.

1) [[ #2974 | #2974 ]]: Instead of 8 KiB hardcoded `PQ_SEND_BUFFER_SIZE`, output buffer size is now controlled by a `ysql_output_buffer_size` gflag, with default value of 256 KiB. Test has been amended accordingly.

2) [[ #2975 | #2975 ]]: Fixed bug with getting values from `unnamed_stmt_psrc` when collecting portal restart data. We were relying on it always matching current statement, but after increasing buffer size it turned out that this isn't in fact guaranteed. Changed `yb_collect_portal_restart_data` to only rely on portal itself.

Depends on D7549

Test Plan: ./yb_build.sh --java-test org.yb.pgsql.TestPgReadRestarts

Reviewers: neil, neha, dmitry, kannan, mihnea, mikhail

Reviewed By: mihnea, mikhail

Subscribers: yql

Differential Revision: https://phabricator.dev.yugabyte.com/D7591
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/bug This issue is a bug
Projects
None yet
Development

No branches or pull requests

2 participants