goharbor / acceleration-service

Provides a general service to support image acceleration based on kinds of accelerator like Nydus and eStargz etc.
Apache License 2.0
77 stars 27 forks source link

fix: gc works unexpeted in high concurrent #175

Closed Desiki-high closed 1 year ago

Desiki-high commented 1 year ago

To resolve the concurrent race issue, now gc will wait for all converting tasks completed.

resolve https://github.com/goharbor/acceleration-service/issues/174.

Desiki-high commented 1 year ago

Can we add a metux lock between GC and Convert to simply the GC race?

We can try RWMutex.