Skip to content

fix(query-orchestrator): initialize missing data source queue in isPa… - #11617

Open
dochernyshov wants to merge 1 commit into
cube-js:masterfrom
dochernyshov:fix/pre-aggregation-job-status-queue
Open

fix(query-orchestrator): initialize missing data source queue in isPa…#11617
dochernyshov wants to merge 1 commit into
cube-js:masterfrom
dochernyshov:fix/pre-aggregation-job-status-queue

Conversation

@dochernyshov

@dochernyshov dochernyshov commented Aug 21, 2026

Copy link
Copy Markdown

…rtitionExist

Polling job status from a replica that never built that data source crashed on this.queue[dataSource].getQueueDriver(). Create the queue via getQueue() first, matching the other queue accessors.

Check List

  • Tests have been run in packages where changes have been made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Issue Reference this PR resolves
Related to #11313 (queue lookup used only default). That did not cover this crash.
Created a new one #11615

Description of Changes Made (if issue reference is not provided)
POST /cubejs-api/v1/pre-aggregations/jobs { "action": "get" } calls isPartitionExist, which did this.queue[dataSource].getQueueDriver(). this.queue is per process. On a replica that never built that data source the key is missing, so the poll 500s with Cannot read properties of undefined (reading 'getQueueDriver') even when Cube Store already has the result.

@dochernyshov
dochernyshov requested a review from a team as a code owner August 21, 2026 14:45
@github-actions github-actions Bot added javascript Pull requests that update Javascript code pr:community Contribution from Cube.js community members. labels Aug 21, 2026
…rtitionExist

Polling job status from a replica that never built that data source crashed
on this.queue[dataSource].getQueueDriver(). Create the queue via getQueue()
first, matching the other queue accessors.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update Javascript code pr:community Contribution from Cube.js community members.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant