You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "jamesnetherton (via GitHub)" <gi...@apache.org> on 2024/01/08 10:41:23 UTC
[PR] Migrate jpa-idempotent-repository example from deprecated derby container image to MariaDB [camel-quarkus-examples]
jamesnetherton opened a new pull request, #195:
URL: https://github.com/apache/camel-quarkus-examples/pull/195
Kind of an extension to https://github.com/apache/camel-quarkus/pull/5634. We should avoid using the deprecated Derby container image if possible. So I switched to MariaDB, as it supports a nice range of different architectures.
I also dropped the dual database setup between dev & prod mode (E.g no more H2). IMO it simplifies things.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate jpa-idempotent-repository example from deprecated derby container image to MariaDB [camel-quarkus-examples]
Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton merged PR #195:
URL: https://github.com/apache/camel-quarkus-examples/pull/195
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate jpa-idempotent-repository example from deprecated derby container image to MariaDB [camel-quarkus-examples]
Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on PR #195:
URL: https://github.com/apache/camel-quarkus-examples/pull/195#issuecomment-1880950813
> Could you please share how/where the derby container image is identified as deprecated ?
See here https://github.com/az82/docker-derby/commit/ad7612bb331392fc1cf85ece89c6e5f939950315.
> Any idea why the kubernetes-client is already involved at this step ?
Yes, It's because I introduced `quarkus.kubernetes-config.secrets.enabled = true` for when the DB is running in k8s. I got so hung up on the cloud testing I forgot to retest the local scenario 😅. I'll work on fixing that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate jpa-idempotent-repository example from deprecated derby container image to MariaDB [camel-quarkus-examples]
Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on PR #195:
URL: https://github.com/apache/camel-quarkus-examples/pull/195#issuecomment-1881085764
Latest commit tweaks the README docs to mention the additional pod and modifies the cleanup step.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate jpa-idempotent-repository example from deprecated derby container image to MariaDB [camel-quarkus-examples]
Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on PR #195:
URL: https://github.com/apache/camel-quarkus-examples/pull/195#issuecomment-1881017106
> I'll work on fixing that
I reworked how the secret config is done. The issue should be fixed in the latest commit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate jpa-idempotent-repository example from deprecated derby container image to MariaDB [camel-quarkus-examples]
Posted by "aldettinger (via GitHub)" <gi...@apache.org>.
aldettinger commented on PR #195:
URL: https://github.com/apache/camel-quarkus-examples/pull/195#issuecomment-1881028184
There was a situation where the cleanup was not done fully:
Executing `kubectl delete all -l job-name=camel-quarkus-examples-jpa-idempotent-repository-flyway-init` helped to remove the left over.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Migrate jpa-idempotent-repository example from deprecated derby container image to MariaDB [camel-quarkus-examples]
Posted by "aldettinger (via GitHub)" <gi...@apache.org>.
aldettinger commented on PR #195:
URL: https://github.com/apache/camel-quarkus-examples/pull/195#issuecomment-1880923019
@jamesnetherton Many thanks for stepping in.
Could you please share how/where the derby container image is identified as deprecated ?
Also trying to rehearse locally, `mvn clean package -DskipTests` is successful. However, `java -jar target/quarkus-app/quarkus-run.jar` fails with below stack trace:
```
[main_upstream @ jpa-idempotent-repository]$ java -jar target/quarkus-app/quarkus-run.jar
Jan 08, 2024 1:24:50 PM org.hibernate.Version
INFO: HHH000412: Hibernate ORM core version %s
Jan 08, 2024 1:24:50 PM org.hibernate.cfg.Environment
INFO: HHH000406: Using bytecode reflection optimizer
Jan 08, 2024 1:24:50 PM org.hibernate.orm.deprecation
WARN: HHH90000025: %s does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
Jan 08, 2024 1:24:50 PM org.hibernate.resource.beans.container.spi.AbstractCdiBeanContainer stop
INFO: HHH10005004: Stopping BeanContainer : %s
Jan 08, 2024 1:24:50 PM io.quarkus.runtime.ApplicationLifecycleManager run
ERROR: Failed to start application (with profile [prod])
java.lang.RuntimeException: Failed to start quarkus
at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
at io.quarkus.runtime.Application.start(Application.java:101)
at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:111)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
at io.quarkus.runner.GeneratedMain.main(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:61)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:32)
Caused by: java.lang.RuntimeException: Unable to obtain configuration for Secret objects from Kubernetes API Server at: https://kubernetes.default.svc/
at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getSecretConfigSources(KubernetesConfigSourceFactory.java:160)
at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigSources(KubernetesConfigSourceFactory.java:75)
at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getConfigSources(KubernetesConfigSourceFactory.java:61)
at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactoryBuilder$KubernetesConfigFactory.getConfigSources(KubernetesConfigSourceFactoryBuilder.java:32)
at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactoryBuilder$KubernetesConfigFactory.getConfigSources(KubernetesConfigSourceFactoryBuilder.java:22)
at io.smallrye.config.ConfigSourceFactory$ConfigurableConfigSourceFactory.getConfigSources(ConfigSourceFactory.java:58)
at io.smallrye.config.ConfigurableConfigSource.getConfigSources(ConfigurableConfigSource.java:50)
at io.smallrye.config.SmallRyeConfig$ConfigSources.mapLateSources(SmallRyeConfig.java:687)
at io.smallrye.config.SmallRyeConfig$ConfigSources.<init>(SmallRyeConfig.java:577)
at io.smallrye.config.SmallRyeConfig.<init>(SmallRyeConfig.java:68)
at io.smallrye.config.SmallRyeConfigBuilder.build(SmallRyeConfigBuilder.java:698)
at io.quarkus.runtime.generated.Config.readConfig(Unknown Source)
at io.quarkus.runtime.generated.Config.createRunTimeConfig(Unknown Source)
at io.quarkus.deployment.steps.RuntimeConfigSetup.deploy(Unknown Source)
... 13 more
Caused by: io.fabric8.kubernetes.client.KubernetesClientException: namespace not specified for an operation requiring one and no default was found in the Config.
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.checkNamespace(OperationSupport.java:267)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.getCompleteResourceUrl(BaseOperation.java:797)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.requireFromServer(BaseOperation.java:191)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.get(BaseOperation.java:148)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.get(BaseOperation.java:97)
at io.quarkus.kubernetes.config.runtime.KubernetesConfigSourceFactory.getSecretConfigSources(KubernetesConfigSourceFactory.java:146)
... 26 more
```
Any idea why the kubernetes-client is already involved at this step ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org