Skip to content

Bug Fix: Trim Status File When Exceeding 80KB#238

Merged
shahneerali merged 7 commits into
Azure:devfrom
shahneerali:statusSize
May 28, 2025
Merged

Bug Fix: Trim Status File When Exceeding 80KB#238
shahneerali merged 7 commits into
Azure:devfrom
shahneerali:statusSize

Conversation

@shahneerali

Copy link
Copy Markdown
Contributor

VM Agent cannot read status file > 100KB. Trim the proxy agent connection summary first, if status is still larger than 80KB, trim the failed authentication summary.

Comment thread proxy_agent_extension/src/constants.rs Outdated
}
}

fn trim_proxy_agent_status_file(connection_summary_len: usize, failed_auth_len: usize, max_size: usize) -> Option<(String, String)> {

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.

if status file is just spinning up on new VM, connection summary is basically nothing. since I don't pass in the entire message I make it option to accept the new changed lines.

Comment thread proxy_agent_extension/src/service_main.rs Outdated
Comment thread proxy_agent_extension/src/service_main.rs Outdated
Comment thread proxy_agent_extension/src/service_main.rs Outdated
Comment thread proxy_agent_extension/src/service_main.rs
@shahneerali shahneerali merged commit f7b7883 into Azure:dev May 28, 2025
12 checks passed
@shahneerali shahneerali deleted the statusSize branch May 29, 2025 16:45
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