Skip to main content

Load FAQ

Use the load response or job state to identify the failing stage, then verify the destination data before retrying an uncertain result. These checks apply to SaaS and BYOC warehouses. VeloDB Cloud manages service configuration and node operations. For persistent service errors, contact VeloDB Cloud support with the warehouse, cluster, load label or job name, timestamp, and complete error.

General loading errors​

Why do I get [DATA_QUALITY_ERROR] Encountered unqualified data?​

One or more rows fail the load's data-quality checks. Inspect the rejected rows and compare their types, delimiters, nullability, and values with the target schema.

  • For Stream Load, inspect the response's ErrorURL when present. For Broker Load, inspect the job's error URL with SHOW LOAD. An INSERT INTO failure can also return a diagnostic URL.
  • Open diagnostic URLs only through an authorized warehouse network path. If a URL names an unreachable internal host, send the error and load identifier to VeloDB Cloud support.
  • For Stream Load and Broker Load, use strict_mode and max_filter_ratio deliberately. For Routine Load, also check max_error_number. INSERT INTO uses the separate enable_insert_strict and insert_max_filter_ratio session variables.

Allowing rejected rows can leave the destination incomplete. Correct the input when all rows are required. See Handle Messy Data for the conversion and filtering rules.

Why do I get [E-235] Failed to init rowset builder?​

The tablet has accumulated more data versions than its configured limit. Frequent small loads can create versions faster than compaction combines them.

Combine small batches and reduce load frequency or concurrency. If the error continues after load pressure decreases, provide the tablet and transaction IDs to VeloDB Cloud support to investigate compaction and the applicable service settings. max_tablet_version_num and time_series_max_tablet_version_num are managed settings, so a generic upstream tuning value is not a warehouse-specific recommendation.

Why do I get [E-238] Too many segments in rowset?​

One rowset contains too many segments. A large load concentrated in too few buckets, or skew in the distribution key, can cause this error.

Reduce the batch size and inspect data distribution. Review the table's bucket count and distribution key before changing its design. If it persists, provide the tablet ID, batch size, table definition, and full error to VeloDB Cloud support. The max_segment_num_per_rowset service setting requires support review.

What does Transaction commit successfully, BUT data will be visible later mean?​

The transaction committed, but publishing its data has not finished. Resource pressure can delay visibility. For Stream Load, this can appear as Status: Publish Timeout.

Check transaction or load status and query the destination after publication. Do not submit the same logical batch under a new label merely because visibility is delayed. If the data remains invisible, provide the load label and transaction ID to VeloDB Cloud support. See Stream Load return values.

Why do I get Failed to commit kv txn [...] Transaction exceeds byte limit?​

A metadata transaction exceeded the backing key-value store's transaction-size limit. This can occur in the shared-storage architecture used by VeloDB Cloud. It is a metadata limit, not the size limit for an uploaded data file.

Split the load into smaller groups of partitions or tables so each transaction touches fewer tablets. Review whether the table has unnecessarily many partitions or buckets. If the error persists, provide the job or transaction ID and table definition to VeloDB Cloud support.

Why is there an extra \r in the last CSV column?​

The file may use Windows \r\n line endings while the loader expects \n. For Stream Load, set the matching header:

-H 'line_delimiter:\r\n'

This is a request header fragment. Add it to your generated Stream Load command. See CSV line delimiters.

Why do quoted CSV values become NULL?​

Quotes can prevent a field from converting to the target type. For fields wrapped in double quotes, set trim_double_quotes=true if the quotes should be removed. If a quoted field contains a separator or newline, configure enclose and, when needed, escape for the actual file format.

Also inspect strict_mode, the rejected-row diagnostics, and the target column's nullability. A failed conversion can become NULL when the load permits it. See CSV format settings and strict-mode behavior.

Stream Load​

Why is Stream Load slow?​

Check where time is spent before changing settings:

  1. Compare the response timing fields, including LoadTimeMs, ReadDataTimeMs, WriteDataTimeMs, and CommitAndPublishTimeMs, across similar batches.
  2. Check the upload path from the application's network. A redirect must be reachable, and proxies or load balancers can limit throughput or time out a large request.
  3. Review batch size and concurrency. Many small requests add transaction and compaction overhead. Oversized or highly concurrent requests can exhaust compute, memory, I/O, or network capacity.
  4. Check whether the selected cluster is also serving demanding queries or other loads. Review cluster capacity and workload scheduling when resources are saturated.

If the client upload is healthy but service processing remains slow, send representative responses and the load pattern to VeloDB Cloud support. Backend HTTP worker and flush-thread settings are service-side tuning controls. See the Stream Load guide.

How do I use column names containing special characters?​

Quote the SQL identifier with backticks in the columns header. Single-quote the shell header so the shell preserves those backticks.

Set STREAM_LOAD_URL to the full URL from your warehouse's generated Stream Load connection example, and set WAREHOUSE_USER to a warehouse SQL user with load privileges. The following command assumes a.csv contains three comma-separated fields matching the listed columns. curl prompts for the password.

curl --location-trusted --user "$WAREHOUSE_USER" \
--header 'columns:`@coltime`,colint,colvar' \
--header 'column_separator:,' \
--upload-file a.csv \
"$STREAM_LOAD_URL"

Preserve the generated scheme, host, and port. Use --location-trusted only with the service-generated endpoint and trusted redirect destinations. Check the JSON load result and row counts after the request.

Why does Kafka Connect or Confluent send many small batches?​

If you use the Apache Doris Kafka Connector to write through Stream Load, inspect its task buffer settings. buffer.count.records and buffer.size.bytes control record-count and byte thresholds. buffer.flush.time can flush the batch before either size threshold is reached. These are connector options, not general Confluent or Routine Load settings.

For example, a task configured with buffer.count.records=10000 and buffer.size.bytes=5000000 can be tested with larger thresholds:

buffer.count.records=50000
buffer.size.bytes=104857600

These are trial values, not recommended defaults. Larger buffers can reduce load-request frequency, but consume more Kafka Connect task memory and can increase latency. Monitor task memory, load errors, and end-to-end lag while changing one setting at a time. Check the supported options for the connector version you deploy in the Kafka Connector guide.

Routine Load​

Why do I get failed to get latest offset?​

The job could not retrieve Kafka offsets. Inspect SHOW ROUTINE LOAD for the state, ReasonOfStateChanged, and error details. Check the Kafka bootstrap addresses, broker-advertised addresses, DNS, routing, credentials, and TLS settings from the warehouse's network path. A successful connection from your laptop does not verify warehouse connectivity.

A java.util.concurrent.TimeoutException can indicate a source request timeout. If the source and network checks pass, send the job name, error, and timestamp to VeloDB Cloud support. See Routine Load prerequisites.

Why do I get failed to get partition meta: Local: Broker transport failure?​

The job could not retrieve Kafka partition metadata. Check that the topic exists and that the configured identity can read it. Verify that every broker address returned by Kafka is resolvable and reachable from the warehouse, with matching authentication and TLS settings.

For a private Kafka source, review its connection path and DNS configuration. Service-host DNS changes require VeloDB Cloud support.

How do I recover from Broker: Offset out of range?​

The requested offset is no longer available or is outside the topic's offset range. Check the earliest available offsets and the topic's actual log.retention.hours and log.retention.bytes settings with the Kafka administrator.

Choose the recovery point deliberately, pause the job, alter the affected partition offsets, and resume it. OFFSET_BEGINNING replays from the earliest retained record. It cannot restore records already removed by retention. Replaying can duplicate data in a Duplicate Key table, and skipping ahead can omit required records. See the recovery procedure.

Which Routine Load fixes apply to VeloDB Cloud?​

Use the warehouse's Core release and the Core release notes to check an applicable fix. For example, Core 26.1.3 fixes Kafka metadata requests leaving the job's assigned compute group and adaptive batching adding latency when source lag is low. The release notes also describe improved first-error diagnostics. A fix does not establish the cause of every similar symptom.

The Apache Doris history below can help identify an upstream issue during migration or support investigation. Its versions are Apache Doris releases and do not specify affected or fixed VeloDB Cloud Core versions. Confirm a Cloud backport with VeloDB Cloud support before choosing a recovery action.

Apache Doris Routine Load fix and configuration history

The upstream FAQ records these historical fixes. Service restarts and configuration changes from the original self-managed workarounds require Cloud support review.

Historical issue and triggerApache Doris affected versionsApache Doris fix versionsUpstream references
One job's Kafka connection timeout slows scheduling of other jobs.Earlier than 2.1.9 or 3.0.5 in the corresponding release line2.1.9, 3.0.5#47530
OFFSET_END progress can be lost after an FE master restart in shared-storage mode.3.0.2-3.0.43.0.5#46149
Small Kafka batches create excessive transactions and persistent -235 errors.Earlier than 2.1.8 or 3.0.4 in the corresponding release line2.1.8, 3.0.4#45528, #44949, #39975
A Kafka client-library destructor hangs, for example after topic deletion.Earlier than 2.1.8 or 3.0.4 in the corresponding release line2.1.8, 3.0.4#44913
A metadata-service transaction-abort timeout stalls scheduling in shared-storage mode.Earlier than 3.0.23.0.2#41267
A job fails to resume after a backend restart.Earlier than 2.1.7 or 3.0.2 in the corresponding release line2.1.7, 3.0.2#40728

The source also records configuration and observability changes. These are upstream release histories, not the effective settings of a VeloDB Cloud warehouse.

Upstream changeApache Doris releasesUpstream references
Increased Routine Load timeout duration.2.1.7, 3.0.3#42042, #40818
Changed the default max_batch_interval.2.1.8, 3.0.3#42491
Removed a max_batch_interval restriction.2.1.5, 3.0.0#29071
Changed default max_batch_rows and max_batch_size.2.1.5, 3.0.0#36632
Added observability metrics.3.0.5#48209, #48171, #48963

Enter to send · Shift+Enter for a new line