Commit Graph

216 Commits

Author SHA1 Message Date
Alva Swanson
b2870ccee3
Delagate thread pool shutdown to Guava MoreExecutors 2023-02-05 22:09:56 +01:00
Alejandro García
2705244e64
Merge branch 'master' into release/v1.9.9 2023-01-12 15:01:22 +00:00
Alejandro García
c55ecfa2d4
Bump version number for v1.9.9 2023-01-07 15:18:15 +02:00
HenrikJannsen
12e8b46859
Report size or faults of GetDataResponse and GetBlocksResponse.
Remove Unspecified and use optional instead.
Add reporting for data requests and hash requests.
Report commit hash only if present.
Report messages only if an enum entry is present.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-27 17:54:09 -05:00
HenrikJannsen
c3acd5fb4a
Handle OutOfMemoryError to cause a shutdown at seed node 2022-12-27 17:54:01 -05:00
Christoph Atteneder
cdb9fe44c1
Bump version number for v1.9.8 2022-12-22 08:44:13 +01:00
HenrikJannsen
30afccb2d6
Use ThreadPoolExecutor with custom set queueCapacity instead of CachedThreadPool
The previously used newCachedThreadPool carries higher risk for execution exceptions if exceeded.

Originally we had only one executor with a corePoolSize of 15 and a maximumPoolSize of 30 and queueCapacity was set to maximumPoolSize.
This was risky when the 15 corePool threads have been busy and new messages or connection creation threads are
queued up with potentially significant delay until getting served leading to timeouts.
Now we use (if maxConnections is 12) corePoolSize of 24, maximumPoolSize 36 and queueCapacity 10. This gives
considerable headroom. We also have split up the executors in 2 distinct ones.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-19 16:50:55 +01:00
Christoph Atteneder
68ea90a1fb
Bump version number for v1.9.7 2022-12-14 10:36:20 +01:00
HenrikJannsen
8c65da9c85
Add thread index format
Add name param to newCachedThreadPool

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-13 20:35:49 -05:00
HenrikJannsen
071a352443
Remove rejectedExecutionHandler at newCachedThreadPool.
It is more convenient to handle the RejectedExecutionException in the calling code to get more context for error logging.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-13 17:33:31 -05:00
HenrikJannsen
84584d38ac
The connection:keep-alive header is restricted in java and would require a jvm option to allow it.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-13 17:33:30 -05:00
HenrikJannsen
f28e3960da
Rename *ValueItem to *ValueReportingItem
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 17:26:50 -05:00
HenrikJannsen
53c031dfaf
Refactor: Move SeedNodeReportingService to reporting package
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 17:10:33 -05:00
HenrikJannsen
1b10cc22db
Refactor: Move monitor package from core to seedNode and rename to reporting
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 17:10:02 -05:00
HenrikJannsen
6addd27a33
Add params to newCachedThreadPool method.
Use executor at httpClient builder.
Use httpClient.sendAsync.
Add keep-alive header.
Add RejectedExecutionHandler.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-11 17:06:01 -05:00
HenrikJannsen
3920e81f1c
Add try catch at send (to cover case when thread pool is exhausted)
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-10 19:26:45 -05:00
HenrikJannsen
491c6a0861
Add onDaoStateBlockCreated method
Use onDaoStateBlockCreated instead of onDaoStateHashesChanged to avoid multiple calls when we receive hashes from other nodes.
Add daoStateMonitoringService listener after blockchain parsing is completed

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-10 19:19:29 -05:00
HenrikJannsen
f98cd04fd8
Use LongValueItem instead of IntegerValueItem
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-09 08:54:28 -05:00
HenrikJannsen
3308e35e8c
Add newCachedThreadPool to Utilities
Use newCachedThreadPool instead of getThreadPoolExecutor

Utilities.getThreadPoolExecutor use a BlockingQueue which prevents the intended
behaviour to increase the pool size to the max value.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-08 09:56:11 -05:00
HenrikJannsen
f4775f89b0
Add SeedNodeReportingService
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-12-07 13:23:28 -05:00
Bisq GitHub Admin
60522218a7
Merge pull request #6412 from bisq-network/release/v1.9.6
Merge release branch
2022-11-15 21:03:40 +01:00
HenrikJannsen
72d97b8d97
Remove if (DevEnv.isDaoActivated()) checks as isDaoActivated is always true
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
2022-11-03 10:51:01 -05:00
Christoph Atteneder
3580b648c8
Bump version number for v1.9.6 2022-10-13 09:54:32 +02:00
Christoph Atteneder
15aaa77b91
Bump version number for v1.9.5 2022-08-21 21:32:26 +02:00
Christoph Atteneder
efe306aae6
Bump version number for v1.9.4 2022-07-04 09:52:27 +02:00
Christoph Atteneder
791ad62a51
Bump version number for v1.9.3 2022-06-23 09:39:04 +02:00
Christoph Atteneder
56d8842092
Merge branch 'master' of github.com:bisq-network/bisq into release/v1.9.2
Conflicts:
	build.gradle
	desktop/package/linux/Dockerfile
	desktop/package/macosx/finalize.sh
	desktop/package/macosx/insert_snapshot_version.sh
	relay/src/main/resources/version.txt
2022-06-23 09:03:33 +02:00
Christoph Atteneder
043f1e4c70
Bump version number for v1.9.2 2022-06-21 20:39:23 +02:00
chimp1984
7202f02dce
startApplication after cleanupTorFiles is completed 2022-05-31 13:16:04 +02:00
chimp1984
9741b79d20
Clean up tor files at seed node startup 2022-05-31 12:43:21 +02:00
Christoph Atteneder
0e4d25f007
Bump version number for v1.9.1 2022-05-02 09:50:46 +02:00
Christoph Atteneder
dd6c8d1c30
Bump version number for v1.9.0 2022-04-22 11:36:43 +02:00
Christoph Atteneder
8136f0a6ca
Bump version number for v1.8.4 2022-03-07 16:42:10 +01:00
Christoph Atteneder
602101c117
Bump version number for v1.8.3 2022-02-17 10:49:55 +01:00
Christoph Atteneder
c4fa58db78
Bump version number for v1.8.2 2022-01-24 09:40:46 +01:00
Christoph Atteneder
9d39f16d35
Bump version number for v1.8.1 2022-01-12 10:41:29 +01:00
chimp1984
f93cd7de48
Enforce inclusion of TradeLimits for headless apps
PaymentMethod use an instance of TradeLimits and expect that it
has been injected, which is the case for desktop but not for
headless apps, so we enforce injection in the app base classes
used for headless apps.

The validation of trade statistics use a method in PaymentMethod
where that dependency is required.

Tha hack how the PaymentMethod use TradeLimits is not nice, but
would require more effort for refactoring.
2021-11-24 09:48:00 +01:00
Christoph Atteneder
aacc1105e3
Bump version number for v1.8.0 2021-11-19 18:35:56 +01:00
Christoph Atteneder
3e6bb3bc7f
Merge pull request #5819 from chimp1984/fix-reorg-handling
Fix reorg handling
2021-11-12 10:50:06 +01:00
chimp1984
6f51793d1b
Add deterministic delay for seed node shutdown at reorg
We shut down with a deterministic delay per seed to avoid that all seeds shut down at the
same time in case of a reorg. We use 30 sec. as distance delay between the seeds to be on the
safe side. We have 12 seeds so that's 6 minutes.
2021-11-10 18:31:53 +01:00
Christoph Atteneder
40ad5737cb
Remove unnecessary todo 2021-11-10 13:21:56 +01:00
chimp1984
880df30ffc
Remove unneeded UserThread.execute wrappers
In desktop we are on the UI thread.
In Seednode we have an outer UserThread.execute call already
2021-11-10 12:27:50 +01:00
Christoph Atteneder
8fbccb7547
Bump version number for v1.7.5 2021-10-19 11:32:09 +02:00
Christoph Atteneder
64274cf82e
Bump version number for v1.7.4 2021-09-21 09:24:26 +02:00
Christoph Atteneder
ad95e5b3be
Bump version number for v1.7.3 2021-08-23 11:20:09 +02:00
Christoph Atteneder
12b0a5bf80
Bump version number for v1.7.2 2021-07-16 20:37:10 +02:00
Christoph Atteneder
dfb97ca05f
Bump version number for v1.7.1 2021-07-12 14:52:38 +02:00
Christoph Atteneder
9f42035108
Bump version number for v1.7.0 2021-06-23 14:27:22 +02:00
Christoph Atteneder
59de78c332
Bump version number for v1.6.5 2021-05-21 20:00:49 +02:00
Christoph Atteneder
dba59138df
Bump version number for v1.6.4 2021-05-05 10:27:42 +02:00