Skip to content

Commit e0cc91c

Browse files
committed
test with other compatibility settings on the registry
1 parent e6a32d0 commit e0cc91c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
Reproducer for schema compatibility problem when using generated java classes and `use.latest.version=true`.
22

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+
313
The topic will have records of 2 schemas which are fully compatible but the consumer using specific record and the latest version will fail.
414

515
There is four consumers looking at the same topic `offer`:
@@ -61,3 +71,16 @@ Caused by: java.lang.IndexOutOfBoundsException: Invalid index: 2
6171
... 11 more
6272
6373
```
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+
```

0 commit comments

Comments
 (0)