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

ClassCastException when no LATENCY_UTILS_AVAILABLE or HDR_UTILS_AVAILABLE #1829

Closed
HashJang opened this issue Aug 21, 2021 · 0 comments
Closed
Labels
type: bug A general bug
Milestone

Comments

@HashJang
Copy link
Contributor

while enable event publisher but no LATENCY_UTILS_AVAILABLE or HDR_UTILS_AVAILABLE, the connection will be failed and throw Exception:

Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to localhost/<unresolved>:6379
	at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78)
	at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56)
	at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:330)
	at io.lettuce.core.RedisClient.connect(RedisClient.java:216)
	at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.lambda$getConnection$1(StandaloneConnectionProvider.java:115)
	at java.base/java.util.Optional.orElseGet(Optional.java:362)
	at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:115)
	at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.getConnection(LettuceConnectionFactory.java:1459)
	... 77 more
Caused by: java.lang.ClassCastException: class io.lettuce.core.metrics.DefaultCommandLatencyCollector$PauseDetectorWrapper$1 cannot be cast to class io.lettuce.core.metrics.DefaultCommandLatencyCollector$DefaultPauseDetectorWrapper (io.lettuce.core.metrics.DefaultCommandLatencyCollector$PauseDetectorWrapper$1 and io.lettuce.core.metrics.DefaultCommandLatencyCollector$DefaultPauseDetectorWrapper are in unnamed module of loader 'app')
	at io.lettuce.core.metrics.DefaultCommandLatencyCollector.recordCommandLatency(DefaultCommandLatencyCollector.java:108)
	at io.lettuce.core.protocol.CommandHandler.recordLatency(CommandHandler.java:914)
	at io.lettuce.core.protocol.CommandHandler.decode(CommandHandler.java:770)
	at io.lettuce.core.protocol.CommandHandler.decode(CommandHandler.java:658)
	at io.lettuce.core.protocol.CommandHandler.channelRead(CommandHandler.java:598)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:832)
HashJang added a commit to HashJang/lettuce-core that referenced this issue Aug 21, 2021
@mp911de mp911de changed the title Connect failed while no LATENCY_UTILS_AVAILABLE or HDR_UTILS_AVAILABLE ClassCastException when no LATENCY_UTILS_AVAILABLE or HDR_UTILS_AVAILABLE Aug 25, 2021
@mp911de mp911de added the type: bug A general bug label Sep 3, 2021
@mp911de mp911de modified the milestones: 6.1.5, 6.0.8 Sep 3, 2021
mp911de pushed a commit that referenced this issue Sep 3, 2021
mp911de pushed a commit that referenced this issue Sep 3, 2021
mp911de pushed a commit that referenced this issue Sep 3, 2021
@mp911de mp911de closed this as completed Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants