Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#13600] DocDB: Fix Flakiness in the XClusterAlterUniverse* tests
Summary: The tests XClusterAlterUniverseAdminCliTest.TestAlterUniverseReplication* were failing because they were performing an AlterUniverseReplication using yb-admin which internally calls "IsSetupReplicationDone" on the XCluster universe with the .ALTER suffix. At the end of "AlterUniverseReplication", the universe with .ALTER is deleted and there is a code path which does not set the replication_error field in the PB correctly before returning. This results in the field retaining its default value and the yb-admin command failing with the following error: Bad status: Runtime error (yb/util/subprocess.cc:615): Subprocess '/Users/sandeep/code/yugabyte-db/build/debug-clang-dynamic-arm64-ninja/tests-tools/../bin/yb-admin' terminated with non-zero exit status 256 The internal error is: Runtime error (yb/common/wire_protocol.cc:253): (999 unknown) which comes the default value of AppStatusPB error code of 999. Fixed this by setting the replicationerror correctly Test Plan: ybd --cxx-test yb-admin-test_ent --gtest_filter XClusterAlterUniverseAdminCliTest.TestAlterUniverseReplication -n 10 Reviewers: nicolas, rahuldesirazu, hsunder Reviewed By: hsunder Subscribers: ybase, bogdan Differential Revision: https://phabricator.dev.yugabyte.com/D18999
- Loading branch information