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

Support resource files tagged by version to reduce initial data requests #4519

Conversation

chimp1984
Copy link
Contributor

This is based on #4233 from @freimair

It applies the feature only to tradeStatistics to reduce risks in case there are issues.

Instead of trying to find faulty keys, we stick
to the mechanics we have in place. This way,
we have less false positives.

However, we enforce a certain Bisq version
format, as parsing and business logic relies
on that now.
Turns out, scanning resources does not work reliable enough. Thus,
an array of Strings denoting historical Bisq versions it is.

An other way to put it is it is an array denoting which data stores
are there in the resources.
If we use the diff sync between seed nodes we create a race condition
where when a seednode gets updated to the new system, it does not
sync up properly with the other seed nodes. And that would be fatal.

So for the time being, when a seednode asks for data, it uses the
"old" big requests with all object keys. Should not be a problem
for now since they have enough bandwidth.
CI does have troubles with tests which do file operations. Thus,
these tests have been disabled. They have been useful during
development and are useful for testing locally, though.
This test addresses the migration scenario where a user does not
upgrade on the first possible occation (to the first Bisq version
that has the new database structure in place) but does so later.
@chimp1984 chimp1984 changed the title [WIP] Support resource files tagged by version to reduce initial data requests Support resource files tagged by version to reduce initial data requests Sep 29, 2020
@chimp1984
Copy link
Contributor Author

@sqrrm This PR is ready for review and testing now.

@chimp1984 chimp1984 mentioned this pull request Sep 30, 2020
@ripcurlx ripcurlx added this to the v1.4.1 milestone Sep 30, 2020
# Conflicts:
#	core/src/main/java/bisq/core/trade/statistics/TradeStatistics2Store.java
#	p2p/src/main/java/bisq/network/p2p/network/Connection.java
@chimp1984
Copy link
Contributor Author

Replaced by #4586

@chimp1984 chimp1984 closed this Oct 1, 2020
@chimp1984 chimp1984 deleted the chimp-reduce_initial_request_size branch October 4, 2020 22:44
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.

3 participants