使用SymmtricDS 3.9:-
我有corp数据库,它具有双向复制store-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版本之间的问题。
答案 0 :(得分:0)
您是否可以尝试从商店的sym_node_identity中删除,以查看它是否会请求配置并使您摆脱困境。