After an upgrade that changes the indexer's data version, the indexer rebuilds its dataset while the current dataset keeps serving reads. Act only when the build stops advancing, the RPC provider throttles it, or IndexerBuildFailed fires.
The rebuild re-indexes each EVM network from its configured start block (or Directory deployment block) into a new Ledger Data dataset and switches reads over in one step once caught up. Duration scales with block history and eth_getLogs throughput, so measure it on a non-production copy first. Rolling back past the switch is not self-service (Actions). See Upgrades and migrations.
Symptoms
- Indexer logs (
didx.db.deployment) recordDataset created; it indexes from the chain's start(status=building, newversion). - Platform admin → Platform networks shows
Rebuilding indexed data · <percent>% · block <current> of <target> · started <time>. Reads use the current data until the rebuild catches up.(or without<percent>%before the first block commits) with a progress bar. - The Console Submissions tray marks confirmed writes as “Recorded on-chain” (“Recorded on-chain. The platform rebuilds its data, and your lists catch up on their own. Nothing is needed from you.”).
- Onboarding or invitation calls sending
Prefer: dalp-(whenfail- on- indexer- reindexing indexerReadinessGateis on, default) return503withDALP-12331(“The indexer is still catching up on this chain”),Retry-After,data.retryAfterSeconds,data.,rebuild Progress Percent data.rebuildStartedAtanddata.. Calls without that header are not refused.rebuild Seconds Remaining
Checks
-
Measure rebuild pace. On Platform admin → Platform networks, read
block <current> of <target>twice, 5 minutes apart. The first reading starts at the network's start block share of<target>, not zero. If the gap shrinks, divide the remaining gap by the shrink rate to estimate completion time. -
Confirm serving reads stay fresh. Open Organisation settings → Infrastructure → Platform status → Indexing and enable the hidden Stall column alongside Status and Lag. Low Lag confirms the serving lane keeps following the chain during the rebuild.
-
Check whether the serving lane was refused. If Lag and Stall climb during a rebuild, search indexer logs:
kubectl -n dalp logs -l 'app.kubernetes.io/component in (indexer,indexer-rebuild)' --tail=300 \ | grep -E 'Serving lane refused|Writing lane refused|Promotion waits|Dataset promoted'Serving lane refused: the serving dataset cannot take this version's writes, so it stays where it is until it can or until promotionmeans the release changed the data layout in a way the old dataset cannot accept, so serving reads pause until promotion. -
Confirm build pods are running when progress flattens. Check the rebuild Deployment pods:
kubectl -n dalp get pods -l app.kubernetes.io/component=indexer-rebuildWith the default
dapi.(2 replicas), only these pods write the build. Becauseindexer Deployment. rebuild. enabled: true IndexerBuildFaileddoes not fire while behind the finalised block, a flat<current>with no alert can still be a stall. Check When to worry. -
Check for RPC throttling. A rising
dalp_for the slow network means the provider returnsrpc_ admission_ throttles_ total 429and the pool retries on the same endpoint. See RPC upstreams failing over.
Actions
- Rebuild advancing: Let it drain. Adding indexer replicas adds failover across networks, never faster single-chain rebuild speed.
- Provider limits pace: The build ignores Console RPC call limits and reads spans up to
global.(dalp App. config. indexer. batch. max Blocks DIDX_BATCH_MAX_BLOCKS, default2000), halving on repeated failures and doubling back after three clean commits. Raise it only within your provider'seth_getLogsrange limit, or upgrade the provider plan. - Stopped at an old block (missing state or pruned history): Point the network's RPC pool at an archive-capable endpoint (What RPC provider does a rebuild need?). Fix it before promotion, because a network whose provider lacks history at the start block does not block promotion.
- Avoid mid-rebuild rollbacks or upgrades: Deploying a release with a different indexer data version retires the in-progress build (
Retiring dataset, reasonbuild for another version), forcing a restart from block zero of the range on the next upgrade. - Rolling back after promotion: Older releases refuse to bind a newer serving dataset (
Runtime is behind the serving deployment). Do not force it: escalate, or restore the pre-upgrade database backup (Backup and disaster recovery).
When to worry
Verify recovery
The network card on Platform networks clears “Rebuilding indexed data”, indexer logs record Dataset promoted; reads now serve from the rebuild, and IndexerBuildFailed clears.
Escalate
Escalate to your DALP support contact if IndexerBuildFailed repeats, if the block gap stays flat with build pods running and healthy RPC, or after a post-promotion rollback. Include:
- Source and target release versions.
- Network name, chain ID, and two timestamped readings of
block <current> of <target>. phasevalues ofdalp_and logs fromindexer_ build_ failures_ total didx.db.deployment,didx.datasetandhost.didx.serving-lane.- RPC provider and
DIDX_BATCH_MAX_BLOCKSif overridden.
How the rebuild runs
Two lanes run concurrently during a rebuild: the build lane indexes into the new dataset (on the separate indexer-rebuild Deployment when dapi. is true, or shared with normal indexer pods when false), and the serving lane keeps the active dataset following chain head.
Promotion happens in one atomic switch once every unpaused network reaches its finalised block, catches up to the serving dataset, and has every required read-only index built and valid (while waiting on indexes, logs record Promotion waits for indexes the build dataset does not hold yet).
If the build trails an active serving dataset, DALP pauses the serving lane for up to 30 seconds (Serving dataset frozen for the handover; the build catches up before promotion), switches reads (Dataset promoted; reads now serve from the rebuild), and drops the old dataset at the first check after 1 hour.