Skip to content

Commit

Permalink
[2.23.1] docdb: Disable CDC long retention changes
Browse files Browse the repository at this point in the history
Summary:
Disable `cdc_immediate_transaction_cleanup` and `use_bootstrap_intent_ht_filter`
as relevant fixes are not present in 2.23.1 branch.

Test Plan: Jenkins: urgent, rebase: 2.23.1

Reviewers: rthallam

Reviewed By: rthallam

Subscribers: ybase

Tags: #jenkins-ready

Differential Revision: https://phorge.dev.yugabyte.com/D39804
  • Loading branch information
es1024 committed Nov 8, 2024
1 parent 5abe286 commit 6acbaf1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/yb/integration-tests/cdcsdk_ysql_test_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "yb/util/status.h"
#include "yb/util/test_thread_holder.h"

DECLARE_bool(cdc_write_post_apply_metadata);
DECLARE_bool(cdc_immediate_transaction_cleanup);

namespace yb {
namespace cdc {
Expand Down Expand Up @@ -2598,7 +2598,7 @@ Result<string> CDCSDKYsqlTest::GetUniverseId(PostgresMiniCluster* cluster) {
}

Status CDCSDKYsqlTest::WaitForPostApplyMetadataWritten(size_t expected_num_transactions) {
if (!GetAtomicFlag(&FLAGS_cdc_write_post_apply_metadata)) {
if (!GetAtomicFlag(&FLAGS_cdc_immediate_transaction_cleanup)) {
return Status::OK();
}
size_t num_intents = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/yb/tablet/tablet_bootstrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ DEFINE_RUNTIME_bool(skip_flushed_entries_in_first_replayed_segment, true,
"If applicable, only replay entries that are not flushed to RocksDB or necessary "
"to bootstrap retryable requests in the first replayed wal segment.");

DEFINE_RUNTIME_bool(use_bootstrap_intent_ht_filter, true,
DEFINE_RUNTIME_bool(use_bootstrap_intent_ht_filter, false,
"Use min replay txn start time filter for bootstrap.");

DECLARE_int32(retryable_request_timeout_secs);
Expand Down
2 changes: 1 addition & 1 deletion src/yb/tablet/transaction_participant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ DEFINE_RUNTIME_AUTO_bool(cdc_write_post_apply_metadata, kLocalPersisted, false,
"Write post-apply transaction metadata to intentsdb for transaction that have been applied but "
" have not yet been streamed by CDC.");

DEFINE_RUNTIME_bool(cdc_immediate_transaction_cleanup, true,
DEFINE_RUNTIME_bool(cdc_immediate_transaction_cleanup, false,
"Clean up transactions from memory after apply, even if its changes have not yet been "
"streamed by CDC.");
DEFINE_test_flag(int32, stopactivetxns_sleep_in_abort_cb_ms, 0,
Expand Down

0 comments on commit 6acbaf1

Please sign in to comment.