same code at cache entry field: BinaryObjectException: Duplicate field ID
package org.apache.ignite.internal.binary;
import org.apache.ignite.binary.BinaryBasicIdMapper;
import org.apache.ignite.binary.BinaryBasicNameMapper;
import org.junit.Test;
/**
* class org.apache.ignite.binary.BinaryObjectException: Duplicate field ID
*/
public class BinaryInternalMapperTest {
@Test
public void test() throws Exception {
int id = 1339156499;
String name1 = "tr";
String name2 = "v4";
int code1 = new BinaryInternalMapper(new BinaryBasicNameMapper(true), new BinaryBasicIdMapper(true), true).fieldId(id, name1);
int code2 = new BinaryInternalMapper(new BinaryBasicNameMapper(true), new BinaryBasicIdMapper(true), true).fieldId(id, name2);
System.out.println("code1 = " + code1); // code1 = 3710
System.out.println("code2 = " + code2); // code2 = 3710
}
}