Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load events in eventstore adapter if connection is terminated while events loading #1901

Closed
timbset opened this issue Jun 16, 2021 · 1 comment
Assignees
Labels
bug Issues related to defects and incorrect/unexpected feature behavior severity: moderate Issues with medium impact on the product, e.g., new features, non-critical defects, etc.

Comments

@timbset
Copy link
Collaborator

timbset commented Jun 16, 2021

Error is thrown on RDS scaling (all connections are terminated while on scaling)

TypeError: events.push is not iterable (cannot read property Symbol(Symbol.iterator))
  at loadEventsByCursor (/var/task/node_modules/@resolve-js/eventstore-postgresql-serverless/lib/load-events-by-cursor.js:223:16)
  at runMicrotasks (<anonymous>)
  at processTicksAndRejections (internal/process/task_queues.js:97:5)
  at connectOnDemandAndCall (/var/task/node_modules/@resolve-js/eventstore-base/lib/wrap-method.js:16:10)
  at loadEvents (/var/task/node_modules/@resolve-js/eventstore-base/lib/load-events.js:11:93)
  at /var/task/node_modules/@resolve-js/eventstore-base/lib/wrap-event-filter.js:24:10
  at connectOnDemandAndCall (/var/task/node_modules/@resolve-js/eventstore-base/lib/wrap-method.js:16:10)
  at async Promise.all (index 0)
  at buildEvents (/var/task/node_modules/@resolve-js/readmodel-postgresql-serverless/lib/build.js:175:18)
  at build (/var/task/node_modules/@resolve-js/readmodel-postgresql-serverless/lib/build.js:462:5)
@timbset timbset added the bug Issues related to defects and incorrect/unexpected feature behavior label Jun 16, 2021
@timbset timbset changed the title Failed to load events in eventstore adapter if while loading connection is terminated Failed to load events in eventstore adapter if connection is terminated while events loading Jun 16, 2021
@MrCheater MrCheater added the severity: moderate Issues with medium impact on the product, e.g., new features, non-critical defects, etc. label Jul 14, 2021
@MrCheater
Copy link
Contributor

Fixed in version 0.31.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to defects and incorrect/unexpected feature behavior severity: moderate Issues with medium impact on the product, e.g., new features, non-critical defects, etc.
Projects
None yet
Development

No branches or pull requests

3 participants