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

fix(mojaloop/#2644): missing error-code for the transfer in the central-ledger db #929

Conversation

mdebarros
Copy link
Member

@mdebarros mdebarros commented Dec 9, 2022

fix(mojaloop/#2644): missing error-code for the transfer in the central-ledger db - mojaloop/project#2644

  • added payer_transfer_timeout.json test-case to feature_tests/transfer_negative_scenarios
  • updated dependencies
  • Added work-around for Kafka Producer Client disconnect/connect and created a following story to investigate this further as I believe its an issue with the Kafka Producer Client Lib: Kafka Producers unable to reconnect after being disconnected in Central-Ledger Integration-Tests project#3067
  • Added a new Helper KafkaHelper to manage connect/disconnect in an effort to resolve the above issue by implementing re-usable helper functions
  • Updated docker-compose to include kafka-init to pre-create Kafka topics to improve stability of Integration Tests
  • Fixed issue with Wait Retry helper functions which did not set the Timeout correct (i.e. it was hard-coded to 2, instead of being set by the input parameter)
  • Added env config (TST_RETRY_COUNT, TST_RETRY_TIMEOUT) for Integration Tests to set input params for Wait Retry helper functions being called by the ./transfers/handlers.test.js test-cases
  • Updated test:int to include env configs for TST_RETRY_COUNT, TST_RETRY_TIMEOUT and UV_THREADPOOL_SIZE (increased avaialable threads for NODE-RDKAFKA). This should include consistency for Integration Tests.

…al-ledger db

- added transferError record insert into timeout Handler facade logic
…al-ledger db

- chore: re-factored tests to use import paths

- added test-case for `update transfer after timeout with timeout status & error`
kleyow
kleyow previously approved these changes Dec 9, 2022
Copy link
Contributor

@kleyow kleyow left a comment

Choose a reason for hiding this comment

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

1 comment, lgtm otherwise.

kleyow
kleyow previously approved these changes Dec 9, 2022
- Added kafkaHelper to handle connection/disconnections in a standard way
- Fixed bug with wrapWithRetries using a hard-coded sleep value
- Added env configs to handlers.test.js to set wrapWithRetriesConf through env config
@mdebarros mdebarros marked this pull request as ready for review December 12, 2022 15:09
@mdebarros mdebarros requested a review from kleyow December 12, 2022 16:36
@mdebarros
Copy link
Member Author

Test result details can be found here: mojaloop/project#2644 (comment)

@mdebarros mdebarros merged commit 7e49456 into master Dec 12, 2022
@mdebarros mdebarros deleted the fix/#2644-Missing-Error-code-for-the-transfer-in-the-Central-ledger-DB branch December 12, 2022 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants