You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@songjianzhong It cannot be deleted directly because the service actually has heartbeat logic to update the update time in the file. It may be that the update time is not updated in time. It is recommended to debug the process to see if file does not update the time in time. If so, you can submit a PR to fix it.
gqcn
changed the title
github.com/gogf/gf/contrib/registry/file/[email protected]: issue file_discovery.go第97行不要执行gfile.Remove(filePath)
contrib/registry/file: registry file was deleted when multiple services registered
Sep 12, 2024
Go version
go 1.21
GoFrame version
v2.7.2
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
多个服务共用一个目录注册时,file_discovery.go第97行执行gfile.Remove(filePath),会误删其他服务的注册文件,导致服务使用异常。
What did you see happen?
当多个服务共用一个目录注册时,file_discovery.go第97行执行gfile.Remove(filePath),会误删其他服务的注册文件,导致服务使用异常。
What did you expect to see?
file_discovery.go第97行不能执行gfile.Remove(filePath)。建议将_ = gfile.Remove(filePath)这行删除。
The text was updated successfully, but these errors were encountered: