Skip to content

Conversation

@northtyphoon
Copy link
Member

Description
This pr is to fix #16700

Testing Guide
az acr build --cmd "docker images" /dev/null

before the fix, the command may output BlobNotFound error sometimes.

after the fix, the command will not output BlobNotFound error.


This checklist is used to make sure that common guidelines for a pull request are followed.

Copy link
Contributor

@rosanch rosanch left a comment

Choose a reason for hiding this comment

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

LGTM

if log_exist:
props = blob_service.get_blob_properties(
container_name=container_name, blob_name=blob_name)
metadata = props.metadata
Copy link
Member

Choose a reason for hiding this comment

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

@northtyphoon can props be null?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, it will throw error like AureHttpError, in that case, we will retry or just exit if the code doesn't know how to handle it

available = props.properties.content_length
else:
# Wait a little bit before checking the existence again
time.sleep(1)
Copy link
Contributor

Choose a reason for hiding this comment

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

where does it retry after sleep?

Copy link
Member Author

Choose a reason for hiding this comment

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

the code will continue to the loop, since log_exists is false in this case, it will execute L158-159 to check the existence again

@fengzhou-msft fengzhou-msft requested a review from Juliehzl March 16, 2021 16:05
@fengzhou-msft fengzhou-msft merged commit 7d0dd03 into Azure:dev Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected error messages in az acr run output

6 participants