Skip to content

Commit 66d9811

Browse files
committed
add a note about using the same type name in evolved serializers
1 parent 7543dd2 commit 66d9811

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/serialization.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ and types. Hazelcast uses the write method of the serializer to extract a
264264
schema out of the object, hence any conditional code that may or may not run
265265
depending on the object in that method might result in an undefined behavior.
266266
267+
Additionally, evolved serializers must have the same type name with the
268+
initial version of the serializer.
269+
267270
Limitations
268271
~~~~~~~~~~~
269272

hazelcast/serialization/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2646,7 +2646,7 @@ def get_type_name(self) -> str:
26462646
:const`CompactSerializableClass`.
26472647
26482648
If the class is ever evolved by adding or removing fields,
2649-
the type name for the evolved serializers must be the same
2649+
the type name for the evolved serializers must be the same
26502650
with the initial version.
26512651
26522652
Returns:

0 commit comments

Comments
 (0)