Skip to content

fix(bq_driver): Fix tracing file size and file count#1454

Merged
sachinpro merged 3 commits into
mainfrom
update_trace_config
Mar 17, 2026
Merged

fix(bq_driver): Fix tracing file size and file count#1454
sachinpro merged 3 commits into
mainfrom
update_trace_config

Conversation

@NeerajDwivedii
Copy link
Copy Markdown
Collaborator

@NeerajDwivedii NeerajDwivedii commented Mar 13, 2026

This PR fixes the logging trace file parameters LogFileCount and LogFileSize. Log files are now created according to the values specified for these attributes. Also, default values also provided for log trace attributes. Additionally, the log file size unit has been changed from MB to KB, and the same update has been applied in the UI as well.

windows gha checks- https://github.com/googleapis/cpp-bigquery-odbc/actions/runs/23038050281

default values showing in ui:
image

installer url: https://drive.google.com/file/d/1_2HryH3iZi4sAsy7lOmZgU5RkXAa9hBb/view?usp=sharing

if (trace_option != nullptr && trace_option->max_threads > 0) {
max_threads = trace_option->max_threads;
}
int max_threads = (trace_option != nullptr) ? trace_option->max_threads : 0;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

keep default thread as 8 not 0.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

fclose(fp_);
fp_ = nullptr;
}
static absl::TimeZone const kTimeZone = absl::LocalTimeZone();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you move this logic in a separate function

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

@NeerajDwivedii
Copy link
Copy Markdown
Collaborator Author

NeerajDwivedii commented Mar 13, 2026

This PR includes all the tracing-related changes that were previously part of PR #1323.

PR #1323 now contains only the end-to-end integration testing changes.

@NeerajDwivedii NeerajDwivedii marked this pull request as ready for review March 13, 2026 12:23
@NeerajDwivedii NeerajDwivedii requested a review from a team as a code owner March 13, 2026 12:23
@NeerajDwivedii
Copy link
Copy Markdown
Collaborator Author

@sachinpro PR ready for review

Copy link
Copy Markdown
Collaborator

@sachinpro sachinpro left a comment

Choose a reason for hiding this comment

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

I hope you tested the logging E2E with this PR on windows.

I am approving this but please provide the default values for the max file size and count on the configuration screen in the next PR.

@sachinpro sachinpro merged commit ca39867 into main Mar 17, 2026
16 checks passed
@sachinpro sachinpro deleted the update_trace_config branch March 17, 2026 15:09
@NeerajDwivedii
Copy link
Copy Markdown
Collaborator Author

NeerajDwivedii commented Mar 18, 2026

I hope you tested the logging E2E with this PR on windows.

I am approving this but please provide the default values for the max file size and count on the configuration screen in the next PR.

@sachinpro The default values for max file size and file count on the configuration screen are included in this PR—please refer to the screenshot in the PR description.

The logging E2E test cases for these changes will be raised separately.

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