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

Avoid the static initializer in io.smallrye.graphql.schema.model.Scalars #2039

Open
jmartisk opened this issue Feb 9, 2024 · 0 comments
Open

Comments

@jmartisk
Copy link
Member

jmartisk commented Feb 9, 2024

While probably not a real problem for Quarkus applications, the static initializer brings a set of problems, because it acts upon the smallrye.graphql.federation-enabled property.

  • It breaks WildFly with multiple deployments where some deployments have federation enabled and some don't, because the set of scalars is computed just once for the whole WildFly server.
  • In tests, it forces us to create a separate JVM for each test because similarly to multiple deployments in WildFly, multiple tests in a single JVM are affected too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant