snowflakedb / snowflakedb/snowflake-ingest-java
Ingest client close() hangs if there is no internet connection
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 83
- Forks
- 70
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
If you create a SnowflakeStreamingIngestClient and then a channel and start sending data, then "pull the chord" or kill your internet and then try and clean up, the SnowflakeStreamingIngestClient.close() call hangs.
// Close all channels
if (this.outputChannels != null) {
for (var channel : this.outputChannels.entrySet()) {
try {
channel.getValue().close();
} catch (Exception ignored) {
}
}
this.outputChannels.clear();
}
// Close the client
if (this.streamClient != null) {
try {
if (!this.streamClient.isClosed()) {
// This appears to hang indefinitely. As soon as I recover internet it works
this.streamClient.close();
|
} catch (Exception ignored) {
}
this.streamClient = null;
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at SnowflakeStreamingIngestClient.close() and the shown streamClient.close() call; reproduce the issue by stopping internet access while a channel is sending data, then attempting cleanup. Done means client.close() returns without waiting indefinitely when the connection is unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100