diff --git a/src/yb/tablet/operations/snapshot_operation.cc b/src/yb/tablet/operations/snapshot_operation.cc index 71dfb9cc3fc7..249ef2e2d328 100644 --- a/src/yb/tablet/operations/snapshot_operation.cc +++ b/src/yb/tablet/operations/snapshot_operation.cc @@ -26,8 +26,8 @@ using std::string; -DEFINE_UNKNOWN_bool(consistent_restore, false, - "Whether to enable consistent restoration of snapshots"); +DEFINE_UNKNOWN_bool( + consistent_restore, true, "Whether to enable consistent restoration of snapshots"); DEFINE_test_flag(bool, modify_flushed_frontier_snapshot_op, true, "Whether to modify flushed frontier after " diff --git a/src/yb/tools/yb-admin-snapshot-schedule-test.cc b/src/yb/tools/yb-admin-snapshot-schedule-test.cc index 3bba2fe180c9..4102cae33abb 100644 --- a/src/yb/tools/yb-admin-snapshot-schedule-test.cc +++ b/src/yb/tools/yb-admin-snapshot-schedule-test.cc @@ -3223,9 +3223,7 @@ void YbAdminSnapshotScheduleTest::TestGCHiddenTables() { class YbAdminSnapshotConsistentRestoreTest : public YbAdminSnapshotScheduleTest { public: - virtual std::vector ExtraTSFlags() { - return { "--consistent_restore=true", "--TEST_tablet_delay_restore_ms=0" }; - } + virtual std::vector ExtraTSFlags() { return {"--TEST_tablet_delay_restore_ms=0"}; } }; Status WaitWrites(int num, std::atomic* current) { @@ -3490,10 +3488,6 @@ TEST_F_EX(YbAdminSnapshotScheduleTest, DDLsDuringRestore, YbAdminSnapshotConsist class YbAdminSnapshotConsistentRestoreFailoverTest : public YbAdminSnapshotScheduleTest { public: - std::vector ExtraTSFlags() override { - return { "--consistent_restore=true" }; - } - std::vector ExtraMasterFlags() override { return { "--TEST_skip_sending_restore_finished=true" }; }