question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

quarkus-infinispan extension hard-coding location of hotrod-client.properties

See original GitHub issue

I posted this on zulip chat last week but haven’t been able to get a response (https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/Quarkus.20infinispan.20extension.20hotrod-client.2Eproperties/near/222425566)

Using the Infinispan component with camel-k. The issue is that the quarkus-infinispan extension hard-codes the location of hotrod-client.properties as META-INF/hotrod-client.properties (https://github.com/quarkusio/quarkus/blob/master/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/InfinispanClientProcessor.java#L62).

In camel-k, the build is performed by the operator, so the user has no way to put hotrod-client.properties within a META-INF directory. The user just submits an Integration custom resource (https://gist.github.com/edeandrea/770c84be9da204ff0b13f2340975904e#file-camelk-client-yml-L56-L57) referencing a ConfigMap, and that ConfigMap is mounted in a directory in the running pod and is added to the root of the classpath. Because of this, as a camel-k user using the camel-infinispan component (which the underlying runtime is quarkus, handing off to the quarkus-infinispan extension), the integration just doesn’t work.

This has been cross-posted on the camel-k issue tracker as well (apache/camel-k#1898)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:31 (30 by maintainers)

github_iconTop GitHub Comments

1reaction
karesticommented, Feb 1, 2021

@wburns IMO, on top of that, we should be able to override any property of the client Infinispan without using the hotrod-client.properties as we do in SB

1reaction
wburnscommented, Jan 29, 2021

I personally like option 1 so that any app can set default values for the client properties without having to use the hotrod-client.properties file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Infinispan Client - Quarkus
This extension gives you client functionality that connects applications running on Quarkus with remote Infinispan clusters.
Read more >
Using Hot Rod Java clients - Infinispan
If the hotrod-client.properties file is not on the application classpath then you need to specify the location, as in the following example:.
Read more >
Chapter 20. Client/Server Red Hat Data Grid 7.3
On top of that, when Hot Rod servers are configured with distribution, clients can detect where a particular key resides and so they...
Read more >
Infinispan Client - Quarkus
Infinispan is an in memory data grid that allows running in a server outside of application processes. This extension provides functionality to allow...
Read more >
chore(deps): update dependency io.quarkus:quarkus ... - GitLab
An error occurred while retrieving approval data for this merge request. chore(deps): update dependency io.quarkus:quarkus ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found