You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "swuferhong (via GitHub)" <gi...@apache.org> on 2025/11/24 08:22:40 UTC
[I] FlussConnection getTable method fails due to missing retries when fetching metadata [fluss]
swuferhong opened a new issue, #2014:
URL: https://github.com/apache/fluss/issues/2014
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar.
### Fluss version
0.8.0 (latest release)
### Please describe the bug 🐞
FlussConnection getTable method fails due to missing retries when fetching metadata:
ava.lang.IllegalArgumentException: table: xxx not found in cluster
at org.apache.fluss.cluster.Cluster.lambda$getTableOrElseThrow$2(Cluster.java:260)
at java.util.Optional.orElseThrow(Optional.java:290)
at org.apache.fluss.cluster.Cluster.getTableOrElseThrow(Cluster.java:257)
at org.apache.fluss.client.metadata.MetadataUpdater.getTableInfoOrElseThrow(MetadataUpdater.java:100)
at org.apache.fluss.client.FlussConnection.getTable(FlussConnection.java:103)
at org.apache.fluss.flink.sink.writer.FlinkSinkWriter.initialize(FlinkSinkWriter.java:112)
at org.apache.fluss.flink.sink.writer.AppendSinkWriter.initialize(AppendSinkWriter.java:53)
at org.apache.fluss.flink.sink.FlinkSink.createWriter(FlinkSink.java:63)
at org.apache.flink.streaming.runtime.operators.sink.StatelessSinkWriterStateHandler.createWriter(StatelessSinkWriterStateHandler.java:39)
at org.apache.flink.streaming.runtime.operators.sink.SinkWriterOperator.initializeState(SinkWriterOperator.java:170)
at org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.initializeOperatorState(StreamOperatorStateHandler.java:122)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator.initializeState(AbstractStreamOperator.java:285)
at org.apache.flink.streaming.runtime.tasks.RegularOperatorChain.initializeStateAndOpenOperators(RegularOperatorChain.java:106)
at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreGates(StreamTask.java:843)
at org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$1.call(StreamTaskActionExecutor.java:55)
at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreInternal(StreamTask.java:790)
at org.apache.flink.streaming.runtime.tasks.StreamTask.restore(StreamTask.java:747)
at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:959)
at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:928)
at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:751)
at org.apache.flink.runtime.taskmanager.Task.run(Task.java:567)
at java.lang.Thread.run(Thread.java:879)
### Solution
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
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: issues-unsubscribe@fluss.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] FlussConnection getTable method fails due to missing retries when fetching metadata [fluss]
Posted by "swuferhong (via GitHub)" <gi...@apache.org>.
swuferhong commented on issue #2014:
URL: https://github.com/apache/fluss/issues/2014#issuecomment-3569481822
@wuchong This bug maybe need to consider when refactor metadata cache in https://github.com/apache/fluss/issues/483
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] FlussConnection getTable method fails due to missing retries when fetching metadata [fluss]
Posted by "wuchong (via GitHub)" <gi...@apache.org>.
wuchong closed issue #2014: FlussConnection getTable method fails due to missing retries when fetching metadata
URL: https://github.com/apache/fluss/issues/2014
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] FlussConnection getTable method fails due to missing retries when fetching metadata [fluss]
Posted by "swuferhong (via GitHub)" <gi...@apache.org>.
swuferhong commented on issue #2014:
URL: https://github.com/apache/fluss/issues/2014#issuecomment-3569485383
Another case is:
`ava.lang.IllegalStateException: Failed to initialize fluss client connection to server because no bootstrap server is validate. bootstrap servers: [fluss-xxx.com/xxx:80]
at org.apache.fluss.client.metadata.MetadataUpdater.initializeCluster(MetadataUpdater.java:313)
at org.apache.fluss.client.metadata.MetadataUpdater.<init>(MetadataUpdater.java:70)
at org.apache.fluss.client.FlussConnection.<init>(FlussConnection.java:85)
at org.apache.fluss.client.ConnectionFactory.createConnection(ConnectionFactory.java:66)
at org.apache.fluss.flink.source.reader.FlinkSourceSplitReader.<init>(FlinkSourceSplitReader.java:127)
at org.apache.fluss.flink.source.reader.FlinkSourceReader.lambda$new$0(FlinkSourceReader.java:69)
at org.apache.flink.connector.base.source.reader.fetcher.SplitFetcherManager.createSplitFetcher(SplitFetcherManager.java:196)
at org.apache.flink.connector.base.source.reader.fetcher.SingleThreadFetcherManager.addSplits(SingleThreadFetcherManager.java:107)
at org.apache.flink.connector.base.source.reader.SourceReaderBase.addSplits(SourceReaderBase.java:258)
at org.apache.flink.streaming.api.operators.SourceOperator.open(SourceOperator.java:380)
at org.apache.flink.streaming.runtime.tasks.RegularOperatorChain.initializeStateAndOpenOperators(RegularOperatorChain.java:107)
at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreGates(StreamTask.java:843)
at org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$1.call(StreamTaskActionExecutor.java:55)
at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreInternal(StreamTask.java:790)
at org.apache.flink.streaming.runtime.tasks.StreamTask.restore(StreamTask.java:747)
at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:959)
at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:928)
at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:751)
at org.apache.flink.runtime.taskmanager.Task.run(Task.java:567)
at java.lang.Thread.run(Thread.java:879)
Caused by: java.util.concurrent.ExecutionException: org.apache.fluss.exception.StaleMetadataException: Alive tablet server is empty.
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)
at org.apache.fluss.client.utils.MetadataUtils.sendMetadataRequestAndRebuildCluster(MetadataUtils.java:163)
at org.apache.fluss.client.utils.MetadataUtils.sendMetadataRequestAndRebuildCluster(MetadataUtils.java:68)
at org.apache.fluss.client.metadata.MetadataUpdater.tryToInitializeCluster(MetadataUpdater.java:327)
at org.apache.fluss.client.metadata.MetadataUpdater.initializeCluster(MetadataUpdater.java:296)
... 19 more
Caused by: org.apache.fluss.exception.StaleMetadataException: Alive tablet server is empty.`
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org