I've createted the binary type with the name 'SomeType' and filds:
f1:string
f2:string
And cache based on this type (via CacheConfiguration.setQueryEntities).
Now I want to change f1 from string to int. But I don't want to change the name of the type.
So when I'm trying
ignite.destroyCache(cacheName)
And then I'm creating the new cache (with the same name and binary type), I've got an exception while cache populating:
org.apache.ignite.binary.BinaryObjectException: Wrong value has been set [typeName=SomeType, fieldName=f1, fieldType=String, assignedValueType=int]
As I understand from http://apache-ignite-users.70518.x6.nabble.com/Ignite-client-reads-old-metadata-even-after-cache-is-destroyed-and-recreated-td5800.html it's an expected behaviour.
But how can I refresh my binary type matadata whithout creating the new one?