Liang Zheng

Results 25 issues of Liang Zheng

https://github.com/rfyiamcool/notes/blob/main/golang_bigcache_cache.md 您好,感谢您的分享,很受用。但是在看代码和您的分享过程中发现对于 ringbuffer 扩容场景有点对不上,以下是我个人分析,如有错误还请批评指正,谢谢! 文章中提到第二种扩容场景,如下图所示: ![202304051930272](https://github.com/rfyiamcool/notes/assets/10202906/ddb33a71-d6d7-4922-a5c0-c26b70e97dbf) 但是看代码对于 `q.head > q.tail` 的场景,实现应该是 oldArray 先整体拷贝到新的 array 中,然后填充 q.head-q.tail 个空字符 slice,主要是为了将 tail 指针移动到跟 head 保持一致,如下图所示: ![bigcache drawio](https://github.com/rfyiamcool/notes/assets/10202906/67d9ae6e-83d2-455d-b617-2f46e0e981c2)

Signed-off-by: Liang Zheng Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

```console Run [======================================] setup() default [--------------------------------------] ERRO[0147] GoError: failed to push reg.srv.deeproute.cn/project-060/repository-1706015003594:tag-1706015003594, error: failed commit on ref "manifest-sha256:9b15eb416511109d4d79ae529633de73b7264c0c6f6361f517cba690cc66d058": unexpected status: 502 Bad Gateway at reflect.methodValueCall (native) at setup (file:///root/go/src/github.com/goharbor/perf/scripts/test/pull-artifacts-from-different-projects.js:38:20(51)) hint="script...

The current time unit cannot accurately reflect the actual scheduling time like below ``` volcano_action_scheduling_latency_microseconds_bucket{action="allocate",le="5"} 0 volcano_action_scheduling_latency_microseconds_bucket{action="allocate",le="10"} 0 volcano_action_scheduling_latency_microseconds_bucket{action="allocate",le="20"} 0 volcano_action_scheduling_latency_microseconds_bucket{action="allocate",le="40"} 0 volcano_action_scheduling_latency_microseconds_bucket{action="allocate",le="80"} 0 volcano_action_scheduling_latency_microseconds_bucket{action="allocate",le="160"} 0 volcano_action_scheduling_latency_microseconds_bucket{action="allocate",le="320"} 1 volcano_action_scheduling_latency_microseconds_bucket{action="allocate",le="640"} 1...

size/S

Signed-off-by: Liang Zheng

area/storage

The garbage-collect should remove unsed layer link file P.S. This was originally contributed by @m-masataka, now I would like to take over it. Thanks @m-masataka efforts with PR https://github.com/distribution/distribution/pull/2288 Signed-off-by:...

area/storage

Fixes #13303 Signed-off-by: Liang Zheng

area/controller

Hi, we deploy harbor with helm, when we try to push image from CI to harbor, but I get the following error output. And this issue cannot be reproduced consistently,...

**Is this a bug report or feature request?** * Feature Request **What should the feature do:** Currently, if one of OSDs data devices dies, we should first to purge the...

feature

### Contributing guidelines - [X] I've read the [contributing guidelines](https://github.com/docker/buildx/blob/master/.github/CONTRIBUTING.md) and wholeheartedly agree ### I've found a bug and checked that ... - [X] ... the documentation does not mention...

status/needs-more-info