-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Calls to BAT-Native-Ledger are blocked when a reconciliation is in progress #3393
Comments
Unable to reproduce the issue on Windows 10 x64 - |
@GeetaSarvadnya Are you able to reproduce on nightly (master)? I just reproduced on latest master on Win 10 Pro x64. |
@jasonrsadler No, I haven't tried it on master, will try later. |
@jasonrsadler reproduced panel not showing publisher info during contribution on macOS
|
Repro'd on 59.35 macOS. Added additional info above first STR. Oddly, on release, the only thing that works from native-ledger is getting the recovery words but not sure if that was pre-cached. @LaurenWags can you repro on 59.35? Also repro'd on Ubuntu 18.04 |
@jasonrsadler reproduced the panel showing summary info and unable to add sites to table during contribution with 0.59.35. Did not reproduce the backup words or settings issues.
|
@jasonrsadler this has been an issue for a while now. Sometimes when you make a tip and it takes a bit longer for it to get through the process, you'll run into issues with the panel as @LaurenWags described below. Some of the symptoms of this happening are the following:
Quick example of the issue occurring under Assuming this is the same issue that you're seeing when the a-c goes through reconcilement. |
The problem isn't as obvious under tipping as it is under auto-contribute (however, if I run it in dev, I can see it blocking on some things momentarily) as auto-contribute has the entire batch proofing system for ballots to run through. It is during the batch proofing process that everything gets blocked. |
@jasonrsadler that is not correct. We do everything the same for ac as we do for tipping. So for tipping we do ballots and voting as well |
Good to know. I'll double test under that as well. |
@NejcZdovc this is a bigger/more noticeable issue with the Once the contribution goes through, the banner will load correctly. However, at first, I thought that the banner ended up crashing as it it took ~1min for the tip to go through. Example of the issue occurring: Used the following build to reproduce the above:
CCing @brave/legacy_qa in case they run into the above issue while going through |
I personally think due to the above, we should make this a higher priority. It's labelled as a refactor so not 100% sure how complicated the fix would be but this is pretty bad if someone attempts to tip multiple times in a short period of time. CCing @rebron |
This is an annoying issue. I ran into it when testing 0.60.47 and 0.61.36 on Windows 7. @NejcZdovc Can you increase the priority for this one? P5 seems too low. STR used:
|
@btlechowski agreed, changed it to @NejcZdovc how big of a refactor would this be? CCing @rebron |
Awesome job @yrliou. Works much better. Verification passed on
Used test plan from brave/brave-core#1800 and #3393 (comment) Verification PASSED on
Verification passed on
|
@jasonrsadler if you have the time, it would be really helpful if you can see if your case is still reproducible using the latest |
Test plan
See brave/brave-core#1800
Description
When a reconciliation is in progress, calls to
bat-native-ledger
are blocked and queuedSteps to Reproduce
Additional:
During contribution process, go to Rewards, auto-contribute settings and change some settings. Quit the browser (you may have to 'Force Quit'/'End Task') and open publisher_state. None of the changes will have been recorded.
During contribution, sites won't add to autocontribute list until after contribution is completed.
Actual result:
Only wallet summary is displayed because calls to get publisher related information are blocked.
Leave panel open until reconciliation is complete and panel will work properly.
Expected result:
Publisher information should show in the panel
Steps to Reproduce
Actual result:
Backup words do not appear.
Expected result:
Backup words should appear.
Reproduces how often:
easily
Brave version (brave://version info)
Reproducible on current release:
yes
Website problems only:
Additional Information
cc @NejcZdovc @bridiver @ryanml The STRs above are just a couple examples. It seems any call going into
bat-native-ledger
during reconciliation is queued up until after reconciliation process (right before voting). Seems to have a lesser impact if a non-autocontribute reconciliation is in progress but still somewhat noticeable.Possibly related: #3345, #3039
The text was updated successfully, but these errors were encountered: