-
-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to identify leader when connecting to Azure EventHubs #1364
Comments
Event hub support can be cool, but I think it will break on other edge case, PR are welcome, closing due to duplicate of #657 |
Can you elaborate on what other edge cases you're worried about? It seems like the fix to make it work with event hubs would be pretty simple and I can test it against local single-instance and also GCP cluster. But if you were to elaborate on edge cases I could probably try to take that into consideration. |
mostly I think on every specific feature like topic config / node config / compaction / etc ... that could not be implemented on event hub |
Ok as in, if this were fixed it may still experience more issues with EventHubs? You're not necessarily worried about this fix breaking non-EH systems? |
maybe you will see other issues with EH, but I'm not worried at all for all non EH broker, exactly |
Azure EventHubs has a "kafka projection" mode. It looks a lot like kafka but has some subtle differences I think.
When attempting to connect to eventhubs akhq has an error:
Here is my configuration:
application.yaml
https://github.com/tchiotludo/akhq/blob/dev/src/main/java/org/akhq/models/Partition.java#L40-L46
I believe this is the problem code, I belive that EventHubs is reporting that there are no replicas therefore the code to identify the leader is failing.
Since there are no replicas, the
.findFirst()
finds nothing. I'm assuming the fix will be to either add the partition itself to the nodes list in the case where there are no replicas, or to returnthis.id
in thegetLeader()
function instead of throwing an exception.The text was updated successfully, but these errors were encountered: