[
https://issues.apache.org/jira/browse/HAWQ-539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15196853#comment-15196853
]
ASF GitHub Bot commented on HAWQ-539:
-------------------------------------
Github user wcl14 closed the pull request at:
https://github.com/apache/incubator-hawq/pull/453
> Improve code coverage for dispatcher: connection_fail_after_gang_creation&
> create_cdb_dispath_result_object& dispmgt_concurrent_connect
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HAWQ-539
> URL: https://issues.apache.org/jira/browse/HAWQ-539
> Project: Apache HAWQ
> Issue Type: Sub-task
> Components: Dispatcher
> Reporter: Chunling Wang
> Assignee: Lei Chang
>
> add three fault injections below:
> 1. connection_fail_after_gang_creation
> In function dispatcher_bind_executor() of dispatcher.c, we inject faults
> before connection rebind.
> #ifdef FAULT_INJECTOR
> FaultInjector_InjectFaultIfSet(
>
> ConnectionFailAfterGangCreation,
>
> DDLNotSpecified,
>
> "", // databaseName
>
> ""); // tableName
> #endif
> 2. create_cdb_dispath_result_object
> In function cdbdisp_makeResult() of cdbdispatchresult.c, we inject
> out-of-memory before calling PQExpBufferBroken().
> #ifdef FAULT_INJECTOR
> FaultInjector_InjectFaultIfSet(
>
> CreateCdbDispathResultObject,
>
> DDLNotSpecified,
>
> "", // databaseName
>
> ""); // tableName
> #endif
> 3. worker_manager_submit_job
> Inject error in function workermgr_submit_job() of workermgr.c.
> #ifdef FAULT_INJECTOR
> FaultInjector_InjectFaultIfSet(
>
> WorkerManagerSubmitJob,
>
> DDLNotSpecified,
>
> "", // databaseName
>
> ""); // tableName
> #endif
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)