CDV ❯ Version mismatch error should be logged as an error
-
Bug
-
Status: Closed
-
2 Major
-
Resolution: Fixed
-
-
-
kkannaiy
-
Reporter: tgautier
-
March 14, 2009
-
0
-
Watchers: 0
-
February 12, 2013
-
March 17, 2009
Description
Current:
java.lang.RuntimeException: Client/Server Version Mismatch Error: Client Version: 3.0.0-ee-stable0, Server Version: 3.0.0-SNAPSHOT. Terminating client now. at com.tc.object.handshakemanager.ClientHandshakeManagerImpl.checkClientServerVersionMatch(ClientHandshakeManagerImpl.java:156) at com.tc.object.handshakemanager.ClientHandshakeManagerImpl.acknowledgeHandshake(ClientHandshakeManagerImpl.java:142) at com.tc.object.handshakemanager.ClientHandshakeManagerImpl.acknowledgeHandshake(ClientHandshakeManagerImpl.java:130) at com.tc.object.handler.ClientCoordinationHandler.handleClientHandshakeAckMessage(ClientCoordinationHandler.java:49) at com.tc.object.handler.ClientCoordinationHandler.handleEvent(ClientCoordinationHandler.java:32) at com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:142)
This should be logged as an ERROR to both the client log and the console.
Comments
Manoj Govindassamy 2009-03-17
Kalai Kannaiyan 2009-05-01
Tested with Terracotta trunk-nightly, as of 20090424-110455 (Revision 12569 by cruise@su10mo5 from trunk), expected error message is displayed on client console and in client log when version mismatch occurs.
Steps:
- Install 3.1.0 (trunk-nightly)
- start the demo-server from /samples -> started successfully
- Install 3.0.1 (nightly)
- launch the jtable demo
Actual: client got terminated with client/server mismatch, throwing error message on client console and client log as expected com.terracottatech.console - Client/Server Version Mismatch Error: Client Version: 3.0.1-nightly, Server Version: 3.0.0. Terminating client now.
CLIENT CONSOLE:
ManG:~/work/ent-3.0/community/code/base/build/dist/terracotta-3.0.0-SNAPSHOT-ee/samples/pojo/jtable $ sh run.sh Starting BootJarTool… 2009-03-17 09:06:33,915 INFO - Terracotta Enterprise 3.0.0-SNAPSHOT, as of 20090317-080321 (Revision 3740-12172 by [email protected] from 3.0) 2009-03-17 09:06:34,414 INFO - Configuration loaded from the file at ‘/Users/mgovinda/work/ent-3.0/community/code/base/build/dist/terracotta-3.0.0-SNAPSHOT-ee/samples/pojo/jtable/./tc-config.xml’. 2009-03-17 09:06:34,675 INFO - Product key found at: /Users/mgovinda/work/ent-3.0/community/code/base/build/dist/terracotta-3.0.0-SNAPSHOT-ee/product.key … … 2009-03-17 09:06:42,858 ERROR - Client/Server Version Mismatch Error: Client Version: 3.0.0-SNAPSHOT, Server Version: 3.1.0-SNAPSHOT. Terminating client now.
CLIENT LOG:
153 2009-03-17 09:06:42,858 [WorkerThread(client_coordination_stage,0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[0]: Received Handshake ack for this node :GroupID[0] 154 2009-03-17 09:06:42,858 [WorkerThread(client_coordination_stage,0)] ERROR com.terracottatech.console - Client/Server Version Mismatch Error: Client Version: 3.0.0-SNAPSHOT, Server Version: 3.1.0-SNAPSHOT. Terminating client now.