-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Always include high prio payload in get data response #6501
Always include high prio payload in get data response #6501
Conversation
Add default getGetDataResponsePriority impl. to NetworkPayload Signed-off-by: HenrikJannsen <[email protected]>
Signed-off-by: HenrikJannsen <[email protected]>
bb1680a
to
0822515
Compare
Fix sorting at truncating DateSortedTruncatablePayloads. Rebroadcast high prio items
66d2caf
to
7db8255
Compare
Signed-off-by: HenrikJannsen <[email protected]>
Sorry I don't have time atm to fix the complex tests. In the past the issues have always been caused by test setup issues and not because of introduced bugs. Here we changed the algorithm for truncation, so that might be the case why it fails, or it is the new method for priority which might cause issues with the mocks. Signed-off-by: HenrikJannsen <[email protected]>
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.
ACK
Small request - can logging of monitor sends be removed?
e.g. Going to send report to monitor server
e.g. Sent successfully report to monitor server with 1 items
Jan-11 13:53:40.297 [ForkJoinPool.commonPool-worker-1] INFO b.s.r.SeedNodeReportingService: Sent successfully report to monitor server with 1 items
Jan-11 13:53:40.312 [ForkJoinPool.commonPool-worker-1] INFO b.s.r.SeedNodeReportingService: Sent successfully report to monitor server with 1 items
Jan-11 13:53:40.316 [SeedNodeMain] INFO b.s.r.SeedNodeReportingService: Going to send report to monitor server: [GetProposalStateHashesRequest=15]
Jan-11 13:53:40.316 [SeedNodeMain] INFO b.c.d.m.n.StateNetworkService: Send GetProposalStateHashesResponse with 5 stateHashes to peer Optional[pfps6t4rdvaut7ivmaf72w7rh4q2credibm32bdkn3c5catazal5blyd.onion:9999]
Jan-11 13:53:40.318 [SeedNodeMain] INFO b.s.r.SeedNodeReportingService: Going to send report to monitor server: [GetProposalStateHashesResponse=2]
Jan-11 13:53:40.336 [SeedNodeMain] INFO b.s.r.SeedNodeReportingService: Going to send report to monitor server: [GetBlindVoteStateHashesRequest=20]
Jan-11 13:53:40.336 [SeedNodeMain] INFO b.c.d.m.n.StateNetworkService: Send GetBlindVoteStateHashesResponse with 5 stateHashes to peer Optional[pfps6t4rdvaut7ivmaf72w7rh4q2credibm32bdkn3c5catazal5blyd.onion:9999]
Jan-11 13:53:40.337 [SeedNodeMain] INFO b.s.r.SeedNodeReportingService: Going to send report to monitor server: [GetBlindVoteStateHashesResponse=2]
Jan-11 13:53:40.416 [ForkJoinPool.commonPool-worker-1] INFO b.s.r.SeedNodeReportingService: Sent successfully report to monitor server with 1 items
Jan-11 13:53:40.417 [ForkJoinPool.commonPool-worker-1] INFO b.s.r.SeedNodeReportingService: Sent successfully report to monitor server with 1 items
Jan-11 13:53:40.426 [ForkJoinPool.commonPool-worker-1] INFO b.s.r.SeedNodeReportingService: Sent successfully report to monitor server with 1 items
Jan-11 13:53:40.427 [ForkJoinPool.commonPool-worker-1] INFO b.s.r.SeedNodeReportingService: Sent successfully report to monitor server with 1 items
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.
utACK
This fixes issues when at the first getDataRequests data are truncated and Filter object (or support agents) are mission, leading to a warning popup. At repeated Getdata requests we get the data but its confusing to the user to see those popups and it would be better to get the high priority data guaranteed at the start.