We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
定时刷新TableMeta缓存的功能失效了,程序每900秒后会由业务调用主动查询一次tableMeta导致慢请求 1.7.0 版本之后没有定时任务发起tableMetaRefreshEvent事件,导致tableMetaRefresh会一直处于tableMetaRefreshQueue.take()状态。
tableMetaRefreshEvent
tableMetaRefresh
tableMetaRefreshQueue.take()
在https://github.com/apache/incubator-seata/pull/4734/files 这次更新之后,原60秒刷新一次tablemeta缓存的功能失效了。
If there is an exception, please attach the exception trace:
Just paste your stack trace here!
Minimal yet complete reproducer code (or URL to code):
java -version
uname -a
The text was updated successfully, but these errors were encountered:
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()); }
Sorry, something went wrong.
我明白你的意思了,由于这俩逻辑在同一个线程里,所以上面的刷新失效了 I see what you mean. Since these two logics are in the same thread, the above refresh is invalid.
你可以提交一个pr来修复这个bug吗? Can you commit a PR to fix this bug?
wuwen5
Successfully merging a pull request may close this issue.
Ⅰ. Issue Description
定时刷新TableMeta缓存的功能失效了,程序每900秒后会由业务调用主动查询一次tableMeta导致慢请求
1.7.0 版本之后没有定时任务发起
tableMetaRefreshEvent
事件,导致tableMetaRefresh
会一直处于tableMetaRefreshQueue.take()
状态。在https://github.com/apache/incubator-seata/pull/4734/files 这次更新之后,原60秒刷新一次tablemeta缓存的功能失效了。
Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Minimal yet complete reproducer code (or URL to code):
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
java -version
):uname -a
):The text was updated successfully, but these errors were encountered: