Skip to content

Check for NULL dbinfo, reset node seq#5960

Open
chands10 wants to merge 2 commits into
bloomberg:mainfrom
chands10:c25
Open

Check for NULL dbinfo, reset node seq#5960
chands10 wants to merge 2 commits into
bloomberg:mainfrom
chands10:c25

Conversation

@chands10
Copy link
Copy Markdown
Contributor

@chands10 chands10 commented May 21, 2026

See commit by commit

The second commit is changes I've added that are not ports. But if we do a dbinfo response, I believe we need to reset these structures since they correspond to a stale host list

Comment thread cdb2api/cdb2api.c
hndl->connected_host = -1;
hndl->retry_all = 1;
newsql_disconnect(hndl, hndl->sb, __LINE__);
hndl->node_seq = 0;
Copy link
Copy Markdown
Contributor Author

@chands10 chands10 May 21, 2026

Choose a reason for hiding this comment

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

set node seq to 0 since we did dbinfo response. bb does this

Signed-off-by: Salil Chandra <schandra107@bloomberg.net>
Comment thread cdb2api/cdb2api.c
parse_dbresponse(dbinfo_response, hndl->hosts, hndl->ports, &hndl->master, &hndl->num_hosts,
&hndl->num_hosts_sameroom, hndl->debug_trace, &hndl->s_sslmode);
cdb2__dbinforesponse__free_unpacked(dbinfo_response, NULL);
hndl->node_seq = 0;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think we need to set node seq = 0 here in retry_queries too since it's dbinfo response? bb doesn't check for type dbinfo response in retry_queries, but it probably should I think

@chands10 chands10 requested a review from markhannum May 21, 2026 19:05
Signed-off-by: Salil Chandra <schandra107@bloomberg.net>
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: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
sc_resume_logicalsc_generated **quarantined**
consumer_non_atomic_default_consumer_generated **quarantined**
longreq_stats
reco-ddlk-sql [timeout] **quarantined**

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

The first 10 failing tests are:
sp_snapshot_generated
triggersc_latency
consumer_non_atomic_default_consumer_generated **quarantined**
reco-ddlk-sql [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