Skip to content

Add bulk import tests #5268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

morgando
Copy link
Contributor

@morgando morgando commented Jul 9, 2025

  • Test dropping src table while we're copying files to dst db
  • Test running election on src db while we're copying files to dst db

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: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 7/615 tests failed ⚠.

The first 10 failing tests are:
bulkimport
reco-ddlk-sql
unionpar_maxqueue
phys_rep_tiered_nosource_generated
sc_lotsoftables_logicalsc_generated
sc_lotsoftables
insert_lots_large_tran_generated

@morgando morgando force-pushed the bulk_import_tests branch 7 times, most recently from e280542 to 23f70d7 Compare July 14, 2025 20:51
@@ -380,6 +403,116 @@ function test_resume_is_blocked() {
)
}

function test_src_db_table_dropped_during_import() {
Copy link
Contributor Author

@morgando morgando Jul 14, 2025

Choose a reason for hiding this comment

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

  • table is dropped before src db sends any files -> dst db will not see src table and import will fail. This is tested in test_source_table_does_not_exist
  • table is dropped after src db sends all files -> not worth testing: from the perspective of the dst db this is equivalent to the drop not happening
  • table is dropped while src db sends files -> tested in test_src_db_table_dropped_during_import. comdb2_files sends transaction log files after sending all btree files. So if the drop happens after btree files have been sent, then the import will error if the txn log reflecting the drop has been flushed to disk by the time it is sent to the src db and succeed if it hasn't (because the dst db brings up a copy of the src db with the files that it gets and runs recovery on it). Either of these outcomes is fine.

@morgando morgando marked this pull request as ready for review July 14, 2025 21:12
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: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 10/615 tests failed ⚠.

The first 10 failing tests are:
disttxn [setup failure]
cldeadlock
unionpar_maxqueue
reco-ddlk-sql
analyze
sc_lotsoftables_logicalsc_generated
sc_lotsoftables
insert_lots_ssl_generated
insert_lots_large_tran_generated

@morgando morgando force-pushed the bulk_import_tests branch from 23f70d7 to a8df219 Compare July 15, 2025 14:55
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: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 10/616 tests failed ⚠.

The first 10 failing tests are:
socksql_master_swings
unionpar_maxqueue
phys_rep_tiered
bulkimport
sc_lotsoftables_logicalsc_generated
sc_lotsoftables
insert_lots_ssl_generated
insert_lots_large_tran_generated
selectv_rcode
cldeadlock

Signed-off-by: mdouglas47 <[email protected]>
@morgando morgando force-pushed the bulk_import_tests branch from a8df219 to 7e6492a Compare July 16, 2025 18:43
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: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 11/616 tests failed ⚠.

The first 10 failing tests are:
incremental_backup_usenames
ixentry_order
bulkimport
unionpar_maxqueue
phys_rep_tiered_firstfile_generated
sc_lotsoftables
reco-ddlk-sql
insert_lots_ssl_generated
insert_lots_large_tran_generated
insert_lots

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.

2 participants