Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Thanks to jagadish1989@gmail.com for finding this.
Test Case:
With the following config, the json key serde is not used
job.factory.class=org.apache.samza.job.local.ThreadJobFactory job.name=wikipedia-parser app.class=org.apache.samza.test.integration.TestSessionizerApplication serializers.registry.json.class=org.apache.samza.serializers.JsonSerdeFactory serializers.registry.string.class=org.apache.samza.serializers.StringSerdeFactory streams.page-views.samza.key.serde=json streams.page-views.samza.msg.serde=string streams.page-views.samza.system=kafka systems.kafka.samza.factory=org.apache.samza.system.kafka.KafkaSystemFactory systems.kafka.consumer.zookeeper.connect=localhost:54567 systems.kafka.consumer.auto.offset.reset=largest systems.kafka.producer.bootstrap.servers=localhost:54570 systems.kafka.samza.msg.serde=string systems.kafka.samza.key.serde=string systems.kafka.samza.offset.default=oldest job.coordinator.system=kafka job.coordinator.replication.factor=1 task.window.ms=1000
StreamSpec streamSpec = new StreamSpec("page-views", "PageViewEvent", "kafka");
Bug:
SamzaContainer uses getSerdeStreams() to get a list of the streams that have custom serdes and that method doesn’t pick up the overrides. So, it never asks for the system specific properties.
Attachments
Issue Links
- links to