Skip to content

Conversation

@morgando
Copy link
Contributor

@morgando morgando commented Nov 28, 2025

Cleaned up the 'newsi' snapshot implementation. This was a conservative pass — I only removed code that was clearly gated behind newsi tunables. There’s probably some leftover newsi logic that isn’t behind a tunable and could be cleaned up later, but this should cover most of it.

Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding style check: Success ✓.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
blkseq_serial_generated
analyze
consumer_non_atomic_default_consumer_generated
truncatesc_offline_generated
insert_lots_ssl_generated
insert_lots
reco-ddlk-sql


if (!gbl_new_snapisol_asof) {
DB_LSN lsn = {0};
bdb_clean_pglogs_queues(bdb_state, lsn, 0);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function does anything if gbl_new_snapisol is enabled, so deleted that function and all of its invocations.

PGNO(parent), RE_NREC(parent), &b,
&parent->lsn)) != 0)
goto stop;
if (bdb_relink_pglogs(dbp->dbenv->app_private,
Copy link
Contributor Author

@morgando morgando Nov 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@morgando morgando Nov 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bdb_relink_pglogs doesn't do anything if !gbl_new_snapisol. Deleted it and all invocations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timestamp = txn_dist_commit_args->timestamp;

ret =
bdb_transfer_pglogs_to_queues(dbenv->app_private, pglogs,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only runs if gbl_new_snapisol. Deleted that function and all of its invocations

else if (txn_args)
timestamp = txn_args->timestamp;

ret = bdb_transfer_pglogs_to_queues(dbenv->app_private, pglogs, keycnt,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goto err;
}

ret = bdb_txn_pglogs_init(dbenv->app_private, &txn->pglogs_hashtbl,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only does anything if gbl_new_snapisol. deleted function and invocations.


/* We use the (incorrect) 'prepare' lsn collecting pglogs above */
bdb_update_pglogs_commitlsn(dbenv->app_private, p->pglogs, p->keycnt, lsn_out);
bdb_transfer_pglogs_to_queues(dbenv->app_private, p->pglogs, p->keycnt, 0,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding style check: Success ✓.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 0/0 tests failed ⚠.

Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding style check: Success ✓.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
logfill_logput_window_generated
insert_lots
consumer_non_atomic_default_consumer_generated
truncatesc_offline_generated
insert_lots_ssl_generated

@morgando
Copy link
Contributor Author

morgando commented Dec 9, 2025

Thanks Rivers!

@morgando morgando merged commit a2395e1 into bloomberg:main Dec 9, 2025
4 checks passed
@morgando morgando deleted the del_newsi branch December 9, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants