Closed inspector44 closed 3 years ago
@kadiralan Here is a test in the framework that verifies interactive queries from state store. In this test, querying the state-store works. Could you compare with this and see what is different in your setup?
@sobychacko thank you for the support. But, I've already come across it. They are testing with Mockito but I'm using Embedded Kafka Broker. And my goal is to build with Embedded Broker and using the InteractiveQueryService.
Closing due to no activity.
I'm trying to test multiple stream processors at the same application. I can produce data for processors and after proceeding data to the processor my business logic works and materializes results in the store. I saw the store directory created successfully and some results in it. But the problem when injecting the InteractiveQueryService and calling the getQueryableStore. Can't see any results from the getQueryableStore method. In the main application there isn't any problem I can send the rest request to the controller and can see the correct result. But, the problem is in the test application.
I asked a question on the StackOverflow. You can reproduce with it; https://stackoverflow.com/questions/67621964/how-to-test-state-store-in-apache-kafka-using-spring-cloud-stream/67626796#67626796
Application.ymls are almost the same as the main application except for brokers, application servers, and state-store-retry config.