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
3 changes: 3 additions & 0 deletions eloqkv.ini
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ node_group_replica_num = 1
# [CLOUD OPTIONAL] Reuse existing local files when restoring from cloud.
# eloq_store_reuse_local_files=false

# Maximum number of requests EloqStore processes in one global batch.
# eloq_store_max_global_request_batch=1000
Comment on lines +176 to +177
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# 1) Find all references to the new config key.
rg -n --hidden -S '\beloq_store_max_global_request_batch\b'

# 2) Inspect INI-read paths and flag conversion/mapping points.
rg -n --hidden -S 'INIReader|ConvertEloqkvFlagsToTxFlags|GetInteger|GetBoolean|GetReal|Get\(' src

# 3) If a config struct/flag exists, verify mapping into runtime/store options.
rg -n --hidden -S 'max_global_request_batch|global_request_batch|request_batch' src data_substrate

Repository: eloqdata/eloqkv

Length of output: 3845


Remove or wire this INI key—it is not consumed by any code.

The documented config option eloq_store_max_global_request_batch exists only as a comment in lines 176–177 of eloqkv.ini. A full repository search found zero references to this key outside the INI file. It is never parsed or propagated to any runtime configuration, making it a misleading no-op setting that serves no operational purpose. Either remove this documentation, or implement the parsing and propagation logic to actually use it in EloqStore initialization.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@eloqkv.ini` around lines 176 - 177, The commented INI key
eloq_store_max_global_request_batch is not consumed by code; either remove it
from eloqkv.ini or wire it into the runtime: add the key to the configuration
schema (e.g., AppConfig or Config type used by loadConfig/parseIni), parse it
from eloqkv.ini (use the existing loadConfig/parseIni function), provide a
sensible default (e.g., 1000), and pass the value into EloqStore
construction/initialization (EloqStore constructor or createEloqStore factory)
so the batching logic (methods like processBatch or wherever batching occurs)
uses this maxGlobalRequestBatch value. Ensure the symbol
eloq_store_max_global_request_batch is referenced consistently in config
parsing, AppConfig, and the EloqStore initialization path.


# Maximum number of concurrent standby rsync/ssh jobs managed by EloqStore.
# eloq_store_standby_max_concurrency=100

Expand Down
Loading