You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "wuwen5 (via GitHub)" <gi...@apache.org> on 2024/07/09 03:42:37 UTC
[I] 定时刷新TableMeta缓存的功能失效了 [incubator-seata]
wuwen5 opened a new issue, #6660:
URL: https://github.com/apache/incubator-seata/issues/6660
<!-- Please do not use this issue template to report security vulnerabilities but refer to our [security policy](https://github.com/seata/seata/security/policy). -->
- [ ] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate.
### Ⅰ. Issue Description
定时刷新TableMeta缓存的功能失效了,程序每900秒后会由业务调用主动查询一次tableMeta导致慢请求
1.7.0 版本之后没有定时任务发起`tableMetaRefreshEvent`事件,导致`tableMetaRefresh`会一直处于`tableMetaRefreshQueue.take()`状态。
### Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
```
Just paste your stack trace here!
```
### Ⅲ. Describe what you expected to happen
### Ⅳ. How to reproduce it (as minimally and precisely as possible)
1. xxx
2. xxx
3. xxx
Minimal yet complete reproducer code (or URL to code):
### Ⅴ. Anything else we need to know?
### Ⅵ. Environment:
- JDK version(e.g. `java -version`):
- Seata client/server version:
- Database version:
- OS(e.g. `uname -a`):
- Others:
--
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: notifications-unsubscribe@seata.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 定时刷新TableMeta缓存的功能失效了 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes closed issue #6660: 定时刷新TableMeta缓存的功能失效了
URL: https://github.com/apache/incubator-seata/issues/6660
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 定时刷新TableMeta缓存的功能失效了 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #6660:
URL: https://github.com/apache/incubator-seata/issues/6660#issuecomment-2216395109
你可以提交一个pr来修复这个bug吗?
Can you commit a PR to fix this bug?
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 定时刷新TableMeta缓存的功能失效了 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #6660:
URL: https://github.com/apache/incubator-seata/issues/6660#issuecomment-2216381401
我明白你的意思了,由于这俩逻辑在同一个线程里,所以上面的刷新失效了
I see what you mean. Since these two logics are in the same thread, the above refresh is invalid.
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 定时刷新TableMeta缓存的功能失效了 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #6660:
URL: https://github.com/apache/incubator-seata/issues/6660#issuecomment-2216375874
TableMetaCacheFactory#tableMetaRefreshEvent
And 119 lines, the refresh task will be initiated actively after the refresh time is reached
```
tableMetaRefreshExecutor.execute(() -> {
while (true) {
// 1. check table meta
if (ENABLE_TABLE_META_CHECKER_ENABLE
&& System.currentTimeMillis() - lastRefreshFinishTime > TABLE_META_CHECKER_INTERVAL) {
tableMetaRefreshEvent(dataSource.getResourceId());
}
```
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org