2017-03-07 82 views
0
WARNING: JGRP000014: Discovery.timeout has been deprecated: GMS.join_timeout should be used instead 

爲什麼我得到這個,如果它沒有直接由我定義?至少我不認爲它是,看起來我們正在使用的GMS.join_timeout警告:JGRP000014:Discovery.timeout已被棄用:應該使用GMS.join_timeout

這裏的這個人是如何配置的

 log().info(
      "Starting JChannel for Distributable Sessions config:{} with channel name of {}", 
      configString, 
      channelName 
     ); 
     jChannel = new JChannel(new PlainConfigurator(configString)); 

     jChannel.connect(channelName); 
     replicatedSessionIds = new ReplicatedHashMap<>(jChannel); 

     sessionIds = replicatedSessionIds; 

     if (! sessionDistributedTest) 
     { 
      replicatedSessionIds.start(TIME_OUT); 
     } 

和日誌消息話題

Starting JChannel for Distributable Sessions config:TCP(bind_addr=172.20.0.4;bind_port=7800;max_bundle_size=200000):TCPPING(timeout=3000;initial_hosts=dex.master[7800],dex.slave[7800];port_range=1):VERIFY_SUSPECT(timeout=1500):pbcast.NAKACK2(use_mcast_xmit=false;discard_delivered_msgs=true):pbcast.STABLE(stability_delay=1000;desired_avg_gossip=50000;max_bytes=400000):pbcast.GMS(print_local_addr=true;join_timeout=2000;view_bundling=true):pbcast.STATE_SOCK with channel name of Dex_SpringSecurity_Cluster_Dev 

jgroups 3.6.13的輸出

回答

1

你其實定義timeoutconfigString p通知渠道建設者:TCPPING.timeout

我對你有2點建議:

  • 切換到基於XML的配置;純文本配置將不再支持4.0
  • 使用tcp.xml隨附3.6.13並根據您的喜好進行修改。你的配置看起來有點過時。
+0

does 4.0 support「Java Config」,所以我不必使用任何文本格式?我一直試圖在我們的代碼中關閉XML(是的,這可能很舊,我們有3個其他的xml配置) – xenoterracide

+0

是的,當然你可以使用編程配置。除了XML配置之外,這是可用的。 –

相關問題