Skip to content

Conversation

@mohitkhullar
Copy link
Contributor

@mohitkhullar mohitkhullar commented Jan 6, 2026

No description provided.

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 ✓.
Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
consumer_non_atomic_default_consumer_generated
sc_downgrade
insert_lots_ssl_generated
insert_lots
api_tst

static void load_cfg(char *db, char *tier)
{
cdb2_hndl_tp *hndl = NULL;
int rc = cdb2_open(&hndl, db, tier, 0);
Copy link
Contributor

@chands10 chands10 Jan 6, 2026

Choose a reason for hiding this comment

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

tier is a hostname here. Currently fails on roborivers when using 0 flag (which honestly makes sense). There's 2 reasons why is passes on bb cdb2api.

  1. It skips dbinfo (open does this too by default). To skip dbinfo also require to have a connection in sockpool to the db already (roborivers won't have that, at least doesn't in it's current setup?) (at least for open sockpool). If bb didn't skip dbinfo then it would also complain about using 0 as flag
    2: on bb sockpool typestring is comdb2/dbname/hostname/newsql/random_roo (the m doesn't fit in). bbcdb2api doesn't care that the length of the sockpool typestr and will still attempt to contact sockpool. Open does care and will check the length (https://github.com/bloomberg/comdb2/blob/main/cdb2api/cdb2api.c#L3099). Therefore since the typestring doesn't fit, open won't skip dbinfo, and going through the normal path you can't use 0 flag and hostname

Copy link
Contributor

@chands10 chands10 Jan 6, 2026

Choose a reason for hiding this comment

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

Also not even sure how you get a hostname/random_roo(m) combo in sockpool to start with, and not hostname/dc. Maybe because bb sockpool will open a new connection for you if needed

Signed-off-by: Mohit Khullar <mkhullar1@bloomberg.net>
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