Closed freimair closed 3 years ago
short term: maybe get rid of spurious message loss (during trade or mediation)
I doubt that it has a bigger impact on that. At shutdown of headless nodes there is/was no graceful shutdown, but they don't send crucial messages (trade, dispute). GUI clients do a graceful shutdown and the only case where it might be critical is when a crucial message was sent and the user immediately shuts down the app (or kills it hard). Even with a graceful shutdown there should be enough time to deliver the messages. The message queued up are usually not much (batching did not work as expected, and most of the time there is no batching).
Even with a graceful shutdown there should be enough time to deliver the messages.
actually, before https://github.com/bisq-network/bisq/pull/4047, even with "graceful shutdown", tor has been terminated before all messages have been flushed out. No RemoveOfferMsg, no CloseConnectionMsg. And, there is no central queue and there could be severe consequences to that. Here is the scenario:
Now, given, the client gets shut down before the message is sent, the business logic has no way of knowing that the message hasn't been sent (so no resend). Thus, we have a "lost" message.
The message queued up are usually not much
Give it enough time and trials and it will happen.
At shutdown of headless nodes there is/was no graceful shutdown
The issue we have been/are facing here is that the data store files got corrupted frequently. A graceful shutdown did help some. However, #25 and #29 will complement this very issue.
@ripcurlx @cbeams Can we close that project?
Closing as rejected.
Description
The business logic of sending messages needs some love. During https://github.com/bisq-network/bisq/pull/4047, it became apparent, that the logic might miss sending messages entirely. Main takeaways from the project:
Rationale
Why is it important?
IMO:
Why should it be done now? What will happen if we don't do it or delay doing it?
however,
Criteria for delivery
Measures of success
Risks
Tasks
Estimates
hard to say, as the project will only show its true face once we are knee-deep into it.
Notes