Skip to content

Commit

Permalink
return with failure if we can't resolve hostname to address
Browse files Browse the repository at this point in the history
Signed-off-by: Aakash Arayambeth <aarayambeth@bloomberg.net>
  • Loading branch information
Aakash Arayambeth committed Dec 4, 2024
1 parent 3a415b2 commit d58eea6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions db/comdb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ int gbl_osql_verify_ext_chk = 1;

int gbl_test_badwrite_intvl = 0;
int gbl_test_blob_race = 0;
int gbl_test_resolve_hostname_failure = 0;
int gbl_skip_ratio_trace = 0;

int gbl_throttle_sql_overload_dump_sec = 5;
Expand Down
1 change: 1 addition & 0 deletions db/db_tunables.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ extern int gbl_altersc_latency_inc;
extern int gbl_sc_history_max_rows;
extern int gbl_sc_status_max_rows;
extern int gbl_rep_process_pstack_time;
extern int gbl_test_resolve_hostname_failure;

extern void set_snapshot_impl(snap_impl_enum impl);
extern const char *snap_impl_str(snap_impl_enum impl);
Expand Down
2 changes: 2 additions & 0 deletions db/db_tunables.h
Original file line number Diff line number Diff line change
Expand Up @@ -2460,4 +2460,6 @@ REGISTER_TUNABLE("sc_status_max_rows", "Max number of rows returned in comdb2_sc
TUNABLE_INTEGER, &gbl_sc_status_max_rows, 0, NULL, NULL, NULL, NULL);
REGISTER_TUNABLE("rep_process_pstack_time", "pstack the server if rep_process runs longer than time specified in secs (Default: 30s)",
TUNABLE_INTEGER, &gbl_rep_process_pstack_time, 0, NULL, NULL, NULL, NULL);
REGISTER_TUNABLE("test_resolve_hostname_failure (Default: off)", NULL, TUNABLE_INTEGER, &gbl_test_resolve_hostname_failure,
READONLY, NULL, NULL, NULL, NULL);
#endif /* _DB_TUNABLES_H */

0 comments on commit d58eea6

Please sign in to comment.