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

Always include high prio payload in get data response #6501

Conversation

HenrikJannsen
Copy link
Collaborator

@HenrikJannsen HenrikJannsen commented Jan 4, 2023

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.

Add default getGetDataResponsePriority impl. to NetworkPayload

Signed-off-by: HenrikJannsen <[email protected]>
@HenrikJannsen HenrikJannsen force-pushed the always_include_high_prio_payload_in_get_data_response branch from bb1680a to 0822515 Compare January 5, 2023 00:26
Fix sorting at truncating DateSortedTruncatablePayloads.
Rebroadcast high prio items
@HenrikJannsen HenrikJannsen force-pushed the always_include_high_prio_payload_in_get_data_response branch from 66d2caf to 7db8255 Compare January 5, 2023 04:56
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]>
Copy link

@ghost ghost left a 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 

@alejandrogarcia83 alejandrogarcia83 added this to the v1.9.10 milestone Jan 12, 2023
Copy link
Contributor

@alejandrogarcia83 alejandrogarcia83 left a comment

Choose a reason for hiding this comment

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

utACK

@alejandrogarcia83 alejandrogarcia83 merged commit fda3c45 into bisq-network:master Jan 12, 2023
@HenrikJannsen HenrikJannsen deleted the always_include_high_prio_payload_in_get_data_response branch January 23, 2023 02:19
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