Skip to content

{173778048} Count fix#5834

Open
chands10 wants to merge 3 commits intobloomberg:mainfrom
chands10:count_fix_2
Open

{173778048} Count fix#5834
chands10 wants to merge 3 commits intobloomberg:mainfrom
chands10:count_fix_2

Conversation

@chands10
Copy link
Copy Markdown
Contributor

See commit by commit

For first commit:
bdb_count doesn't use dta if no indices are available, led to seg fault. Instead of calling bdb_count_int call bdb_direct_count_int which does use dta if no index available.
Wrote robomark test direct_count for this
For second commit:
bdb_count_int had an optimization to find count using recnums first. Port that over to bdb_direct_count_int
Ported code and cleaned up into functions from https://github.com/bloomberg/comdb2/blob/main/bdb/count.c#L66

DIFFERENCE: DB_REP_HANDLE_DEAD isn't set to BDB_ERR_DEADLOCK anymore. Don't think this would ever be a possible rc though since locks acquired before calling bdb_direct_count_int?

Signed-off-by: Salil Chandra <schandra107@bloomberg.net>
Signed-off-by: Salil Chandra <schandra107@bloomberg.net>
Signed-off-by: Salil Chandra <schandra107@bloomberg.net>
@chands10
Copy link
Copy Markdown
Contributor Author

chands10 commented Mar 23, 2026

Same as #4133

But I can't get robor to pick up that pr

@chands10 chands10 changed the title Count fix 2 {173778048} Count fix Mar 23, 2026
Copy link
Copy Markdown

@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.

Cbuild submission: Error ⚠.
Regression testing: Success ✓.

The first 10 failing tests are:
scindex_logicalsc_generated
sc_resume_logicalsc_generated **quarantined**
reco-ddlk-sql **quarantined**
consumer_non_atomic_default_consumer_generated **quarantined**
remsql_locks_rte_connect_generated **quarantined**
remsql_locks **quarantined**
truncatesc_offline_generated [timeout] **quarantined**

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