Skip to content

Five low-severity items: proxyConnectTimeout ignored on SSL, a batch-timeout description naming the wrong status code, a finally that masks #7495's decode exception, and two rationales that are not true #7741

Closed

Description

@ruispereira

Summary

Five low-severity items from an audit of 7bf72a4be..151799eda2, grouped because none warrants its own issue. Two are settings whose documentation does not match their behaviour, two are messages that misdescribe what happened, and one is a finally that can mask an exception.


1. arcadedb.ha.proxyConnectTimeout has no effect on an SSL cluster

The setting is honoured on the plain client, and the SSL path uses a hardcoded 5s instead:

  • ha-raft/src/main/java/com/arcadedb/server/ha/raft/TrustedHttpClientCache.java:91

Commit 6e44ff305f corrected the error message that named the setting in an HTTPS-forward connect-timeout failure, which was the right call given the setting does not apply there. The behaviour and the setting's own description were left as they were, so an operator tuning proxyConnectTimeout on a TLS cluster changes nothing and has no way to tell.

Fix: either honour the setting in TrustedHttpClientCache, or say in its description that it applies to plaintext forwards only.


2. HA_PROXY_BATCH_READ_TIMEOUT's description names the wrong status code

The description documents HTTP 503. The code answers 504 on expiry. A support runbook written from the description looks for the wrong code.

Fix: one word in the description, or the code, whichever is intended.


3. applyTxEntry's finally can throw and replace the decode exception

pageVersions.release(..., decoded.walData());

at ha-raft/src/main/java/com/arcadedb/server/ha/raft/ArcadeStateMachine.java:2042-2046 runs in a finally and can itself parse the payload and throw ReplicationException. When the try block already failed with the new RaftLogEntryDecodeException from #7495, the finally's exception replaces it, restoring the exact pre-#7495 silent skip that issue existed to remove.

Narrow: it needs a leader, a non-AppendedEntry context and a non-empty ledger. But a finally that can throw over an apply failure is a cheap fix, and this one specifically undoes a fix that just landed.

Fix: wrap the release call so it cannot propagate, logging instead.


4. The quarantine alert always blames replication

The status document and the alert describe every quarantine as "quarantined after a WAL version gap". #7495 added a second cause, a locally undecodable entry, which is a corrupt local log segment and not a replication problem at all. An operator on a node with a bad disk is pointed at the leader.

  • ha-raft/src/main/java/com/arcadedb/server/ha/raft/ClusterAlerts.java

Fix: carry the cause into the alert text.


5. A #7402 javadoc gives a reason that is not true

The requiresTransaction() == false choice on the write route is justified as "it would cost the parallel shard dispatch". TimeSeriesGateway.write calls database.begin() before every appendBatch, so inThread is always true, and the line-protocol ingest has never used shardExecutor on either HTTP or gRPC. The begin() is, by its own comment, a no-op otherwise.

The choice may well be right for other reasons. The stated reason is not one of them, and a wrong rationale in a javadoc is how the next reader inherits a constraint that does not exist.

Fix: correct the javadoc, or restore the parallel dispatch it describes if that was the intent.

Scope / confidence

Each item was read in the tree at 151799eda2. Items 1, 2, 4 and 5 are documentation or message accuracy with no runtime consequence. Item 3 has a runtime consequence but a narrow trigger.

Activity

  1. added
    audit
    ha
    timeseries
    on Sep 16, 2026
  2. added this to the 26.10.1 milestone on Sep 16, 2026
  3. added
    in progress
    on Sep 16, 2026
  4. self-assigned this
    on Sep 16, 2026
  5. added 5 commits that reference this issue on Sep 16, 2026
  6. lvca commented on Sep 17, 2026

    @lvca
    Member

    Fixed in #7747, merged into main for 26.10.1. All five items:

    1. arcadedb.ha.proxyConnectTimeout on a TLS cluster. The setting was ignored there - the HTTPS connection to the leader used a fixed 5 seconds - so tuning it changed nothing and there was no way to tell. It is honoured now, for both the leader forward and the peer-capability probe, and the setting's description says so.
    2. Batch relay timeout. The description of arcadedb.ha.proxyBatchReadTimeout promised HTTP 503 where the server actually answers 504, which would send anyone writing a monitoring rule from it looking for the wrong code.
    3. A cleanup that could hide a real error. When a node failed to apply a replicated entry, a bookkeeping step in the cleanup could throw and replace the original failure - which meant a corrupt log entry was skipped in silence instead of quarantining the database for a resync. The cleanup can no longer mask it.
    4. Quarantine alerts. GET /api/v1/cluster described every quarantined database as "behind after a WAL version gap", pointing you at the leader even when the cause was a log entry this node could not read - a local problem. The alert and the status document now carry the actual cause.
    5. A misleading code comment about the time-series write endpoint, corrected.

    ❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.

  7. removed
    in progress
    on Sep 17, 2026
  8. added 5 commits that reference this issue on Sep 17, 2026
  9. added 2 commits that reference this issue on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

auditbughatimeseries

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions