You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "SperedArGoadeg (via GitHub)" <gi...@apache.org> on 2026/02/10 13:47:18 UTC

[I] Ingest query returns SUCCESS before generated segments are loaded even when waitUntilSegmentsLoad is true (druid)

SperedArGoadeg opened a new issue, #19003:
URL: https://github.com/apache/druid/issues/19003

   ### Affected Version
   
   35.0.1
   
   ### Description
   
   When running an MSQ ingestion with the `waitUntilSegmentsLoad` option enabled in the query context, the task may return a `SUCCESS` status even though the generated segments are not yet loaded.
   
   This behavior is **intermittent** and does not occur systematically for every ingestion.
   
   When the issue occurs, any query against the target datasource fails with the following error:
   ```
   {
     "error": "druidException",
     "errorCode": "invalidInput",
     "persona": "USER",
     "category": "INVALID_INPUT",
     "errorMessage": "Object 'my-datasource' not found (line [1], column [753])",
     "context": {
       "sourceType": "sql",
       "line": "1",
       "column": "753",
       "endLine": "1",
       "endColumn": "790"
     }
   }
   ```
   Example query (columns removed for confidentiality):
   ```
   SELECT __time,other_column FROM "my-datasource" LIMIT 1
   ```
   Anonymized SQL query:
   ```
   INSERT INTO "my-datasource"
   WITH ext AS (
     SELECT *
     FROM TABLE(
       EXTERN(
         '{"type":"hdfs","paths":"hdfs://hdfs-namenodes:8020/data.parquet"}',
         '{"type":"parquet"}'
       )
     )
     EXTEND ( start_date BIGINT, other_column VARCHAR )
   )
   SELECT MILLIS_TO_TIMESTAMP(start_date) AS __time, other_column
   FROM ext
   PARTITIONED BY ALL
   ```
   Query context (from native query):
   ```
   
   A similar issue can also occur where the task returns a `SUCCESS` status while not all columns of the datasource are available yet. In this case, the datasource exists and is queryable, but some columns are temporarily missing.
   
   More informations:
   - Cluster setup:
     - 2 brokers
     - 1 coordinator
     - 2 historicals
   - Deployment:
     - Middle manager less mode
     - Kubernetes
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [I] Ingest query returns SUCCESS before generated segments are loaded even when waitUntilSegmentsLoad is true (druid)

Posted by "github-actions[bot] (via GitHub) via commits" <co...@druid.apache.org>.
github-actions[bot] commented on issue #19003:
URL: https://github.com/apache/druid/issues/19003#issuecomment-6965064613

   This issue has been marked as stale due to 280 days of inactivity.
   It will be closed in 4 weeks if no further activity occurs. If this issue is still
   relevant, please simply write any comment. Even if closed, you can still revive the
   issue at any time or discuss it on the dev@druid.apache.org list.
   Thank you for your contributions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org