Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
/ NuGet.Jobs Public archive

ChinaStatsCollector should properly reformat scstatus of log lines #713

Merged
merged 4 commits into from
Feb 5, 2019

Conversation

scottbommarito
Copy link

@scottbommarito scottbommarito commented Jan 31, 2019

https://github.com/NuGet/Engineering/issues/2041

In CollectAzureChinaCDNLogs, CDN logs from China go through a "conversion" layer (ChinaStatsCollector) that converts them from China's format to Global's format so that they can be parsed by code shared with CollectAzureCDNLogs (CdnLogEntryParser).

This conversion was being done improperly, so that the status code field (referred to as "scstatus") was not being parsed properly by CdnLogEntryParser, leading to unsuccessful downloads (400, 404, etc) not being properly removed.

Unfortunately, there does not appear to be enough information in the response to properly convert the China log lines, so I've introduced a dummy cache status string to allow it to be parsed. I've also updated the CdnLogEntryParser code so that it properly processes the logs we have already improperly converted so that we can reprocess those logs.

Copy link
Contributor

@skofman1 skofman1 left a comment

Choose a reason for hiding this comment

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

:shipit:

@scottbommarito
Copy link
Author

I would like to deploy this to DEV and verify the behavior before I merge.

Thank you for the approvals.

@scottbommarito
Copy link
Author

Verified on dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants