Let apt process finish before running another#13287
Closed
matt-kwong wants to merge 1 commit intogrpc:masterfrom
Closed
Let apt process finish before running another#13287matt-kwong wants to merge 1 commit intogrpc:masterfrom
matt-kwong wants to merge 1 commit intogrpc:masterfrom
Conversation
|
cd23945 to
b3a64d3
Compare
|
|
1 similar comment
|
b3a64d3 to
1109626
Compare
|
|
|
2 similar comments
|
|
jtattermusch
approved these changes
Nov 7, 2017
Contributor
jtattermusch
left a comment
There was a problem hiding this comment.
LGTM, but can't we also just disable the package updates?
Contributor
Author
|
It looks like this issue is specific to our own images. I'll disable the daemon in our image instead of this PR. |
1109626 to
4b8bfbd
Compare
Contributor
Author
|
I updated the images to disable the daemon and ran 3 rounds of tests. None of them failed with the lock issue. This is likely a resolved issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trying to reproduce this bug
Reproduced while checking for an
aptprocess: https://sponge.corp.google.com/target?id=0c2cdf6b-1c76-43cc-aff4-08b8f88092b9&target=grpc%2Fubuntu%2Fpull_request%2Fgrpc_basictests_cpp_opt&searchFor=Looks like newer versions of Ubunutu have a daemon that updates system packages daily and on boot. This update locks
apt-getcausingapt-get installto fail in our builds.Possible solution: wait for all
aptprocesses to finish before usingapt-get. Will test this PR a few times to make sure that we can expect the daily apt daemon to finish.