Skip to content

feat: bugfix issue 1421#1425

Merged
earayu merged 1 commit intomainfrom
1421-bug-collectionsummary-reconciler-infinite-loop-bug---incorrect-sql-condition
Jan 20, 2026
Merged

feat: bugfix issue 1421#1425
earayu merged 1 commit intomainfrom
1421-bug-collectionsummary-reconciler-infinite-loop-bug---incorrect-sql-condition

Conversation

@earayu
Copy link
Collaborator

@earayu earayu commented Jan 20, 2026

Note

Narrows collection summary reconciliation scope to avoid processing in-progress items.

  • Updates CollectionSummaryReconciler._get_summaries_needing_reconciliation to require status == PENDING and version != observed_version (replacing prior condition that merely excluded GENERATING)
  • Updates method docstring to reflect the stricter selection criteria

Written by Cursor Bugbot for commit ded8d9d. This will update automatically on new commits. Configure here.

@apecloud-bot
Copy link
Collaborator

This branch name is not following the standards: feature/|bugfix/|release/|hotfix/|support/|releasing/|dependabot/

@earayu earayu merged commit a797253 into main Jan 20, 2026
12 of 15 checks passed
@apecloud-bot
Copy link
Collaborator

This branch name is not following the standards: feature/|bugfix/|release/|hotfix/|support/|releasing/|dependabot/

@earayu earayu deleted the 1421-bug-collectionsummary-reconciler-infinite-loop-bug---incorrect-sql-condition branch January 20, 2026 10:33
@apecloud-bot
Copy link
Collaborator

This branch name is not following the standards: feature/|bugfix/|release/|hotfix/|support/|releasing/|dependabot/

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on February 3

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

and_(
CollectionSummary.version != CollectionSummary.observed_version,
CollectionSummary.status != CollectionSummaryStatus.GENERATING,
CollectionSummary.status == CollectionSummaryStatus.PENDING,
Copy link

Choose a reason for hiding this comment

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

Re-generation for completed/failed summaries silently ignored

High Severity

The new query restricts reconciliation to only summaries with status == PENDING, but when re-generation is triggered for an existing summary via trigger_collection_summary_generation(), the update_version() method only increments the version without resetting status to PENDING. This means summaries in COMPLETE or FAILED state with a version mismatch will never be picked up for reconciliation, silently breaking the re-generation flow.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-9 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] CollectionSummary reconciler infinite loop bug - incorrect SQL condition

2 participants