Opened 5 days ago

Last modified 5 days ago

#2508 new defect

I2PSnark: Torrent metadata is lost on restart

Reported by: Reportage Owned by: zzz
Priority: minor Milestone: undecided
Component: apps/i2psnark Version: 0.9.40
Keywords: i2psnark, metadata, dataloss Cc:
Parent Tickets:

Description

When the router is restarted, accumulated metadata is lost in I2PSnark: user-added comments and amount of data uploaded specifically.

This data should persist between restarts.

Subtickets (add)

Change History (2)

comment:1 Changed 5 days ago by zzz

Comments are saved in SnarkManager?.stopAllTorrents(), but perhaps there's a bug somewhere.

Similarly, stopAllTorrents() does call Snark.stopTorrent() which calls SnarkManager?.updateStatus() which calls saveTorrentStatus(). Again, maybe there's bugs.

There's several cases - clicking stop all, vs. router shutdown... was the torrent running or not... and maybe others. So perhaps some cases work and some don't. But the design intent was to persist and the code's been in there for a long time. If you can identify particular cases that don't work that would be helpful.

comment:2 Changed 5 days ago by Reportage

The data loss invariably occurs when the router is restarted without explicitly stopping torrents first. I generally leave torrents running so can't comment on what happens when torrents are explicitly stopped before a shutdown is initiated.

Note: See TracTickets for help on using tickets.