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

[scheduled-quarkus] IllegalArgumentException: A metric with metricID MetricID{name='jaeger_tracer_reporter_queue_length', tags=[]} already exists #119

Closed
yurake opened this issue Apr 22, 2020 · 2 comments
Assignees
Labels
bug Something isn't working java Pull requests that update Java code quarkus someone for quarkus

Comments

@yurake
Copy link
Owner

yurake commented Apr 22, 2020

Logs

23:43:06 ERROR [io.qu.sc.ru.SimpleScheduler] (executor-thread-1) Error occured while executing task for trigger IntervalTrigger [id=1_webapp.tier.schedule.CallRandomPublshSchedule_ScheduledInvoker_callRandomPublsh_6039ec9d426ab943aefcf82c79961d32a42f4740, interval=10000]: java.lang.IllegalArgumentException: A metric with metricID MetricID{name='jaeger_tracer_reporter_queue_length', tags=[]} already exists
	at io.smallrye.metrics.MetricsRegistryImpl.register(MetricsRegistryImpl.java:131)
	at io.quarkus.jaeger.runtime.QuarkusJaegerMetricsFactory.createGauge(QuarkusJaegerMetricsFactory.java:48)
	at io.jaegertracing.internal.metrics.Metrics.createMetrics(Metrics.java:129)
	at io.jaegertracing.internal.metrics.Metrics.<init>(Metrics.java:32)
	at io.jaegertracing.internal.metrics.Metrics.<init>(Metrics.java:28)
	at io.jaegertracing.Configuration.getTracerBuilder(Configuration.java:221)
	at io.quarkus.jaeger.runtime.QuarkusJaegerTracer.tracer(QuarkusJaegerTracer.java:40)
	at io.quarkus.jaeger.runtime.QuarkusJaegerTracer.activeSpan(QuarkusJaegerTracer.java:79)
	at io.opentracing.util.GlobalTracer.activeSpan(GlobalTracer.java:148)
	at io.quarkus.smallrye.opentracing.runtime.TracerProducer_ProducerMethod_tracer_96dadb3d6afa0cccadfe742c3e06ad433737c844_ClientProxy.activeSpan(TracerProducer_ProducerMethod_tracer_96dadb3d6afa0cccadfe742c3e06ad433737c844_ClientProxy.zig:143)
	at io.smallrye.opentracing.OpenTracingAsyncInterceptor.prepareContext(OpenTracingAsyncInterceptor.java:27)
	at java.util.ArrayList.forEach(ArrayList.java:1257)
	at org.jboss.resteasy.microprofile.client.ProxyInvocationHandler.prepareAsyncInterceptors(ProxyInvocationHandler.java:182)
	at org.jboss.resteasy.microprofile.client.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:90)
	at com.sun.proxy.$Proxy206.random(Unknown Source)
	at webapp.tier.schedule.CallRandomPublshSchedule.callRandomPublsh(CallRandomPublshSchedule.java:41)
	at webapp.tier.schedule.CallRandomPublshSchedule_ClientProxy.callRandomPublsh(CallRandomPublshSchedule_ClientProxy.zig:157)
	at webapp.tier.schedule.CallRandomPublshSchedule_ScheduledInvoker_callRandomPublsh_6039ec9d426ab943aefcf82c79961d32a42f4740.invokeBean(CallRandomPublshSchedule_ScheduledInvoker_callRandomPublsh_6039ec9d426ab943aefcf82c79961d32a42f4740.zig:45)
	at io.quarkus.arc.runtime.BeanInvoker.invoke(BeanInvoker.java:20)
	at io.quarkus.scheduler.runtime.SimpleScheduler$2.run(SimpleScheduler.java:126)
	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2027)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1551)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1442)
	at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
	at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
	at java.lang.Thread.run(Thread.java:748)
	at org.jboss.threads.JBossThread.run(JBossThread.java:479)
	at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:527)
	at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:193)
@yurake yurake added the bug Something isn't working label Apr 22, 2020
@yurake yurake self-assigned this Apr 22, 2020
@yurake
Copy link
Owner Author

yurake commented Apr 23, 2020

Try change to recreate in deployment.yaml

spec:
  strategy:
    type: Recreate

@yurake
Copy link
Owner Author

yurake commented Apr 23, 2020

https://kubernetes.io/ja/docs/concepts/workloads/controllers/deployment/#%E6%9B%B4%E6%96%B0%E6%88%A6%E7%95%A5

.spec.strategyは古いPodから新しいPodに置き換える際の更新戦略を指定します。.spec.strategy.typeは”Recreate”もしくは”RollingUpdate”を指定できます。デフォルトは”RollingUpdate”です。

@yurake yurake added quarkus someone for quarkus java Pull requests that update Java code labels Oct 25, 2022
@yurake yurake closed this as completed Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working java Pull requests that update Java code quarkus someone for quarkus
Projects
None yet
Development

No branches or pull requests

1 participant