-
Notifications
You must be signed in to change notification settings - Fork 234
cdb2api_direct test #5660
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
base: main
Are you sure you want to change the base?
cdb2api_direct test #5660
Conversation
roborivers
left a comment
There was a problem hiding this 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); |
There was a problem hiding this comment.
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.
- 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
There was a problem hiding this comment.
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>
b187d81 to
af87423
Compare
No description provided.