Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Probably better fix for conda s3 bug #505

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Probably better fix for conda s3 bug #505

wants to merge 2 commits into from

Conversation

ChGen
Copy link

@ChGen ChGen commented Dec 22, 2023

action call must be in async, since it uses blocking read() on the provided Stream.
In the conda-adapter action is executed by com.artipie.conda.asto.AstoMergedJson which does read() in json parser from the same thread as data producer, and the deadlock happens.
Also added explicit close() for both streams after they being used. This doesn't seem to be the cause of the bug, but should make behavior more predictable/stable, since AWS SDK has limits on simultaneous connections count in pool.
Part of artipie/artipie#1343.

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.

None yet

1 participant