1 Reply Latest reply: May 4, 2012 12:51 PM by User738616-Oracle RSS

    Do we need restart Coherence Cache Server when we add new filed to Object?

    User734247-Oracle
      We are Using the ExternalizableLite on the Objects that goes to coherence.

      Questions:

      1) When we add new field to existing object, the new data is populating the newly added field, but the old data is not populating the new field.
      Do we need to restart the coherence server when we modify the object?


      2) If we are using the Queries on the cache which has the new data and old data in the same cache, new data has the field populated and
      old data filed is not there. If we use the ValueExtractor on Object that does not have the field will that cause the problems.
        • 1. Re: Do we need restart Coherence Cache Server when we add new filed to Object?
          User738616-Oracle
          Hi,

          1) When we add new field to existing object, the new data is populating the newly added field, but the old data is not populating the new field.
          Do we need to restart the coherence server when we modify the object?
          Coherence will not complain while putting the data and also retrieving the data using put(), get(key)

          >
          2) If we are using the Queries on the cache which has the new data and old data in the same cache, new data has the field populated and
          old data filed is not there. If we use the ValueExtractor on Object that does not have the field will that cause the problems.
          Yes it will cause the problem with any APIs that would force object deserialization across your different objects.

          But you can use Evolvable for managing multiple versions of your object without any restarts and details can be found here : http://docs.oracle.com/html/E22843_01/com/tangosol/io/Evolvable.html

          Hope this helps!

          Cheers,
          NJ