File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1
1
Reproducer for schema compatibility problem when using generated java classes and ` use.latest.version=true ` .
2
2
3
+ There is a ` docker-compose.yaml ` included into the repos. It will start:
4
+ - a kafka cluster (including zookeeper)
5
+ - a schema registry
6
+
7
+ in order to run
8
+
9
+ ``` bash
10
+ docker-compose up -d
11
+ ```
12
+
3
13
The topic will have records of 2 schemas which are fully compatible but the consumer using specific record and the latest version will fail.
4
14
5
15
There is four consumers looking at the same topic ` offer ` :
@@ -61,3 +71,16 @@ Caused by: java.lang.IndexOutOfBoundsException: Invalid index: 2
61
71
... 11 more
62
72
63
73
```
74
+
75
+
76
+ Setting the setting the compatibility mode:
77
+
78
+ ``` bash
79
+ docker-compose up -d
80
+ # wait for the registry to start
81
+
82
+ curl -X PUT 0.0.0.0:8081/config -d ' {"compatibility":"full_transitive"}' -H " Content-Type: application/vnd.schemaregistry.v1+json"
83
+
84
+ # check compatibility by
85
+ curl 0.0.0.0:8081/config
86
+ ```
You can’t perform that action at this time.
0 commit comments