glusterfs icon indicating copy to clipboard operation
glusterfs copied to clipboard

fix issue: #3714 ensure webhooks.json is json format when write {}

Open zhudongmei opened this issue 2 years ago • 6 comments

Signed-off-by: zhudongmei [email protected]

fix:#3714

zhudongmei avatar Aug 16 '22 06:08 zhudongmei

Can one of the admins verify this patch?

gluster-ant avatar Aug 16 '22 06:08 gluster-ant

Can one of the admins verify this patch?

gluster-ant avatar Aug 16 '22 06:08 gluster-ant

Can one of the admins verify this patch?

gluster-ant avatar Aug 16 '22 06:08 gluster-ant

What is the benefit of writing to a temp file and then renaming it? How does it help the cause?

black-dragon74 avatar Aug 16 '22 07:08 black-dragon74

What is the benefit of writing to a temp file and then renaming it? How does it help the cause?

user run webhook add cmd in several nodes almost at the same time,it will happen

zhudongmei avatar Aug 16 '22 07:08 zhudongmei

I think instead of writing to a temp file and then renaming it we could solve the problem in much efficient manner if we use exclusive lock while handling the said file. We already have a helper class LockedOpen defined for the use case. I will submit a patch for the same.

/cc: @xhernandez

Regards

black-dragon74 avatar Sep 21 '22 04:09 black-dragon74

Thank you for your contributions. Noticed that this issue is not having any activity in last ~6 months! We are marking this issue as stale because it has not had recent activity. It will be closed in 2 weeks if no one responds with a comment here.

stale[bot] avatar May 20 '23 15:05 stale[bot]

Closing this issue as there was no update since my last update on issue. If this is an issue which is still valid, feel free to open it.

stale[bot] avatar Jun 10 '23 03:06 stale[bot]