[
https://issues.apache.org/jira/browse/MESOS-3736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14967449#comment-14967449
]
Gilbert Song commented on MESOS-3736:
-------------------------------------
A quick note to list solutions to the questions above:
1. By logic check: if it is the first call to get() Image_A, promise associate
with metadateManager->get(). If not, check whether that promised future
failed/discarded. If yes, over write to the hash map.
2. To have 'stringify(image)' as key.
> Support docker local store pull same image simultaneously
> ----------------------------------------------------------
>
> Key: MESOS-3736
> URL: https://issues.apache.org/jira/browse/MESOS-3736
> Project: Mesos
> Issue Type: Improvement
> Reporter: Gilbert Song
> Assignee: Gilbert Song
> Labels: mesosphere
>
> The current local store implements get() using the local puller. For all
> requests of pulling same docker image at the same time, the local puller just
> untar the image tarball as many times as those requests are, and cp all of
> them to the same directory, which wastes time and bear high demand of
> computation. We should be able to support the local store/puller only do
> these for the first time, and the simultaneous pulling request should wait
> for the promised future and get it once the first pulling finishes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)