-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
[FAB-17184] Skip pulling from remote peers if all remaining missing rwsets are invalid when peer is configured to skip pulling invalid transactions #365
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Can you rebase this on master to pick up the retryThreshold increase and see if that helps |
6d0e909
to
6796836
Compare
Sure |
6796836
to
ba27897
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we could return a needToRetry bool
from populateFromRemotePeers
to indicate whether it fails to pull any valid transaction? so we don't necessarily need to keep track of a counter at several places
ba27897
to
892e348
Compare
Force-push diff is a little messy because I also rebased off master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about that originally but decided against it since it seemed unintuitive that populateFromRemotePeers should return anything. I don't have any strong opinions though.
IMHO, it's naturally to expect some hints to be returned when it comes to "do something with remote peers". More importantly, i think the code would be more manageable if we don't carry struct member numInvalid
all along, and alter it in both populateFromCache
and populateFromTransient
, especially when we have all the info needed to compute such result in populateFromRemotePeers
.
here's what i have in mind guoger@aa2cbf9
let me know what you think
892e348
to
12029aa
Compare
…wsets are invalid when peer is configured to skip pulling invalid transactions * Prior to this change pvtdataprovider would enter the pull retry loop and still attempt to fetch from peers even if all missing rwsets were invalid Signed-off-by: Danny Cao <dcao@us.ibm.com> Signed-off-by: Jay Guo <guojiannan1101@gmail.com>
12029aa
to
c5877e8
Compare
@guoger since the previous requested change is no longer valid, can you dismiss the requested change to unblock the PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but would like experts in this area to take a look as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Type of change
Improvement
Description
Prior to this change pvtdataprovider would enter the pull retry loop
and still attempt to fetch from peers even if all missing rwsets were
invalid
Related issues
FAB-17184