You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "Goden Yao (JIRA)" <ji...@apache.org> on 2016/07/14 19:01:20 UTC
[jira] [Closed] (HAWQ-539) Improve code coverage for dispatcher:
connection_fail_after_gang_creation& create_cdb_dispath_result_object&
dispmgt_concurrent_connect
[ https://issues.apache.org/jira/browse/HAWQ-539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Goden Yao closed HAWQ-539.
--------------------------
Resolution: Fixed
Fix Version/s: 2.0.0.0-incubating
> 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
> Fix For: 2.0.0.0-incubating
>
>
> 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)