We are seeing some issues with the MiniClusterExtension for Junit 5. A pipeline that runs well in a real cluster just hangs during testing with no apparent error. The funny thing it that we have narrowed it down to a state where there are just two DataStreams that when both are active (4 different source and destination topics) it hangs but when only one of them is used it runs just fine.
Henrik Johansson
03/12/2024, 2:39 PM
Has anyone else seen this? It makes it more or less unuseable for us as a testing framework.
Henrik Johansson
03/12/2024, 2:53 PM
Essentially it's just like:
• Source(topic_1) -> Sink(topic_2)
• Source(topic_3) -> Sink(topic_4)
That's it and when any one of them is commented out the other runs.
d
David Anderson
03/13/2024, 2:32 PM
I'm not at all sure, but I wonder if the mini cluster doesn't have enough slots to run the job, and so it's just waiting for another slot to show up -- just like a real cluster would do,
h
Henrik Johansson
04/22/2024, 6:10 AM
I have tried the available toggles but nothing really popped out. We were managing to somehow fixing it but it required basically a new Flink instance per testcase for some cases at least. Not ideal but it seems to work at least.