Skip to content
Open
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
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This is a Maven monorepo containing the PDS (Planetary Data System) Registry Loa
**Key characteristics:**
- Maven multi-module Java project (modules: `common`, `harvest`, `manager`)
- Parent version: 1.3.0-SNAPSHOT
- Depends on `registry-common` library for shared OpenSearch/Elasticsearch abstractions
- **Hard fork / merge of three upstream repos:** The source code in this monorepo was merged from [`registry-common`](https://github.com/NASA-PDS/registry-common), [`harvest`](https://github.com/NASA-PDS/harvest), and [`registry-manager`](https://github.com/NASA-PDS/registry-manager). There is **no active dependency on those upstream repos** — they are separate projects. Bug fixes or changes made in those upstream repos must be **manually ported** into this codebase. Always check upstream PRs/issues when triaging bugs here.

## Modules

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,24 @@
throw ose;
}
}
catch (IOException ioe) {
retries++;
if (retries < retry_limit) {
log.warn("Transient I/O error communicating with OpenSearch ({}). Rebuilding connection and retrying ({}/{})...",
ioe, retries, retry_limit);
try { conFact.reconnect(); }
catch (InterruptedException ie) { throw new RuntimeException("How did this happen??", ie); }

Check warning on line 87 in common/src/main/java/gov/nasa/pds/registry/common/connection/aws/RestClientWrapper.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Either re-interrupt this method or rethrow the "InterruptedException" that can be caught here.

See more on https://sonarcloud.io/project/issues?id=NASA-PDS_registry-loader&issues=AaAlp4JPjCi4gYr1lmN7&open=AaAlp4JPjCi4gYr1lmN7&pullRequest=146
client = buildClient();
try {
Thread.sleep(Math.min(retries, 30) * 1000L);
} catch (InterruptedException ie) {
Thread.currentThread().interrupt();
}
} else {
log.error("Tried {} times to recover from I/O errors with OpenSearch but cannot.", retry_limit, ioe);
throw ioe;
}
}
}
}
}
Expand Down
Loading