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

IGNITE-23483 : Restore snapshot check from lesser topology for snapshot check distributed process. #11596

Open
wants to merge 34 commits into
base: IGNITE-22662__snapshot_refactoring
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
dd338c8
Merge branch 'master' into IGNITE-22662__snapshot_refactoring
timoninmaxim Aug 22, 2024
29e0b49
Merge remote-tracking branch 'ignite/IGNITE-22662__snapshot_refactori…
Vladsz83 Oct 4, 2024
b9ae934
Merge remote-tracking branch 'ignite/IGNITE-22662__snapshot_refactori…
Vladsz83 Oct 9, 2024
5f71d4a
first
Vladsz83 Oct 9, 2024
6291dc9
raw
Vladsz83 Oct 10, 2024
a34a156
minor javadoc fix
Vladsz83 Oct 10, 2024
f0d09c0
fix
Vladsz83 Oct 10, 2024
a9f6401
test fixes
Vladsz83 Oct 10, 2024
6b33195
test fixes
Vladsz83 Oct 11, 2024
e9fabb4
test fix
Vladsz83 Oct 11, 2024
ffd33bf
raw
Vladsz83 Oct 12, 2024
230530c
impl
Vladsz83 Oct 14, 2024
ef34091
fix
Vladsz83 Oct 15, 2024
4e6d810
+test
Vladsz83 Oct 15, 2024
d0b202f
+ refactor inc
Vladsz83 Oct 15, 2024
060f0b1
+ inc test
Vladsz83 Oct 15, 2024
756ac71
Merge remote-tracking branch 'my/FixCheckSnapshotFromSingleNode' into…
Vladsz83 Oct 15, 2024
404cd6d
fixes
Vladsz83 Oct 16, 2024
cf9d402
fix
Vladsz83 Oct 16, 2024
11740f0
reimpl metas collection
Vladsz83 Oct 16, 2024
04f48a4
Merge remote-tracking branch 'ignite/IGNITE-22662__snapshot_refactori…
Vladsz83 Oct 17, 2024
0806288
Merge branch 'IGNITE-22662__snapshot_refactoring' into IGNITE-23483-R…
Vladsz83 Oct 17, 2024
e3b22e0
merge fix
Vladsz83 Oct 17, 2024
836ce38
revert incremental snp check
Vladsz83 Oct 17, 2024
eca56f6
review fixes
Vladsz83 Dec 27, 2024
4a402e6
codestyle
Vladsz83 Dec 28, 2024
8628960
revert
Vladsz83 Dec 28, 2024
05c923a
fix
Vladsz83 Dec 28, 2024
c8a3a80
review fix
Vladsz83 Feb 10, 2025
d4e8319
refactor IdleVefiryRes
Vladsz83 Feb 10, 2025
ee7fb1f
Merge remote-tracking branch 'my/IGNITE-23058_remove_snapshot_check_t…
Vladsz83 Feb 11, 2025
afb9b9d
minor
Vladsz83 Feb 11, 2025
6dc945f
minor refactor
Vladsz83 Feb 11, 2025
e528824
Renaming V2->V1
Vladsz83 Feb 11, 2025
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 @@ -146,7 +146,7 @@ public class VerifyBackupPartitionsTaskV2 extends ComputeTaskAdapter<CacheIdleVe
*/
public static IdleVerifyResultV2 reduce0(List<ComputeJobResult> results) {
Vladsz83 marked this conversation as resolved.
Show resolved Hide resolved
Map<ClusterNode, Exception> ex = new HashMap<>();
Map<ClusterNode, Map<PartitionKeyV2, PartitionHashRecordV2>> hashes = new HashMap<>();
Map<ClusterNode, Map<PartitionKeyV2, List<PartitionHashRecordV2>>> hashes = new HashMap<>();

for (ComputeJobResult res : results) {
if (res.getException() != null) {
Expand All @@ -155,7 +155,11 @@ public static IdleVerifyResultV2 reduce0(List<ComputeJobResult> results) {
continue;
}

hashes.put(res.getNode(), res.getData());
Map<PartitionKeyV2, List<PartitionHashRecordV2>> nodePartsRes = hashes.computeIfAbsent(res.getNode(), node -> new HashMap<>());

Map<PartitionKeyV2, PartitionHashRecordV2> nodeData = res.getData();

nodeData.forEach((partKey, partHash) -> nodePartsRes.computeIfAbsent(partKey, k -> new ArrayList<>()).add(partHash));
}

return SnapshotChecker.reduceHashesResults(hashes, ex);
Expand Down
Loading