enuoCM opened a new issue, #2824:
URL: https://github.com/apache/apisix-dashboard/issues/2824
### Issue description
the stores in storeNeedReInit will be reinit every 2 minutes,
storeNeedReInit never got reset
### Expected behavior
storeNeedReInit should be cleaned after ReInit.
### How to Reproduce
`func ReInit() error {
for _, store := range storeNeedReInit {
if err := store.Init(); err != nil {
return err
}
}
return nil
}`
`go func() {
for {
select {
case <-time.Tick(2 * time.Minute):
err := store.ReInit()
if err != nil {
log.Errorf("resource re-initialize
failed, err: %v", err)
}
}
}
}()`
### Screenshots
_No response_
### Environment
- apisix version (cmd: `apisix version`):
- OS (cmd: `uname -a`):
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `etcd --version`):
- apisix-dashboard version, if have:
- Browser version, if have:
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]