Skip to content

Fix bogus failure of test expr - #1678

Merged
rafsun42 merged 1 commit into
apache:PG15from
saygoodbyye:PG15
Apr 10, 2024
Merged

rafsun42 merged 1 commit into
apache:PG15from
saygoodbyye:PG15

Conversation

@saygoodbyye

@saygoodbyye saygoodbyye commented Mar 15, 2024 •

Copy link
Copy Markdown

All discussions were conducted in #1439
Changes:

  1. force_parallel_mode was set to 'regress' to avoid "CONTEXT: parallel worker" message appear
  2. fixed unsorted output in the specified query

@github-actions github-actions Bot added the PG15 PostgreSQL15 label Mar 15, 2024
@aked21
aked21 requested a review from rafsun42 April 10, 2024 05:19
@aked21

aked21 commented Apr 10, 2024

Copy link
Copy Markdown
Contributor

@rafsun42, please review this PR.

@rafsun42
rafsun42 merged commit 4d5c404 into apache:PG15 Apr 10, 2024
@rafsun42

Copy link
Copy Markdown
Member

@aked21 Merged.
@saygoodbyye Could you please create this PR for PG14, 13, 12 and 11 branch as well?

@rafsun42 rafsun42 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@jrgemignani

jrgemignani commented Apr 11, 2024 •

Copy link
Copy Markdown
Contributor

Please fix this PR before proceeding, it increased the runtime of the regression test for expr by ~5 times.

@rafsun42

Copy link
Copy Markdown
Member

@saygoodbyye Since force_parallel_mode is affecting performance of other queries in the test file, should we only apply SET force_parallel_mode TO regress; to the query that failed rather than the entire file, as previously discussed? For example-

...
SET force_parallel_mode TO regress;
SELECT * FROM cypher('keys', $$MATCH ()-[e]-() RETURN keys(e) ORDER BY e DESC $$) AS (edge_keys agtype);
RESET force_parallel_mode;
...

@jrgemignani

Copy link
Copy Markdown
Contributor

@rafsun42 @saygoodbyye This PR is at risk of being rolled back completely if the issue of the 5x increase in regression runtime is not resolved. Please make the changes that are necessary more targeted.

rafsun42 added a commit to rafsun42/age that referenced this pull request Apr 19, 2024
Fixes slow runtime, introduced in PR apache#1678, of the regression test expr. This patch
sets the config param `force_parallel_mode TO regress` only to a selective query
rather than the entire expr.sql file.
@rafsun42

Copy link
Copy Markdown
Member

@jrgemignani @saygoodbyye Created a PR #1772 addressing the issue. We can move this discussion there.

dehowef pushed a commit that referenced this pull request Apr 22, 2024
Fixes slow runtime, introduced in PR #1678, of the regression test expr. This patch
sets the config param `force_parallel_mode TO regress` only to a selective query
rather than the entire expr.sql file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PG15 PostgreSQL15

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants