Incompatible Class change errors in the clients should crash the client making
those changes.
---------------------------------------------------------------------------------------------
Key: CDV-380
URL: https://jira.terracotta.org/jira//browse/CDV-380
Project: Community Development
Issue Type: New Feature
Reporter: Saravanan Subbiah
Assigned To: Issue Review Board
Today we support some kinds of class changes in the client apps (like addition
of new fields, deletion of fields etc.) without requiring the users to restart
the L2.
We dont support other kinds of changes like a changing the type from Integer to
String, without a fresh restart of the L2. When this happens, we log it in the
server but dont throw the exception since we dont want to crash the server on
this error.
But since this may go unnoticed, we need to crash the client that caused this.
(propagate the error to the client)
WARN [29060][ERR] 2007-08-15 18:56:18,338
[WorkerThread(apply_changes_stage,0)] ERROR
com.tc.objectserver.managedobject.PhysicalManagedObjectState - Unrecoverable
Incompatible Class Change : fieldName =
com.tctest.StateClassOnPassiveLosesInfoActivePassiveTestApp$StateObject.ref
value = ObjectID=[11075]
WARN [29060][ERR] java.lang.ClassCastException: com.tc.object.ObjectID
WARN [29060][ERR] at
com.tc.state.idx5.com.tctest.StateClassOnPassiveLosesInfoActivePassiveTestApp$StateObject_V3.basicSet(Unknown
Source)
WARN [29060][ERR] at
com.tc.objectserver.managedobject.PhysicalManagedObjectState.set(PhysicalManagedObjectState.java:91)
WARN [29060][ERR] at
com.tc.objectserver.managedobject.PhysicalManagedObjectState.apply(PhysicalManagedObjectState.java:79)
WARN [29060][ERR] at
com.tc.objectserver.managedobject.ManagedObjectImpl.apply(ManagedObjectImpl.java:176)
WARN [29060][ERR] at
com.tc.objectserver.tx.ServerTransactionManagerImpl.apply(ServerTransactionManagerImpl.java:224)
WARN [29060][ERR] at
com.tc.objectserver.handler.ApplyTransactionChangeHandler.handleEvent(ApplyTransactionChangeHandler.java:55)
WARN [29060][ERR] at
com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:140)
WARN [29060][ERR] java.lang.ClassCastException: com.tc.object.ObjectID
WARN [29060][ERR] at
com.tc.state.idx5.com.tctest.StateClassOnPassiveLosesInfoActivePassiveTestApp$StateObject_V3.basicSet(Unknown
Source)
WARN [29060][ERR] at
com.tc.objectserver.managedobject.PhysicalManagedObjectState.set(PhysicalManagedObjectState.java:91)
WARN [29060][ERR] at
com.tc.objectserver.managedobject.PhysicalManagedObjectState.apply(PhysicalManagedObjectState.java:79)
WARN [29060][ERR] at
com.tc.objectserver.managedobject.ManagedObjectImpl.apply(ManagedObjectImpl.java:176)
WARN [29060][ERR] at
com.tc.objectserver.tx.ServerTransactionManagerImpl.apply(ServerTransactionManagerImpl.java:224)
WARN [29060][ERR] at
com.tc.objectserver.handler.ApplyTransactionChangeHandler.handleEvent(ApplyTransactionChangeHandler.java:55)
WARN [29060][ERR] at
com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:140)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev