open-policy-agent / open-policy-agent/java-opa-sdk

Retry status uploads with backoff

Open
#83 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

services status
Dominant language
Java
Stars
16
Forks
24
Avg merge
8h 17m
Merged PRs (30d)
15

Description

StatusPlugin.Status.sendToService catches and logs exceptions, then drops the report on the floor. A transient HTTP failure means the next valid status snapshot is whatever the next periodic tick produces. For ops dashboards this masks brief outages.

  • Retry on failure with exponential backoff and a configurable max attempts.
  • On final failure, log and skip — status reports are periodic, so unlike decision logs there's no buffer to preserve.
  • Don't let retries from one tick overlap with the next scheduled tick: cap the total retry window at the upcoming interval.
  • Tests: 5xx then success delivers the report; permanent failure stops retrying within the budget.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at StatusPlugin.Status.sendToService and trace the periodic status scheduling and existing exception logging. Add coverage for a 5xx followed by success and for permanent failure, verifying retries use exponential backoff, stop at the configured attempt and time budget, and do not overlap the next tick.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.