Hi,
I have installed confluent platform v1.0.1 on my local PC.
When a schema is changed, even just add a field, it encountered an exception as the following:
Schema being registered is incompatible with the latest schema; error code: 409
You can easily produce this issue by run the following cmd:
curl -X POST -i -H "Content-Type: application/vnd.schemaregistry.v1+json" \
--data '{"schema": "{\"type\":\"record\",\"name\":\"test\",\"namespace\":\"lbc.test\",\"fields\":[{\"name\":\"first_name\",\"type\":\"string\"},{\"name\":\"age\",\"type\":\"int\"}]}"}' \
curl -X POST -i -H "Content-Type: application/vnd.schemaregistry.v1+json" \
--data '{"schema": "{\"type\":\"record\", \"name\":\"test\", \"namespace\":\"lbc.test\", \"fields\":[{\"name\":\"first_name\",\"type\":\"string\"}, {\"name\":\"age\",\"type\":\"int\"}, {\"name\":\"edu\",\"type\":[\"null\", \"string\"]} ]}"}' \
The second cmd just add a field called "edu" to the schema.
The "compatibility" of config is: backward. I have tried full and forward too. They don't work neither. "None" works fine, since it does not check schema compatibility.
It might be the workaround, but I still want to check schema.
Any help is highly appreciated.
Hao