Dong Li created HAWQ-573: ---------------------------- Summary: Resource leak when cancel copy Key: HAWQ-573 URL: https://issues.apache.org/jira/browse/HAWQ-573 Project: Apache HAWQ Issue Type: Bug Components: Resource Manager Reporter: Dong Li Assignee: Lei Chang
Using select pg_cancel_backend() to cancel a "copy test5_pt2 (c1, c2, c3, c4, c5, c6) FROM stdin;" query make the resource leak. You can see the log, when cancel the query, it didn't return resource to resource manager. p25926 is the QD process. The qd process didn't think it has acquired resource, but the RM has allocated resource. When qd is running in the function processAllCommFileDescs (called by acquireResourceFromRM, which is a RPC to allocate resource from QD to RM), it received a "query cancel pending'" interrupt, and it handles the interrupt and error out. -- This message was sent by Atlassian JIRA (v6.3.4#6332)