Chunling Wang created HAWQ-539:
----------------------------------

             Summary: Add fault injection 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)

Reply via email to