-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEX-307 merge 0.16.x to 0.17.x (#2378)
* NODE-1550: Added test for fixed error message (#2191) https://wavesplatform.atlassian.net/browse/NODE-1550 * DEX-299 HTTP 500 error during base58 parsing (#2213) Also fixed MatcherActorSpecification - create an order book when place order - new order book * NODE-1572: Block appender metrics (#2181) * DEX-296 Promise already completed issue (#2229) * DEX-295 Don't schedule expiration during recovery process (#2182) * DEX-295 Don't schedule expiration during recovery process * AddressActor is notified about its orders after last event processed; * Implemented a general pattern for waiting responses from multiple workers: WatchDistributedCompletionActor; * Unit tests; * DEX-295 Don't schedule expiration during recovery process * OrderBookActor - notifyAddresses as a constructor's parameter; * DEX-304 Order books' snapshots are created too often (#2242) * Fixed a bug with next snapshot's offset calculation; * Removing old snapshots of Order book when the new one is created; * DEX-305 Starting issues (#2247) * DEX-305 Starting issues * DEX-253 For reversed pairs URLs with suffix returns incorrect redirect response (#2260) DEX-253 For reversed pairs URLs with suffix returns incorrect redirect response * DEX-308 Storage for MatcherActor's known pairs (#2257) DEX-308 Storage for MatcherActor's known pairs * DEX-312 Notify about orders, but put off expiration schedules (#2279) * DEX-313 Ability to blacklist an asset, but allow a pair with this asset (#2298) * whitelist functionality is decoupled from "allowed-asset-pairs"; * "white-list-only" setting (see the application.conf for further information); * updated unit tests; * DEX-318 REST API pair validation doesn't respect allowed-asset-pairs and white-list-only (#2305) Also removed blacklisting checks during order book deletion. * DEX-313 OrderBook can't be initialized (#2312) * DEX-313 OrderBook can't be initialized - an additional fix (#2314) * DEX-315 Can't create an order book after deletion (#2330) * DEX-314 Hide blacklisted assets in market list (#2321) Also removed pair validation from OrderValidator. Now it's in AssetPairBuilder * DEX-311 Can't get an old order's status (#2351) * DEX-314 OrderBook snapshot creation improvements (#2309) New: * OrderBookActor detects that only an offset was changed and won't waste IO for snapshot update; * OrderBookActor: saving the last trade information in snapshot to recover it after restart; * MigrationTool: ob-migrate to migrate order books' snapshots; * OrderBookSnapshotDB writes OrderBook's offset and snapshot to the database. Has an "in-memory" implementation; * OrderBookSnapshotStoreActor is an actor to handle all work with OrderBookSnapshotDB; * OrderBook.Snapshot serialization and deserialization in a binary format; Updated: * WorkingStash - simpler interface without "sender" in "stash"; * MatcherActor - removed childrenNames, because a terminated actor has the name, thus an asset pair to; Tests: * The right implementation for RestartableActor, that supports context.become; * Updated unit tests; * DEX-319 MatcherActor back-pressure (#2361) * KafkaMatcherQueue, LocalMatcherQueue support backpressure; * LocalMatcherQueue correctly reports the number of processed events; MatcherQueue: * startConsume.process must return Future[Unit] to know that all previous requests were processed to continue processing; * Added lastProcessedOffset;
- Loading branch information
1 parent
b3c218d
commit 8b568b7
Showing
65 changed files
with
1,748 additions
and
766 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
dex-it/src/test/scala/com/wavesplatform/it/sync/MarketStatusRecoveryTestSuite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.wavesplatform.it.sync | ||
|
||
import com.typesafe.config.{Config, ConfigFactory} | ||
import com.wavesplatform.it.api.MatcherState | ||
|
||
class MarketStatusRecoveryTestSuite extends MatcherRecoveryTestSuite { | ||
// To create a snapshot for each event at least for one order book | ||
protected override def configOverrides: Config = | ||
ConfigFactory.parseString("waves.matcher.snapshots-interval = 2").withFallback(super.configOverrides) | ||
|
||
override protected def cleanState(state: MatcherState): MatcherState = state.copy(snapshots = Map.empty) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.