Giter Site home page Giter Site logo

Comments (6)

francescopellegrini avatar francescopellegrini commented on July 19, 2024

Hi @ecastilla95 , just to make sure, are you importing EmbeddedKafka class from the io.github.embeddedkafka.schemaregistry package?

from embedded-kafka-schema-registry.

ecastilla95 avatar ecastilla95 commented on July 19, 2024

Yes, I am using
import io.github.embeddedkafka.schemaregistry.{EmbeddedKafka, EmbeddedKafkaConfig}

I end up creating a new Embedded Kafka for each test class, which I guess is an expensive operation so this is not ideal

from embedded-kafka-schema-registry.

francescopellegrini avatar francescopellegrini commented on July 19, 2024

We have a test which looks exactly like what you described, try and see if your code is any different.

from embedded-kafka-schema-registry.

ecastilla95 avatar ecastilla95 commented on July 19, 2024

I see that you are creating different configs in different tests:
here
and here

my question is, can we re-use the embedded kafka default config? (in an out-of-the-box style)

I guess it is kind of a non-issue since I can maybe extend a trait but I find it counter intuitive that we have to create it again and again but with different ports

from embedded-kafka-schema-registry.

ecastilla95 avatar ecastilla95 commented on July 19, 2024

Never mind, I have tried both creating a trait and an object, the first test class works perfectly but the second one fails due to the cluster stopping

from embedded-kafka-schema-registry.

francescopellegrini avatar francescopellegrini commented on July 19, 2024

can we re-use the embedded kafka default config?

You mean separate files? As long as they are not run concurrently, yes, since each one will start and stop the whole setup every time.

from embedded-kafka-schema-registry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.