使用SymmtricDS 3.9:-
我有公司的数据库,与复制存储-1数据库双向。但是,按照日志配置,一次又一次地从corp循环到存储并存储到corp。以下是在公司日志中打印的信息:-
[corp-1] - ConfigurationChangedDataRouter - About to refresh the cache of nodes because new configuration came through the data router
[corp-1] - RouterService - Routed 5 data events in 49 ms
[corp-1] - PullUriHandler - 5 data and 3 batches sent during pull request from store:2:2
[corp-1] - DataLoaderService - 5 data and 3 batches loaded during push request from store:2:2.
[corp-1] - ConfigurationChangedDataRouter - About to refresh the cache of nodes because new configuration came through the data router
[corp-1] - RouterService - Routed 5 data events in 187 ms
[corp-1] - PullUriHandler - 5 data and 3 batches sent during pull request from store:2:2
[corp-1] - DataLoaderService - 3 data and 2 batches loaded during push request from store:2:2.
[corp-1] - ConfigurationChangedDataRouter - About to refresh the cache of nodes because new configuration came through the data router
[corp-1] - RouterService - Routed 3 data events in 94 ms
[corp-1] - PullUriHandler - 3 data and 2 batches sent during pull request from store:2:2
[corp-1] - DataLoaderService - 4 data and 3 batches loaded during push request from store:2:2.
[corp-1] - ConfigurationChangedDataRouter - About to refresh the cache of nodes because new configuration came through the data router
[corp-1] - RouterService - Routed 4 data events in 111 ms
[corp-1] - PullUriHandler - 4 data and 3 batches sent during pull request from store:2:2
[corp-1] - DataLoaderService - 4 data and 3 batches loaded during push request from store:2:2.
[corp-1] - ConfigurationChangedDataRouter - About to refresh the cache of nodes because new configuration came through the data router
[corp-1] - RouterService - Routed 4 data events in 94 ms
[corp-1] - PullUriHandler - 4 data and 3 batches sent during pull request from store:2:2
[corp-1] - DataLoaderService - 4 data and 3 batches loaded during push request from store:2:2.
[corp-1] - ConfigurationChangedDataRouter - About to refresh the cache of nodes because new configuration came through the data router
[corp-1] - RouterService - Routed 4 data events in 59 ms
[corp-1] - PullUriHandler - 4 data and 3 batches sent during pull request from store:2:2
[corp-1] - DataLoaderService - 4 data and 3 batches loaded during push request from store:2:2.以下是在商店日志中打印的信息:-
[store-2] - PushService - Pushed data to node corp:1:1. 4 data and 3 batches were processed. (sym_node, sym_node_host, accounttypes)
[store-2] - PullService - Pull data received from corp:1:1 on queue default. 4 rows and 3 batches were processed. (sym_node, sym_node_host, accounttypes)
[store-2] - ConfigurationChangedDataRouter - About to refresh the cache of nodes because new configuration came through the data router
[store-2] - RouterService - Routed 8 data events in 63 ms
[store-2] - PushService - Push data sent to corp:1:1
[store-2] - PushService - Pushed data to node corp:1:1. 4 data and 3 batches were processed. (sym_node, sym_node_host, accounttypes)
[store-2] - PullService - Pull data received from corp:1:1 on queue default. 4 rows and 3 batches were processed. (sym_node, sym_node_host, accounttypes)
[store-2] - ConfigurationChangedDataRouter - About to refresh the cache of nodes because new configuration came through the data router
[store-2] - RouterService - Routed 8 data events in 115 ms
[store-2] - PushService - Push data sent to corp:1:1
[store-2] - PushService - Pushed data to node corp:1:1. 4 data and 3 batches were processed. (sym_node, sym_node_host, accounttypes)
[store-2] - PullService - Pull data received from corp:1:1 on queue default. 4 rows and 3 batches were processed. (sym_node, sym_node_host, accounttypes)
[store-2] - ConfigurationChangedDataRouter - About to refresh the cache of nodes because new configuration came through the data router
[store-2] - RouterService - Routed 8 data events in 120 ms
[store-2] - PushService - Push data sent to corp:1:1
[store-2] - PushService - Pushed data to node corp:1:1. 4 data and 3 batches were processed. (sym_node, sym_node_host, accounttypes)
[store-2] - PullService - Pull data received from corp:1:1 on queue default. 4 rows and 3 batches were processed. (sym_node, sym_node_host, accounttypes)
[store-2] - ConfigurationChangedDataRouter - About to refresh the cache of nodes because new configuration came through the data router
[store-2] - RouterService - Routed 8 data events in 122 ms
[store-2] - PushService - Push data sent to corp:1:1
[store-2] - PushService - Pushed data to node corp:1:1. 4 data and 3 batches were processed. (sym_node, sym_node_host, accounttypes)
[store-2] - PullService - Pull data received from corp:1:1 on queue default. 4 rows and 3 batches were processed. (sym_node, sym_node_host, accounttypes)
[store-2] - ConfigurationChangedDataRouter - About to refresh the cache of nodes because new configuration came through the data router
[store-2] - RouterService - Routed 8 data events in 64 ms
[store-2] - PushService - Push data sent to corp:1:1
[store-2] - PushService - Pushed data to node corp:1:1. 4 data and 3 batches were processed. (sym_node, sym_node_host, accounttypes)即将刷新节点的缓存,因为新的配置通过数据路由器。
上面的打印一遍又一遍。我尝试删除数据库并重新配置它,但问题是相同的。
编辑
我在SymmtricDS 3.7中使用了相同的配置,它的工作效率很好,没有任何循环问题。
不确定是什么引起了3.7到3.9版本之间的问题。
发布于 2018-10-10 16:11:07
您能否尝试从商店的sym_node_identity中删除,看看它是否会请求配置并使您脱离循环。
https://stackoverflow.com/questions/52688191
复制相似问题