10000 Add details to 'TarantoolClientException: Failed to refresh spaces and indexes metadata' error · Issue #200 · tarantool/cartridge-java · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add details to 'TarantoolClientException: Failed to refresh spaces and indexes metadata' error #200

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

Closed
vrogach2020 opened this issue Apr 8, 2022 · 0 comments · Fixed by #371
Assignees
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@vrogach2020
Copy link
Contributor

Now if ddl.get_schema() returns nil we get a nested NPE. It would be nice to have a sane error here

Exception in thread "main" io.tarantool.driver.exceptions.TarantoolClientException: Failed to refresh spaces and indexes metadata
	at io.tarantool.driver.core.metadata.TarantoolMetadata.awaitInitLatch(TarantoolMetadata.java:89)
	at io.tarantool.driver.core.metadata.TarantoolMetadata.getSpaceMetadata(TarantoolMetadata.java:41)
	at io.tarantool.driver.core.metadata.TarantoolMetadata.getSpaceByName(TarantoolMetadata.java:126)
	at io.tarantool.driver.core.ProxyTarantoolClient.space(ProxyTarantoolClient.java:110)
	at ru.mail.javaexample.DataReader.read(DataReader.java:29)
	at ru.mail.javaexample.App.main(App.java:28)
Caused by: java.lang.NullPointerException
	at io.tarantool.driver.core.metadata.TarantoolMetadata.lambda$populateMetadata$2(TarantoolMetadata.java:105)
	at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:670)
	at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:646)
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)
	at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1975)
	at io.tarantool.driver.handlers.TarantoolResponseHandler.channelRead0(TarantoolResponseHandler.java:51)
	at io.tarantool.driver.handlers.TarantoolResponseHandler.channelRead0(TarantoolResponseHandler.java:23)
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
	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.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)
	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:722)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:748)

@vrogach2020 vrogach2020 added good first issue Good for newcomers bug Something isn't working labels Apr 8, 2022
@dkasimovskiy dkasimovskiy added this to the 2022Q3 milestone Jul 29, 2022
@ArtDu ArtDu added chosen This ticket has already chosen by hackathon team hackathon labels Oct 5, 2022
@dkasimovskiy dkasimovskiy added 1sp and removed hackathon chosen This ticket has already chosen by hackathon team labels Feb 6, 2023
ArtDu added a commit that referenced this issue Mar 21, 2023
ArtDu added a commit that referenced this issue Mar 27, 2023
ArtDu added a commit that referenced this issue Mar 27, 2023
@ArtDu ArtDu added 2sp and removed 1sp labels Mar 31, 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 good first issue Good for newcomers
Projects
None yet
3 participants
0