Skip to content
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

Errors in routing rules are not logged #582

Open
abridgett opened this issue Jan 1, 2025 · 2 comments
Open

Errors in routing rules are not logged #582

abridgett opened this issue Jan 1, 2025 · 2 comments

Comments

@abridgett
Copy link

In HaGatewayProviderModule.java#196 any exceptions from the FILE or EXTERNAL initialisation seem to be swallowed and the default routing group is (silently) used instead.

I'm currently using the Java debugger to see the stack track so that I can fix my routing_rules.yaml file :-)

TBH I'd prefer a fail (and retry - especially given that "RuleReloadingRoutingGroupSelector" seems to pick up changes to the file - but presumably only if it was valid).

@andythsu
Copy link
Member

In the documentation it says If there is error parsing the routing rules configuration file, an error is logged, and requests are routed using the routing group header X-Trino-Routing-Group as default.. We should look into why it's not logging erroneous routing rules. Have you found anything yet?

cc @willmostly

@mosabua
Copy link
Member

mosabua commented Jan 22, 2025

I mean .. maybe it should even fail much harder .. since this could cause all sort of wrong routing and headaches if for example different clusters are for different teams or paid for by different orgs and so on. Maybe we should discuss this in the next dev sync .. personally I see the benefit of falling back to a default but I think its just too risky.. better to fail hard .. and prevent start up of server, or saving of rules in db in future, or in filesystem with the upcoming UI .. wdyt @willmostly @oneonestar @vishalya @Chaho12 ? .. I agree with @abridgett there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants