From 59ff54edf681bd6f4a4fe472bed7ea729b95af67 Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Sun, 27 Oct 2024 12:24:03 +0200 Subject: [PATCH] update notes --- notes.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/notes.txt b/notes.txt index c848c69..c3fee9e 100644 --- a/notes.txt +++ b/notes.txt @@ -35,5 +35,12 @@ Local peers and destination tracker's peers conflict: into peer list, overwriting local peer record, which is IMPORTANT because it holds local data. To avoid this conflict, a Set must be used guaranteeing unique list of peers, on conflicting peers - always PREFER LOCAL record. +Local tracker cache and destination tracker peers: + On each re-announce job retracker shall add peers to its local tracker, but what to do if peer is not present in returned + destination tracker's announce response? If we flush all peers and override them with destination tracker peer list, + this would delete peers that are local announced. Therefore, a grace period should be added to each REMOTE peer, and vanish only + after absence in N announce responses from destination tracker. + If we don't flush peer list - it will indefinitely grow bigger and bigger. + Maven exec with args: mvn exec:java -Dexec.args='' \ No newline at end of file