Comments (7)
Hi @the-ram,
could you provide a failing test?
from embedded-kafka-schema-registry.
Hello @francescopellegrini
Here you go : https://github.com/the-ram/kafka-refdata-sink-vertx-it
sbt clean test
This should fail it!. I am able to get a local cp-schema-registry to run and the test to pass.
from embedded-kafka-schema-registry.
When I run the tests, I get a different error:
org.apache.avro.AvroRuntimeException: Not a valid schema field: unit
At L83 you're trying to set value for a field which doesn't exist (latency
and bandwidth
are smol
only fields).
Also, smol
implements SpecificRecord
, while in the test you're creating a GenericRecord
...
EDIT: please refrain from importing SNAPSHOT versions of this library.
from embedded-kafka-schema-registry.
Hello @francescopellegrini , sorry for that mistake. I have been trying to strip out as many specifics from my code and in the process picked up a random schema on the internet :). Apologies for that , I have since your comment
a) Removed the snapshot version
b) Attached the full trace that i obtained. (logs.txt)
For now i think Generic/Specific record does not seem to be an issue , i just want to get it through kafka to the other parts of it and then probably move to a generic record anyway
from embedded-kafka-schema-registry.
Hi again,
I found a series of issues with the test, but the main one is that the withRunningKafka
closure returns a Future
which requires the Schema Registry up and running to be successful.
You either have to wait for its result before exiting the closure (using Await.result
) or to start/stop EmbeddedKafka using BeforeAndAfterAll
methods.
Other issues that I found were:
- the built Avro records miss some fields, so the serializers throw NPE.
- the expected result is wrong, for the promise handler returns the topic being written to.
from embedded-kafka-schema-registry.
Hello @francescopellegrini , the closure was the thing. withKafkaRunning was to be waited on just like you mentioned. As for tests , those were mistakes when i was trying to produce a reproducible test. I added the tests with BeforeAndAfter all and control the lifecycle manually!
from embedded-kafka-schema-registry.
the block needed to be waited on , the closure withRunningKafka
returns a future and needs to be waited on. Await.result was good . Better even to avoid time variability is to probably control using Before/After methods!
from embedded-kafka-schema-registry.
Related Issues (20)
- Move Kafka Streams to its own project HOT 2
- Expose custom properties for schema registry HOT 4
- Isit possible to use with Java? HOT 1
- how to access the schema registry server in test? HOT 1
- Publish 6.1.1 HOT 1
- Please publish version 6.2.0 HOT 1
- Schema Registry startup error HOT 3
- Can't Connect to schema-registry. HOT 2
- Embedded Kafka Problems. HOT 7
- Custom Schema Registry Port not working HOT 2
- Not able to start the kafka broker HOT 4
- Non-breaking Wakeupexception on stop
- Incompatibility between versions of Confluent Platform and Kafka HOT 1
- Enable Basic and Bearer REST authentication HOT 1
- I am not able to run different specs using the same embedded Kafka HOT 6
- Release 7.3.0 version? HOT 1
- New version HOT 3
- Create 7.5.2 release HOT 2
- Version 7.6.1 uses scala 3.4.1 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embedded-kafka-schema-registry.