Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions crates/adapters/src/transport/nats/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -938,14 +938,11 @@ async fn fetch_stream_state(
jetstream: &jetstream::Context,
stream_name: &str,
) -> AnyResult<StreamState> {
let mut stream = jetstream
let stream = jetstream
.get_stream(stream_name)
.await
.with_context(|| format!("Failed to get stream '{stream_name}'"))?;
let stream_info = stream
.info()
.await
.with_context(|| format!("Failed to fetch stream info for '{stream_name}'"))?;
let stream_info = stream.cached_info();

Ok(StreamState {
messages: stream_info.state.messages,
Expand Down
2 changes: 1 addition & 1 deletion crates/feldera-types/src/transport/nats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub const fn default_request_timeout_secs() -> u64 {
}

pub const fn default_inactivity_timeout_secs() -> u64 {
10
60
}

pub const fn default_retry_interval_secs() -> u64 {
Expand Down
7 changes: 7 additions & 0 deletions docs.feldera.com/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ import TabItem from '@theme/TabItem';
operations, validates replay and resume sequence bounds, and
provides improved error messages during retries and health checks.

### NATS input connector timeout and probe updates

- The default value for `inactivity_timeout_secs` has been increased
from `10` to `60` seconds.
- Health probes now avoid duplicate JetStream stream-info requests,
reducing API pressure during retry and recovery loops.

## v0.263.0

Added connector error list to input/output connector stats.
Expand Down
2 changes: 1 addition & 1 deletion docs.feldera.com/docs/connectors/sources/nats.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The connector configuration consists of three main sections:
| Property | Type | Required | Description |
|--------------|--------|----------|-------------|
| `stream_name` | string | Yes | The name of the NATS JetStream stream to consume from |
| `inactivity_timeout_secs` | integer | No | Maximum idle time while waiting for the next message before running a stream/server health check. Must be at least 1. Default: 10 |
| `inactivity_timeout_secs` | integer | No | Maximum idle time while waiting for the next message before running a stream/server health check. Must be at least 1. Default: 60 |
| `retry_interval_secs` | integer | No | Delay between automatic retry attempts while the connector is in retry mode. Must be at least 1. Default: 5 |

### Consumer Configuration
Expand Down
Loading