Skip to content

Ensure that KafkaInterceptor @Component is in context #394

@alexandrepa

Description

@alexandrepa

Using the tzatziki-kafka module, we have seen some users complaining about instability and struggling to test their kafka topics. It was due to the fact that KafkaInterceptor was not in the classpath. Tzatziki could not add some aspectj around kafka consumer.
We already added some instructions in the README to avoid that.

Second thing we can do is to check that the component is in the spring context. If it's not the case we could stops the test and log a message.

The purpose of this issue is to discuss how can we assure the KafkaInterceptor is initialized and also how do we want to address it to the user.

To check if KafkaInterceptor is initialized, maybe the best way is to @Autowired (optional) it in KafkaSteps and check in @Before method if its not null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions