You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a circular dependency on the code, it's shown on a race condition, so it's not easy to reproduce it. It appears mostly on the check round change job.
The error is the following one:
Update 26/07:
We found a way to reproduce the error:
1- Use the branch test/circularDependencybug
2- See the code on /server/helpers/delegatorUtils.js line function getDelegatorSummary30RoundsRewards. Note that this function is different from the one on development (has promise all). The idea of using Promise.all() is to force the race condition to appear
3- Make an api call to the following api with a delegatorAddress with values on the db: http://localhost:4040/api/delegators/lastRewards/DELEGATORADDRESS
4- Repeat the api call until the error appears (it's a race condition, so could happen that it's not always appearing)
The text was updated successfully, but these errors were encountered:
There is a circular dependency on the code, it's shown on a race condition, so it's not easy to reproduce it. It appears mostly on the check round change job.
The error is the following one:
Update 26/07:
We found a way to reproduce the error:
1- Use the branch
test/circularDependencybug
2- See the code on
/server/helpers/delegatorUtils.js
line functiongetDelegatorSummary30RoundsRewards
. Note that this function is different from the one on development (has promise all). The idea of using Promise.all() is to force the race condition to appear3- Make an api call to the following api with a delegatorAddress with values on the db:
http://localhost:4040/api/delegators/lastRewards/DELEGATORADDRESS
4- Repeat the api call until the error appears (it's a race condition, so could happen that it's not always appearing)
The text was updated successfully, but these errors were encountered: