Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
626 commits
Select commit Hold shift + click to select a range
62386fc
IGNITE-11073: extract SnapshotTask
Mmuzaf Jan 14, 2020
8cc1e60
IGNITE-11073: accept intellij suggestion
Mmuzaf Jan 14, 2020
9863243
IGNITE-12069 (minor) Code cleanup. Removed some todo from off-heap ma…
xtern Jan 14, 2020
3814233
IGNITE-11073: schedule snapshot operation concurrency guarantees
Mmuzaf Jan 14, 2020
a861df6
IGNITE-12069 (minor) yet another local cache fix.
xtern Jan 15, 2020
ad41099
IGNITE-12069 Only coordinator should check global part sizes.
xtern Jan 15, 2020
3852f0c
IGNITE-12069 Start file rebalancing after regular rebalance.
xtern Jan 15, 2020
43518f1
IGNITE-12069 Print rebalancing order.
xtern Jan 15, 2020
acfa6b7
IGNITE-12069 (minor) Code cleanup.
xtern Jan 15, 2020
8d0b475
IGNITE-12069 Moved partition snapshot init into local partition.
xtern Jan 16, 2020
b878508
IGNITE-11073: change snapshot request onDone
Mmuzaf Jan 16, 2020
7524821
Merge branch 'master' into ignite-11073
Mmuzaf Jan 16, 2020
cd87e8f
Merge branch 'ignite-11073' into IGNITE-11073-12069
Mmuzaf Jan 16, 2020
f508c03
IGNITE-12069 Moved partition switch from read-only mode into checkpoi…
xtern Jan 16, 2020
b72daa4
Merge branch 'IGNITE-11073-12069' of https://github.com/Mmuzaf/ignite…
xtern Jan 16, 2020
8728c7d
IGNITE-11073: remove unnecessary empty line
Mmuzaf Jan 16, 2020
1cdf2d0
IGNITE-11073: code cleanup
Mmuzaf Jan 16, 2020
8b25035
IGNITE-12069 (minor) Code cleanup for mdoe switch.
xtern Jan 16, 2020
0e86cb6
IGNITE-12069 Code cleanup, removed replicated only test. Test added t…
xtern Jan 16, 2020
bc3f5b4
IGNITE-12069 Removed reservation commented code.
xtern Jan 16, 2020
5bc9ca0
IGNITE-11073: code cleanup 2
Mmuzaf Jan 16, 2020
7b9c11c
IGNITE-12069 testExchangeMessages fails, added test without load.
xtern Jan 16, 2020
8c5537d
IGNITE_12069 (Minor) Code cleanup.
xtern Jan 16, 2020
db38f58
IGNITE-11073: code cleanup 3
Mmuzaf Jan 16, 2020
8135dd2
IGNITE-11073: add condition on exception wrapper
Mmuzaf Jan 16, 2020
22a4f54
IGNITE-11073: change snapshot cancellation future
Mmuzaf Jan 16, 2020
8bd7170
IGNITE-12069 Yet another hIstory reservation for preloading fix.
xtern Jan 17, 2020
a9a3d25
IGNITE-11073: rework execution logic to snapshot task
Mmuzaf Jan 17, 2020
9beacd9
Merge branch 'master' into IGNITE-11073-12069
xtern Jan 17, 2020
124bb43
IGNITE-12069 testHistoricalRebalanceIterator failes, fixed inaccurate…
xtern Jan 17, 2020
271dbba
IGNITE-12069 Code cleanup.
xtern Jan 17, 2020
8d8c397
IGNITE-11073: unify snapshot task api
Mmuzaf Jan 17, 2020
0cea93e
Merge branch 'ignite-11073' into IGNITE-11073-12069
Mmuzaf Jan 17, 2020
5e445de
IGNITE-11073: rename snapshot task methods
Mmuzaf Jan 17, 2020
8786249
Merge branch 'IGNITE-11073-12069' of https://github.com/Mmuzaf/ignite…
xtern Jan 20, 2020
c52ed1a
IGNITE-12069 Cancellation bug fixes (wip),
xtern Jan 20, 2020
0eb1408
IGNITE-12069 Prevent hist rebalancing (wip).
xtern Jan 20, 2020
79e4597
Merge branch 'master' into ignite-11073
Mmuzaf Jan 21, 2020
8f98a68
IGNITE-12069 Should not propose supplier for zero counter.
xtern Jan 21, 2020
f2d9b16
experimental revert for `IGNITE-12069 Moved partition switch from rea…
xtern Jan 21, 2020
7b59a86
IGNITE-12069 Prevent hist rebalancing (wip).
xtern Jan 21, 2020
1ba047e
IGNITE-11073: add local snapshot data storage configuration
Mmuzaf Jan 22, 2020
08f31ef
Merge branch 'master' into ignite-11073
Mmuzaf Jan 22, 2020
4bd3e41
Merge branch 'ignite-11073' into IGNITE-11073-12069
Mmuzaf Jan 22, 2020
a33e9ec
IGNITE-12069 (draft) Check rebalance events.
xtern Jan 22, 2020
f598fd9
Merge branch 'IGNITE-11073-12069' of https://github.com/Mmuzaf/ignite…
xtern Jan 22, 2020
437360c
IGNITE-12069 Fixed compile issues after merge.
xtern Jan 22, 2020
e379599
IGNITE-12069 Added test for check rebalance interruption.
xtern Jan 22, 2020
e1289f8
IGNITE-12069 Prevent hist rebalancing after file rebalancing (wip).
xtern Jan 22, 2020
2c4dd7b
IGNITE-12069 (minor) COde cleanup part change mode.
xtern Jan 23, 2020
122ea41
IGNITE-12069 (minor) Code cleanup, part change mode moved into rebala…
xtern Jan 23, 2020
2f6df14
IGNITE-12069 (minor) Assignments reordering code cleanup.
xtern Jan 23, 2020
8620e79
IGNITE-12069 (minor) No need to track index rebuild.
xtern Jan 23, 2020
4abb8d6
IGNITE-11073: use future instead of latch to await on start
Mmuzaf Jan 23, 2020
53904fc
Merge branch 'ignite-11073' into IGNITE-11073-12069
Mmuzaf Jan 23, 2020
846a57c
IGNITE-12069 No need to keep preloading history reserved when distrib…
xtern Jan 23, 2020
aef28de
Merge branch 'IGNITE-11073-12069' of https://github.com/Mmuzaf/ignite…
xtern Jan 23, 2020
5f7e59d
IGNITE-12069 (minor) Redundant size conditions.
xtern Jan 23, 2020
f9b1bcb
IGNITE-12069 (minor) Code cleanup.
xtern Jan 24, 2020
edf1202
Revert "IGNITE-12069 No need to keep preloading history reserved when…
xtern Jan 24, 2020
576488e
IGNITE-12069 Refactor - readonly flag renamed to active.
xtern Jan 24, 2020
0e9e7d8
IGNITE-12069 temp workaround to prevent historical rebalancing,
xtern Jan 24, 2020
d1136ff
IGNITE-12069 (minor) Code cleanup.
xtern Jan 24, 2020
dd42fec
Revert "Revert "IGNITE-12069 No need to keep preloading history reser…
xtern Jan 24, 2020
ca85325
IGNITE-11073: simplify started wrapper
Mmuzaf Jan 24, 2020
3e92d68
IGNITE-11073: improve task submitting logic
Mmuzaf Jan 24, 2020
c720b3d
IGNITE-11073: improve task submitting logic 2
Mmuzaf Jan 24, 2020
86f861c
IGNITE-12069 (minor) Code cleanup.
xtern Jan 25, 2020
a45021f
Revert "Revert "Revert "IGNITE-12069 No need to keep preloading histo…
xtern Jan 27, 2020
90fed75
IGNITE-12069 Idx rebuild on incomplete group (experimental).
xtern Jan 27, 2020
bea1c8e
IGNITE-12069 Node stop fix.
xtern Jan 27, 2020
0f9a2ca
IGNITE-12069 (temp) TC check.
xtern Jan 27, 2020
e1d10dd
IGNITE-12069 Index rebuild logging.
xtern Jan 28, 2020
b0c46be
IGNITE-12069 Added test cases with multiple suppliers and rebalance c…
xtern Jan 28, 2020
7e7e478
IGNITE-11073: minor code changes
Mmuzaf Jan 30, 2020
be2809b
Merge branch 'master' into IGNITE-11073-12069
xtern Jan 30, 2020
0b18941
IGNITE-11073: fix javadoc
Mmuzaf Jan 30, 2020
08ac6ba
Merge branch 'master' into ignite-11073
Mmuzaf Jan 30, 2020
5335e06
IGNITE-12069 Fixed compile issues after merge.
xtern Jan 30, 2020
455d6ca
IGNITE-11073: add init method to snapshot file sender
Mmuzaf Jan 30, 2020
aee2de6
IGNITE-12069 Reset update counter initial value when partition is cle…
xtern Jan 31, 2020
6f64376
IGNITE-12069 code cleanup.
xtern Jan 31, 2020
affab2e
IGNITE-11073: simplify snapshot local sender getter
Mmuzaf Jan 31, 2020
1524c78
IGNITE-11073: add relative node path for remote snapshot sender
Mmuzaf Jan 31, 2020
88fb36e
IGNITE-12069 (minor) Code cleanup.
xtern Feb 3, 2020
05d1f4a
IGNITE-12069 (minor) Code cleanup.
xtern Feb 3, 2020
ff5345b
IGNITE-12069 SYNC mode not supported.
xtern Feb 3, 2020
59e6b6f
IGNITE-12069 WAL iterator on rollover experimental changes (inaccurate).
xtern Feb 3, 2020
c596bec
IGNITE-12069 (minor) filePreloader -> preloader.
xtern Feb 3, 2020
cdd0c91
Revert "IGNITE-12069 WAL iterator on rollover experimental changes (i…
xtern Feb 4, 2020
d96b8c2
IGNITE-12069 Another WAL iterator experiment.
xtern Feb 4, 2020
fe5e1ec
IGNITE-12069 WAL iterator experiment fix.
xtern Feb 4, 2020
c0742c2
IGNITE-12069 (minor) Reworked snapshot request routine.
xtern Feb 5, 2020
dbb6250
IGNITE-12069 (minor) Code cleanup.
xtern Feb 5, 2020
585ddd2
IGNITE-12069 Excessive sync
xtern Feb 5, 2020
a6a53d0
Merge branch 'IGNITE-11073-12069' of https://github.com/Mmuzaf/ignite…
xtern Feb 6, 2020
7bb4aec
Merge branch 'master' into IGNITE-11073-12069
Mmuzaf Feb 6, 2020
decd8d7
Merge branch 'master' into ignite-11073
Mmuzaf Feb 6, 2020
366b7d2
IGNITE-12069 Removed ignored test.
xtern Feb 6, 2020
1d85d2a
IGNITE-12069 Ensure that partition file truncated.
xtern Feb 6, 2020
a54b0b2
IGNITE-11073: remove unused params for submit method
Mmuzaf Feb 12, 2020
98f808a
IGNITE-12069 Rework part mode change routine
xtern Feb 12, 2020
8827ecb
IGNITE-12069 Use init method instead of reinit in cache data store.
xtern Feb 12, 2020
1c1b5a7
IGNITE-12069 Removed reinit, memory cleaner and other unused stuff.
xtern Feb 12, 2020
ff5985c
Merge branch 'IGNITE-11073-12069' of https://github.com/Mmuzaf/ignite…
xtern Feb 12, 2020
757dc6f
IGNITE-12069 (minor) Code cleanup.
xtern Feb 13, 2020
eb213f1
Merge branch 'master' into IGNITE-11073-12069
xtern Feb 13, 2020
69f6f1a
IGNITE-12069 Fix after merge.
xtern Feb 13, 2020
b2a3b02
IGNITE-12069 (minor) Renamed rebalancing to preloading.
xtern Feb 13, 2020
c9ef8b3
IGNITE-12069 (wip-experimental) rework hist rebalancing requesting.
xtern Feb 13, 2020
9d2e0fd
IGNITE-11073: remove mark, start phases as redundant
Mmuzaf Feb 13, 2020
433296e
IGNITE-11073: minor generic type change
Mmuzaf Feb 13, 2020
855b716
IGNITE-12069 (minor) trace timeouts in test, rebalancing -> preloading.
xtern Feb 14, 2020
d74fcb8
IGNITE-11073: add await snapshot started
Mmuzaf Feb 14, 2020
d651d76
IGNITE-11073: move snapshot task init to constructor
Mmuzaf Feb 14, 2020
48b4f6f
IGNITE-11073: minor code changes, renaming
Mmuzaf Feb 14, 2020
21562ea
IGNITE-11073: move redundant local snapshot method to tests
Mmuzaf Feb 14, 2020
9398784
IGNITE-11073: rename serial executor to single thread
Mmuzaf Feb 14, 2020
254eebe
IGNITE-11073: minor code changes for executor thread
Mmuzaf Feb 14, 2020
77f7e81
IGNITE-11073: hide executor into SnapshotFileSender
Mmuzaf Feb 14, 2020
d721dd2
IGNITE-11073: make snapshot task be as future
Mmuzaf Feb 14, 2020
24420be
IGNITE-11073: minor code changes
Mmuzaf Feb 14, 2020
6388f39
IGNITE-11073: started future can be completed earlier
Mmuzaf Feb 14, 2020
810ca77
IGNITE-11073: simplify closeasync method
Mmuzaf Feb 14, 2020
03391bb
IGNITE-11073: remove snapshot states from snapshot task
Mmuzaf Feb 15, 2020
a1ff52c
IGNITE-11073: remove redundant code
Mmuzaf Feb 15, 2020
6b157a7
Merge branch 'master' into ignite-11073
Mmuzaf Feb 15, 2020
62cb820
IGNITE-11073: code cleanup after review
Mmuzaf Feb 17, 2020
d2e9cbc
IGNITE-11073: code cleanup after review 2
Mmuzaf Feb 17, 2020
cd88603
IGNITE-11073: code cleanup after review 3
Mmuzaf Feb 17, 2020
5bd2bf8
IGNITE-11073: code cleanup after review 4
Mmuzaf Feb 17, 2020
a48585c
IGNITE-11073: change snapshot listener to biConsumer
Mmuzaf Feb 17, 2020
45977d3
IGNITE-11073: minor code changes 4
Mmuzaf Feb 17, 2020
989c825
IGNITE-11073: rejected execution exception handling
Mmuzaf Feb 17, 2020
7d0892a
IGNITE-11073: minor code changes 5
Mmuzaf Feb 17, 2020
4d5525f
IGNITE-11073: fix snapshot name generation
Mmuzaf Feb 17, 2020
2177c74
IGNITE-12069 Rework preloading startup (wip).
xtern Feb 17, 2020
d7496cd
Merge branch 'master' into ignite-11073
Mmuzaf Feb 17, 2020
ee25d6a
IGNITE-11073: change javadocs for BinaryTypeWriter
Mmuzaf Feb 17, 2020
ea8c34b
IGNITE-11073: rename snapshot task runner
Mmuzaf Feb 17, 2020
fc3cab3
Merge branch 'ignite-11073' into IGNITE-11073-12069
Mmuzaf Feb 18, 2020
0880080
IGNITE-11073: fix javadocs
Mmuzaf Feb 18, 2020
795fb03
IGNITE-12069 (minor) Code cleanup, rework hist assignments generation.
xtern Feb 18, 2020
8a52dc2
IGNITE-12069 Code cleanup.
xtern Feb 19, 2020
4f09690
IGNITE-12069 (minor) Code cleanup.
xtern Feb 21, 2020
ec30f6c
IGNITE-12069 Added pagemem cleanup on blt change, removed U.log
xtern Feb 25, 2020
eb2507c
IGNITE-12069 (experimental) Simplify hist suppliers selection code.
xtern Feb 25, 2020
331c80e
IGNITE-12069 (minor) Code clenup.
xtern Feb 25, 2020
a2ee17c
IGNITE-12069 pagemem clearAsync replaced with restart.
xtern Feb 25, 2020
5348a68
IGNITE_12069 (minor) Code cleanup.
xtern Feb 26, 2020
c283118
Merge branch 'master' into IGNITE-11073-12069
xtern Feb 26, 2020
23b21b7
IGNITE-12069 NPE fix.
xtern Feb 26, 2020
b36779b
Merge branch 'master' of https://github.com/apache/ignite into ignite…
Mmuzaf Feb 26, 2020
d392d88
Merge branch 'ignite-11073' into IGNITE-11073-12069
Mmuzaf Feb 26, 2020
b94f3b2
Merge branch 'IGNITE-11073-12069' of https://github.com/Mmuzaf/ignite…
Mmuzaf Feb 26, 2020
3848f93
IGNITE-12069 Always create partition preload manager.
xtern Feb 26, 2020
37dec58
IGNITE-12069 Move checkpoint listener into future.
xtern Feb 27, 2020
c6cecf4
IGNITE-12069 Removed uniquePartId.
xtern Feb 27, 2020
3d4d3c4
Merge branch 'IGNITE-11073-12069' of https://github.com/Mmuzaf/ignite…
xtern Feb 27, 2020
5b34ee3
IGNITE-12069 Ignore rebalance order.
xtern Feb 27, 2020
2ff578f
IGNITE-11073: force checkpoint on snapshot request
Mmuzaf Feb 27, 2020
372b784
IGNITE-11073: fix snapshot done if exception occurred on pagestore fi…
Mmuzaf Feb 28, 2020
2f5fae3
IGNITE-11073: improve error logging on file receiver node
Mmuzaf Feb 28, 2020
0b1f6e6
Merge branch 'ignite-11073' into IGNITE-11073-12069
Mmuzaf Feb 28, 2020
2aefae4
IGNITE-11073: fix the issue with future completion
Mmuzaf Feb 28, 2020
66e1507
IGNITE-11073: fix the issue with future completion
Mmuzaf Feb 28, 2020
31fd217
Merge branch 'ignite-11073' into IGNITE-11073-12069
Mmuzaf Feb 28, 2020
b394d07
IGNITE-12069 NPE fix, request partitions on different thread.
xtern Mar 2, 2020
5016b6f
IGNITE-11073: improve logging for snapshot recovery
Mmuzaf Mar 2, 2020
348fc16
Merge branch 'ignite-11073' into IGNITE-11073-12069
Mmuzaf Mar 2, 2020
0596356
IGNITE-11073: fix error handling during partition recovery
Mmuzaf Mar 2, 2020
6a53ce1
IGNITE-11073: fix error handling during partition recovery 2
Mmuzaf Mar 2, 2020
bb16761
IGNITE-11073: fix error handling during partition recovery
Mmuzaf Mar 2, 2020
9275015
IGNITE-11073: quick fix of receiving files
Mmuzaf Mar 2, 2020
3698e5f
IGNITE-12069 Idx pool size.
xtern Mar 2, 2020
2fc5c21
Merge branch 'IGNITE-11073-12069' of https://github.com/Mmuzaf/ignite…
xtern Mar 2, 2020
aa4e48c
IGNITE-12069 Removed assignment reordering.
xtern Mar 3, 2020
2dd164e
IGNITE-12069 Should not get checkpoint read lock on node stop.
xtern Mar 3, 2020
d9ba4b3
IGNITE-11073: remove BinaryMetadataFactory, add saveMetadata method
Mmuzaf Mar 4, 2020
2cb88be
IGNITE-12069 Removed forced checkpoint (investigate possible live loc…
xtern Mar 6, 2020
68b7df7
IGNITE-11073: remove marshaller writer WIP 1
Mmuzaf Mar 6, 2020
20be1db
IGNITE-11073: remove marshaller writer
Mmuzaf Mar 6, 2020
d8863c3
IGNITE-11073: simplify partition pages collection under checkpoint wr…
Mmuzaf Mar 6, 2020
71d48f9
Merge branch 'master' into ignite-11073
Mmuzaf Mar 6, 2020
3b48e03
IGNITE-12069 Set user index rebuild future.
xtern Mar 6, 2020
44299c8
IGNITE-11073: fix javadocs
Mmuzaf Mar 6, 2020
51824b0
IGNITE-12069 Change WAL state only after index rebuild is finished.
xtern Mar 6, 2020
9ea70b8
IGNITE-11073: save marshaller mappings prior to task execution
Mmuzaf Mar 7, 2020
77cb55b
IGNITE-12069 Fix for finish future.
xtern Mar 10, 2020
d786b08
IGNITE-12069 Dirty fix for force reassign.
xtern Mar 10, 2020
6937501
IGNITE-12069 Rework assignments remap.
xtern Mar 10, 2020
9498dec
IGNITE-12069 Rework remain groups calculation.
xtern Mar 10, 2020
68b95ca
IGNITE-12069 Rework assignments mapping.
xtern Mar 10, 2020
c84ef96
IGNITE-12069 (minor) Code cleanup.
xtern Mar 10, 2020
dd0d433
IGNITE-12069 (experimental) Always start files preloading when data s…
xtern Mar 10, 2020
eef1990
IGNITE-12069 (minor) Removed commented code.
xtern Mar 10, 2020
7be0f33
IGNITE-12069 NPE fix.
xtern Mar 11, 2020
1073d90
IGNITE-12069 Ignore stopping cache groups.
xtern Mar 11, 2020
bc5b7b3
IGNITE-12069 (minor) Code cleanup.
xtern Mar 11, 2020
ac9cbb1
IGNITE-11073: remove GridIntList
Mmuzaf Mar 11, 2020
7e6e2f4
Merge branch 'ignite-11073' of https://github.com/Mmuzaf/ignite into …
Mmuzaf Mar 11, 2020
bffa7b2
IGNITE-11073: initialize sequential page writes under the write lock
Mmuzaf Mar 11, 2020
ec2523e
IGNITE-11073: initialize sequential page writes under the write lock 2
Mmuzaf Mar 11, 2020
fd8f252
IGNITE-11073: fix review comments
Mmuzaf Mar 12, 2020
d12ee48
IGNITE-11073: fix review comments 2
Mmuzaf Mar 12, 2020
1c22432
IGNITE-11073: init page writer on demand
Mmuzaf Mar 12, 2020
9e63546
IGNITE-11073: move startLocalSnapshot method to tests
Mmuzaf Mar 12, 2020
0b38b81
IGNITE-11073: minor code changes
Mmuzaf Mar 12, 2020
394a979
Merge branch 'master' into ignite-11073
Mmuzaf Mar 12, 2020
2d93520
IGNITE-11073: remove Optional
Mmuzaf Mar 13, 2020
7217e32
IGNITE-11073: fix comments after review
Mmuzaf Mar 13, 2020
deb07c3
IGNITE-11073: fix comments after review
Mmuzaf Mar 17, 2020
19637ff
IGNITE-11073: fix comments after review 2
Mmuzaf Mar 17, 2020
a20c1d9
IGNITE-11073: fix comments after review 3
Mmuzaf Mar 17, 2020
25a3994
IGNITE-11073: fix comments after review 4
Mmuzaf Mar 17, 2020
d0f4d44
IGNITE-11073: fix comments after review 5
Mmuzaf Mar 17, 2020
3c5b28f
IGNITE-11073: fix comments after review 6
Mmuzaf Mar 17, 2020
53f5498
IGNITE-11073: fix comments after review 7
Mmuzaf Mar 18, 2020
fa48c1b
IGNITE-11073: fix code style issues
Mmuzaf Mar 18, 2020
3a6e759
IGNITE-11073: remove cancelled flag from snapshot task
Mmuzaf Mar 18, 2020
f6b6933
IGNITE-11073: fix review comments in test
Mmuzaf Mar 18, 2020
75f9c05
IGNITE-11073: cleanup resources prior to completing remote,local snap…
Mmuzaf Mar 18, 2020
fe539f0
IGNITE-11073: add checks for test remote snapshot and loader threads
Mmuzaf Mar 20, 2020
5d8b95c
IGNITE-11073: fix minor comments after review, remove unnecessary dat…
Mmuzaf Mar 20, 2020
e2c6fe0
IGNITE-11073: replace with forceCheckpoint, improve logging, add clus…
Mmuzaf Mar 20, 2020
4015a78
IGNITE-11073: add checkpoint listener latch holder
Mmuzaf Mar 20, 2020
407e246
IGNITE-11073: checkstyle fix
Mmuzaf Mar 20, 2020
15ef9e2
IGNITE-11073: check binary and marshaller mappings for created snapshot
Mmuzaf Mar 23, 2020
bd4a832
Merge branch 'master' into IGNITE-11073-12069
xtern Mar 25, 2020
7a52b90
IGNITE-12069 (minor) Code cleanup.
xtern Mar 26, 2020
c5aa3cd
Merge branch 'master' into ignite-11073
Mmuzaf Mar 27, 2020
4cb4dc1
Merge branch 'ignite-11073' into IGNITE-11073-12069
Mmuzaf Mar 27, 2020
4a05bf7
Merge branch 'master' into IGNITE-11073-12069
Mmuzaf Apr 13, 2020
c774769
IGNITE-11073: remove unused
Mmuzaf Apr 13, 2020
a135b62
IGNITE-12069 Part release future should wait only local updates.
xtern Apr 14, 2020
6682cd1
IGNITE-12069 Generate assignments for all cache groups moved into fil…
xtern Apr 14, 2020
6760ddd
IGNITE-12069 Place files.move code into FilePageStoreManager.
xtern Apr 14, 2020
260bdb9
IGNITE-12069 (minor) Code cleanup.
xtern Apr 14, 2020
ae1bc1e
IGNITE-12069 (minor) Method naming.
xtern Apr 15, 2020
bafdc8e
IGNITE-12069 Remove rebalance events.
xtern Apr 15, 2020
18126f6
IGNITE-12069 Rollback changes for rebalance events recording.
xtern Apr 15, 2020
04e1e59
IGNITE-12069 In theory we can have more than max_int partitions to re…
xtern Apr 15, 2020
7c57d28
IGNITE-12069 Preloading routine decomposition (phase-1).
xtern Apr 16, 2020
808465e
IGNITE-12069 (minor) Code cleanup.
xtern Apr 17, 2020
71658aa
Merge branch 'master' into IGNITE-11073-12069
xtern Apr 18, 2020
e89c2b0
Merge branch 'master' into IGNITE-11073-12069
Mmuzaf Apr 19, 2020
e551fa7
IGNITE-12963: add snapshot request from remote node
Mmuzaf Apr 28, 2020
13a0151
Merge branch 'master' into ignite-12963
Mmuzaf May 1, 2020
c02c52a
Merge branch 'ignite-12963' into IGNITE-11073-12069
Mmuzaf May 2, 2020
9b7f561
IGNITE-11073: fix session timeout in case of huge load
Mmuzaf May 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,16 @@ public final class IgniteSystemProperties {
*/
public static final String IGNITE_PDS_WAL_REBALANCE_THRESHOLD = "IGNITE_PDS_WAL_REBALANCE_THRESHOLD";

/**
* Flag to enable file rebalancing.
*/
public static final String IGNITE_FILE_REBALANCE_ENABLED = "IGNITE_FILE_REBALANCE_ENABLED";

/**
* File rebalancing is applicable only if the number of entries in the partition is greater than this threshold.
*/
public static final String IGNITE_FILE_REBALANCE_THRESHOLD = "IGNITE_PDS_FILE_REBALANCE_THRESHOLD";

/** Ignite page memory concurrency level. */
public static final String IGNITE_OFFHEAP_LOCK_CONCURRENCY_LEVEL = "IGNITE_OFFHEAP_LOCK_CONCURRENCY_LEVEL";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ public class DataStorageConfiguration implements Serializable {
(long)(DFLT_DATA_REGION_FRACTION * U.getTotalMemoryAvailable()),
DFLT_DATA_REGION_INITIAL_SIZE);

/** Default working directory for a snapshot final result. */
public static final String DFLT_LOCAL_SNAPSHOT_DIRECTORY = "snapshots";

/** Default initial size of a memory chunk for the system cache (40 MB). */
private static final long DFLT_SYS_REG_INIT_SIZE = 40L * 1024 * 1024;

Expand Down Expand Up @@ -159,6 +162,9 @@ public class DataStorageConfiguration implements Serializable {
/** Default wal archive directory. */
public static final String DFLT_WAL_ARCHIVE_PATH = "db/wal/archive";

/** Default working directory for backup temporary files. */
public static final String DFLT_BACKUP_DIRECTORY = "db/backup";

/** Default write throttling enabled. */
public static final boolean DFLT_WRITE_THROTTLING_ENABLED = false;

Expand Down Expand Up @@ -194,6 +200,9 @@ public class DataStorageConfiguration implements Serializable {
/** Directory where index and partition files are stored. */
private String storagePath;

/** Directory where will be stored all results of snapshot operations. */
private String locSnapshotPath = DFLT_LOCAL_SNAPSHOT_DIRECTORY;

/** Checkpoint frequency. */
private long checkpointFreq = DFLT_CHECKPOINT_FREQ;

Expand Down Expand Up @@ -472,6 +481,24 @@ public DataStorageConfiguration setStoragePath(String persistenceStorePath) {
return this;
}

/**
* @return Relative path where will be stored all local snapshot results.
*/
public String getLocalSnapshotPath() {
return locSnapshotPath;
}

/**
* @param locSnapshotPath Relative path to store all local snapshot results. By default
* {@code DFLT_LOCAL_SNAPSHOT_DIRECTORY} is used.
* @return Data storage configurations for chaining.
*/
public DataStorageConfiguration setLocalSnapshotPath(String locSnapshotPath) {
this.locSnapshotPath = locSnapshotPath;

return this;
}

/**
* Gets checkpoint frequency.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ public class IgniteConfiguration {
/** Default rebalance batch size in bytes (value is {@code 512Kb}). */
public static final int DFLT_REBALANCE_BATCH_SIZE = 512 * 1024; // 512K

/** Default WAL rebalance threshold (value is 500 000 cache entries). */
public static final long DFLT_PDS_WAL_REBALANCE_THRESHOLD = 500_000;

/** Default size of system thread pool. */
public static final int DFLT_SYSTEM_CORE_THREAD_CNT = DFLT_PUBLIC_THREAD_CNT;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ public enum IgniteFeatures {
PERSISTENCE_CACHE_SNAPSHOT(23),

/** Long operations dump timeout. */
LONG_OPERATIONS_DUMP_TIMEOUT(30);
LONG_OPERATIONS_DUMP_TIMEOUT(30),

/** */
CACHE_PARTITION_FILE_REBALANCE(24);

/**
* Unique feature identifier.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ protected AbstractTransmission(
int chunkSize
) {
A.notNull(meta, "Initial file meta cannot be null");
A.notNullOrEmpty(meta.name(), "Trasmisson name cannot be empty or null");
A.notNullOrEmpty(meta.name(), "Transmission name cannot be empty or null");
A.ensure(meta.offset() >= 0, "File start position cannot be negative");
A.ensure(meta.count() > 0, "Total number of bytes to transfer must be greater than zero");
A.ensure(meta.count() >= 0, "Total number of bytes to transfer can't be less than zero");
A.notNull(stopChecker, "Process stop checker cannot be null");
A.ensure(chunkSize > 0, "Size of chunks to transfer data must be positive");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public FileReceiver(
fileIo.position(meta.offset());
}
catch (IOException e) {
throw new IgniteException("Unable to open destination file. Receiver will will be stopped", e);
throw new IgniteException("Unable to open destination file. Receiver will be stopped: " +
file.getAbsolutePath(), e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ public class GridIoManager extends GridManagerAdapter<CommunicationSpi<Serializa
/** Direct protocol version. */
public static final byte DIRECT_PROTO_VER = 3;

/** Session timeout which processing files. */
private static final int CHANNEL_SESSION_TIMEOUT_MS = 60_000;

/** Current IO policy. */
private static final ThreadLocal<Byte> CUR_PLC = new ThreadLocal<>();

Expand Down Expand Up @@ -2711,9 +2714,15 @@ private void interruptRecevier(ReceiverContext rctx, Exception ex) {
rctx.lastState = rctx.lastState == null ?
new TransmissionMeta(ex) : rctx.lastState.error(ex);

rctx.hnd.onException(rctx.rmtNodeId, ex);
if (X.hasCause(ex, TransmissionCancelledException.class)) {
if (log.isInfoEnabled())
log.info("Transmission receiver has been cancelled [rctx=" + rctx + ']');
}
else {
rctx.hnd.onException(rctx.rmtNodeId, ex);

U.error(log, "Receiver has been interrupted due to an exception occurred [ctx=" + rctx + ']', ex);
U.error(log, "Receiver has been interrupted due to an exception occurred [rctx=" + rctx + ']', ex);
}
}
}

Expand Down Expand Up @@ -2767,7 +2776,8 @@ private void processOpenedChannel(Object topic, UUID rmtNodeId, SessionChannelMe
"It's not allowed to process different sessions over the same topic simultaneously. " +
"Channel will be closed [initMsg=" + initMsg + ", channel=" + ch + ", nodeId=" + rmtNodeId + ']');

U.error(log, err);
U.error(log, "Error has been sent back to remote node. Receiver holds the local topic " +
"[topic=" + topic + ", rmtNodeId=" + rmtNodeId + ", ctx=" + rcvCtx + ']', err);

out.writeObject(new TransmissionMeta(err));

Expand Down Expand Up @@ -2799,8 +2809,6 @@ private void processOpenedChannel(Object topic, UUID rmtNodeId, SessionChannelMe
}
}
catch (Throwable t) {
U.error(log, "Download session cannot be finished due to an unexpected error [ctx=" + rcvCtx + ']', t);

// Do not remove receiver context here, since sender will recconect to get this error.
interruptRecevier(rcvCtx, new IgniteCheckedException("Channel processing error [nodeId=" + rmtNodeId + ']', t));
}
Expand Down Expand Up @@ -2898,7 +2906,7 @@ private void receiveFromChannel(
}

@Override public long endTime() {
return startTs + netTimeoutMs;
return startTs + CHANNEL_SESSION_TIMEOUT_MS;
}

@Override public void onTimeout() {
Expand Down Expand Up @@ -3174,6 +3182,13 @@ private TransmissionMeta connect() throws IgniteCheckedException, IOException {
return syncMeta;
}

/**
* @return {@code true} if sender's session is currently active.
*/
public boolean opened() {
return senderStopFlags.containsKey(sesKey);
}

/**
* @param file Source file to send to remote.
* @param params Additional file params.
Expand Down Expand Up @@ -3312,6 +3327,11 @@ public void send(
if (stopping)
throw new NodeStoppingException("Operation has been cancelled (node is stopping)");

if (senderStopFlags.get(sesKey) == null)
e.printStackTrace();

assert senderStopFlags.get(sesKey) != null : "key=" + sesKey + ", flags=" + senderStopFlags.keySet();

if (senderStopFlags.get(sesKey).get())
throw new ClusterTopologyCheckedException("Remote node left the cluster: " + rmtId, e);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@
import org.apache.ignite.internal.processors.cache.mvcc.msg.MvccTxSnapshotRequest;
import org.apache.ignite.internal.processors.cache.mvcc.msg.PartitionCountersNeighborcastRequest;
import org.apache.ignite.internal.processors.cache.mvcc.msg.PartitionCountersNeighborcastResponse;
import org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotRequestMessage;
import org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotResponseMessage;
import org.apache.ignite.internal.processors.cache.query.GridCacheQueryRequest;
import org.apache.ignite.internal.processors.cache.query.GridCacheQueryResponse;
import org.apache.ignite.internal.processors.cache.query.GridCacheSqlQuery;
Expand Down Expand Up @@ -401,6 +403,8 @@ public class GridIoMessageFactory implements MessageFactoryProvider {
factory.register(GridIoSecurityAwareMessage.TYPE_CODE, GridIoSecurityAwareMessage::new);
factory.register(SessionChannelMessage.TYPE_CODE, SessionChannelMessage::new);
factory.register(SingleNodeMessage.TYPE_CODE, SingleNodeMessage::new);
factory.register(SnapshotRequestMessage.TYPE_CODE, SnapshotRequestMessage::new);
factory.register(SnapshotResponseMessage.TYPE_CODE, SnapshotResponseMessage::new);

// [-3..119] [124..129] [-23..-28] [-36..-55] - this
// [120..123] - DR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.apache.ignite.internal.pagemem.store;

import java.io.File;
import java.nio.ByteBuffer;
import java.util.Map;
import java.util.function.Predicate;
Expand Down Expand Up @@ -117,9 +118,8 @@ public void initializeForCache(CacheGroupDescriptor grpDesc, StoredCacheData cac
* @param grpId Cache group ID.
* @param partId Partition ID.
* @return {@code True} if partition store exists.
* @throws IgniteCheckedException If failed.
*/
public boolean exists(int grpId, int partId) throws IgniteCheckedException;
public boolean exists(int grpId, int partId);

/**
* Reads a header of a page store.
Expand Down Expand Up @@ -266,4 +266,14 @@ public void initializeForCache(CacheGroupDescriptor grpDesc, StoredCacheData cac
* @throws IgniteCheckedException If failed.
*/
public boolean checkAndInitCacheWorkDir(CacheConfiguration cacheCfg) throws IgniteCheckedException;

/**
* Restore partition file.
*
* @param grpId Cache group ID.
* @param partId Partition ID.
* @param src Partition file.
* @throws IgniteCheckedException If the page store doesn't exists or the file couldn't be moved.
*/
public void restore(int grpId, int partId, File src) throws IgniteCheckedException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,15 @@ public WALPointer log(WALRecord entry, RolloverType rolloverType)
* Invoke this method to iterate over the written log entries.
*
* @param start Optional WAL pointer from which to start iteration.
* @param limited Limit iterator to current segment.
* @param recordDeserializeFilter Specify a filter to skip WAL records. Those records will not be explicitly deserialized.
* @return Records iterator.
* @throws IgniteException If failed to start iteration.
* @throws StorageException If IO error occurred while reading WAL entries.
*/
public WALIterator replay(
WALPointer start,
boolean limited,
@Nullable IgniteBiPredicate<WALRecord.RecordType, WALPointer> recordDeserializeFilter
) throws IgniteCheckedException, StorageException;

Expand Down
Loading