Skip to content

Fix batch writes blocked by missing retention policies - #1058

Open
bednar wants to merge 1 commit into
masterfrom
codex/fix-retention-policy-retry
Open

bednar wants to merge 1 commit into
masterfrom
codex/fix-retention-policy-retry

Conversation

@bednar

@bednar bednar commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Changes

Treat retention policy not found as a non-retryable error. The batch writer reports the rejected points through exceptionHandler and continues sending later batches. This uses the same batch handling already in place for missing databases.

Verification

  • Confirmed the regression test failed on master: the writer retried the invalid batch and never attempted the valid batch.
  • Ran mvn -B -ntp -Dtest=InfluxDBExceptionTest,RetryCapableBatchWriterTest verify on JDK 17. All eight tests and Checkstyle passed.
  • Confirmed the MessagePack parser also classifies the missing retention policy response as non-retryable.

Fixes #1012

@alespour alespour left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Assumption is that consumer code usually catches InfluxDBException and not specific exception subtypes, so RetentionPolicyNotFoundException does not need to be public like other expcetions, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The error data blocks the write of normal data

2 participants