In case it throws some light for someone, I notice that the content that was previously in my local /tmp/kafka-logs/_schemas-0/00000000000000000000.log file for the "bad" setup in which I got the 50001 error when trying to do the PUT to change the configuration has 2 lines
*Ó ¡ú {"magic":0,"keytype":"NOOP"}ˇˇˇˇ *Ó ¡ú {"magic":0,"keytype":"NOOP"}ˇˇˇˇ ÓÕµ
∑F{"subject":"testtopic-value","version":1,"magic":0,"keytype":"SCHEMA"}ö{"subject":"testtopic-value","version":1,"id":1,"schema":"{\"type\":\"record\",\"name\":\"myrecord\",\"fields\":[{\"name\":\"f1\",\"type\":\"string\"}]}"} *Ó ¡ú {"magic":0,"keytype":"NOOP"}ˇˇˇˇ *Ó ¡ú {"magic":0,"keytype":"NOOP"}ˇˇˇˇ èø·c$@{"subject":"Kafka-key","version":1,"magic":0,"keytype":"SCHEMA"}A{"subject":"Kafka-key","version":1,"id":21,"schema":"\"string\""} ì –(˝B{"subject":"Kafka-value","version":1,"magic":0,"keytype":"SCHEMA"}C{"subject":"Kafka-value","version":1,"id":21,"schema":"\"string\""}
while the current setup which allows me to do the PUT to change the configuration as expected has only 1 line in the 00000000000000000000.log file
*Ó ¡ú {"magic":0,"keytype":"NOOP"}ˇˇˇˇ *Ó ¡ú {"magic":0,"keytype":"NOOP"}ˇˇˇˇ ém~¸ê@{"subject":"Kafka-key","version":1,"magic":0,"keytype":"SCHEMA"}@{"subject":"Kafka-key","version":1,"id":1,"schema":"\"string\""} íÓz6hB{"subject":"Kafka-value","version":1,"magic":0,"keytype":"SCHEMA"}B{"subject":"Kafka-value","version":1,"id":1,"schema":"\"string\""} X™UK -{"subject":null,"magic":0,"keytype":"CONFIG"} {"compatibilityLevel":"NONE"} \qX-J-{"subject":null,"magic":0,"keytype":"CONFIG"}!{"compatibilityLevel":"BACKWARD"} ‰R¬¥JA{"subject":"test-value","version":1,"magic":0,"keytype":"SCHEMA"}ï{"subject":"test-value","version":1,"id":2,"schema":"{\"type\":\"record\",\"name\":\"myrecord\",\"fields\":[{\"name\":\"f1\",\"type\":\"string\"}]}"} X™UK -{"subject":null,"magic":0,"keytype":"CONFIG"} {"compatibilityLevel":"NONE"} \qX-J-{"subject":null,"magic":0,"keytype":"CONFIG"}!{"compatibilityLevel":"BACKWARD"} a¥U #6{"subject":"Kafka-value","magic":0,"keytype":"CONFIG"} {"compatibilityLevel":"FULL"}
(Notice that in the "bad" setup, I did the Confluent Quickstart demo steps first before the Schema Registry Quickstart, whereas in the second setup, I did the Schema Registry Quickstart before going back to the Confluent Quickstart just to try to keep the two setups to be somewhat similar. I can't be sure what I could have done in the first "bad" setup that might have caused the first line to be entered though had also been trying out the Quick Start from
apache.kafka.org earlier.)
(For completeness, I'm also attaching the two log files so that you can see any whitespace characters.)
Thanks.
-CL