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
error in PolicyEagerFreeAssignOperatorMemoryKB makes query end without calling mppExecutorCleanup #12690
Labels
Comments
5 tasks
5 tasks
adam8157
pushed a commit
that referenced
this issue
May 25, 2022
…rt (#12694) According to a reported error in PolicyEagerFreeAssignOperatorMemoryKB makes query end without calling mppExecutorCleanup #12690, the code path in `standard_ExecutorStart` didn't handle exception in `PolicyAutoAssignOperatorMemoryKB` and `PolicyEagerFreeAssignOperatorMemoryKB` calling, which may cause the OOM exception not to be handled in `standard_ExecutorStart` but throw to upper `PortalStart` methods, while there is also an exception handling mechanism in `PortalStart` but `mppExecutorCleanup` will not call because `portal->queryDesc` will be `NULL` in certain transaction states. This commit fixes it.
Aegeaner
added a commit
to Aegeaner/gpdb
that referenced
this issue
May 25, 2022
…rt (greenplum-db#12694) According to a reported error in PolicyEagerFreeAssignOperatorMemoryKB makes query end without calling mppExecutorCleanup greenplum-db#12690, the code path in `standard_ExecutorStart` didn't handle exception in `PolicyAutoAssignOperatorMemoryKB` and `PolicyEagerFreeAssignOperatorMemoryKB` calling, which may cause the OOM exception not to be handled in `standard_ExecutorStart` but throw to upper `PortalStart` methods, while there is also an exception handling mechanism in `PortalStart` but `mppExecutorCleanup` will not call because `portal->queryDesc` will be `NULL` in certain transaction states. This commit fixes it.
5 tasks
adam8157
pushed a commit
that referenced
this issue
Jul 7, 2022
…tart() According to a reported error in `PolicyEagerFreeAssignOperatorMemoryKB()` makes query end without calling `mppExecutorCleanup()` #12690, the code path in `standard_ExecutorStart()` didn't handle exception in `PolicyAutoAssignOperatorMemoryKB()` and `PolicyEagerFreeAssignOperatorMemoryKB()` calling, which may cause the OOM exception not to be handled in `standard_ExecutorStart()` but throw to upper `PortalStart()` methods, while there is also an exception handling mechanism in `PortalStart()` but `mppExecutorCleanup()` will not call because `portal->queryDesc` will be `NULL` in certain transaction states.
5 tasks
24nishant
pushed a commit
to 24nishant/gpdb
that referenced
this issue
Oct 17, 2022
…tart() According to a reported error in `PolicyEagerFreeAssignOperatorMemoryKB()` makes query end without calling `mppExecutorCleanup()` greenplum-db#12690, the code path in `standard_ExecutorStart()` didn't handle exception in `PolicyAutoAssignOperatorMemoryKB()` and `PolicyEagerFreeAssignOperatorMemoryKB()` calling, which may cause the OOM exception not to be handled in `standard_ExecutorStart()` but throw to upper `PortalStart()` methods, while there is also an exception handling mechanism in `PortalStart()` but `mppExecutorCleanup()` will not call because `portal->queryDesc` will be `NULL` in certain transaction states.
adam8157
added a commit
to adam8157/gpdb
that referenced
this issue
Dec 20, 2022
Issue greenplum-db#12690, the code path in `standard_ExecutorStart` didn't handle exception of `Policy*AssignOperatorMemoryKB`, which may cause the OOM exception not handled in `standard_ExecutorStart` but throw to upper `PortalStart` methods, in that case the hook needed by GPCC will not be called. This commit fixed the issue.
The new 6X version fix: #14677 |
adam8157
added a commit
that referenced
this issue
Jan 10, 2023
Issue #12690, the code path in `standard_ExecutorStart` didn't handle exception of `Policy*AssignOperatorMemoryKB`, which may cause the OOM exception not handled in `standard_ExecutorStart` but throw to upper `PortalStart` methods, in that case the hook needed by GPCC will not be called. This commit fixed the issue.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
In GPDB6, when memory is limit, query could throw an error "insufficient memory reserved for statement" without calling mppExecutorCleanup function and left some hooks should be called in the function not called at all.
Greenplum version or build
6.17.5
OS version and uname -a
centos 7
autoconf options used ( config.status --config )
Installation information ( pg_config )
Expected behavior
mppExecutorCleanup should be called at the end whenever an error happened.
Actual behavior
Step to reproduce the behavior
The text was updated successfully, but these errors were encountered: