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

Bulk prepare handler is freezing if MONGODB is disabled #3020

Closed
vijayg10 opened this issue Nov 10, 2022 · 1 comment
Closed

Bulk prepare handler is freezing if MONGODB is disabled #3020

vijayg10 opened this issue Nov 10, 2022 · 1 comment
Assignees
Labels
bug Something isn't working or it has wrong behavior on a Mojaloop Core service core-dev-squad oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it

Comments

@vijayg10
Copy link

Summary:
Bulk prepare handler is freezing if MONGODB is disabled

Severity:
(Low, Medium, High)

Priority:
(Critical, Medium, Low)

Expected Behavior
If the MONGODB is expected to be enabled, the bulk prepare handler should report an error at least instead of freezing.

Steps to Reproduce

  1. Set the parameter MONGODB.DISABLED to true in bulk prepare handler
  2. Try a bulkTransfer
  3. The bulk prepare handler consumes first kafka message and then freezes

Specifications

  • Component (if known): central-ledger - bulk prepare handler
  • Version: v16.3.0
  • Bug found/raised by: @vijayg10

Notes:
It seems the mongoose model creation is causing this issue at the following line
https://github.com/mojaloop/central-ledger/blob/2a9c21d3d65cc0641fb285c4a977b6d0e0852584/src/handlers/bulk/prepare/handler.js#L192

File: src/handlers/bulk/prepare/handler.js
BulkTransferModels.getIndividualTransferModel()
@vijayg10 vijayg10 added the bug Something isn't working or it has wrong behavior on a Mojaloop Core service label Nov 10, 2022
@vijayg10 vijayg10 added the oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it label Nov 10, 2022
@elnyry-sam-k
Copy link
Member

Hey team! Please add your planning poker estimate with Zenhub @vijayg10 @mdebarros @kleyow @sri-miriyala

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or it has wrong behavior on a Mojaloop Core service core-dev-squad oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it
Projects
None yet
Development

No branches or pull requests

3 participants