Quanlong Huang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/23206
Change subject: IMPALA-14227: (Addendum) Add more tests for catalogd HA warm failover ...................................................................... IMPALA-14227: (Addendum) Add more tests for catalogd HA warm failover This adds more tests in test_catalogd_ha.py for warm failover. Refactored _test_metadata_after_failover to run in the following way: - Run DDL/DML in the active catalogd. - Kill the active catalogd and wait until the failover finishes. - Verify the DDL/DML results in the new active catalogd. - Restart the killed catalogd It accepts two methods in parameters to perform the DDL/DML and the verifier. In the last step, the killed catalogd is started so we keep having 2 catalogd and can merge these into a single test by invoking _test_metadata_after_failover for different method pairs. This saves some test time. The following DDL/DML statements are tested: - CreateTable - AddPartition - REFRESH - DropPartition - INSERT - DropTable After each failover, the table is verified to be warmed up (i.e. loaded). Also validate flags in startup to make sure enable_insert_events and enable_reload_events are both set to true when warm failover is enabled, i.e. --catalogd_ha_reset_metadata_on_failover=false. Change-Id: I6b20adeb0bd175592b425e521138c41196347600 --- M be/src/common/init.cc M fe/src/main/java/org/apache/impala/catalog/CatalogServiceCatalog.java M tests/custom_cluster/test_catalogd_ha.py 3 files changed, 181 insertions(+), 48 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/06/23206/1 -- To view, visit http://gerrit.cloudera.org:8080/23206 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I6b20adeb0bd175592b425e521138c41196347600 Gerrit-Change-Number: 23206 Gerrit-PatchSet: 1 Gerrit-Owner: Quanlong Huang <[email protected]>
