[Deluge] #3642: Latent and missing keys in torrent_status and update_ui API/method returns

2 views
Skip to first unread message

Deluge

unread,
Aug 24, 2024, 3:43:04 PM8/24/24
to delug...@googlegroups.com
#3642: Latent and missing keys in torrent_status and update_ui API/method returns
-------------------------+-------------------------------------------------
Reporter: ambipro | Type: bug
Status: new | Priority: major
Milestone: needs | Component: Core
verified | Keywords: update, torrent, status, webui,
Version: develop | api, json-rpc
-------------------------+-------------------------------------------------
After a seemingly random amount of time post-start, both the update_ui and
get_torrent_status API commands will either return outdated (or
potentially erroneous) information with their keys - for instance, stating
a torrent is "Paused" or "Downloading" state when it is "Seeding" while
all other keys indicate the torrent is completed, or showing
total_remaining > 1 but "Seeding" state after a download has
completed...but the most common is that keys are completely missing from
the return altogether. Examples of missing keys I've noticed range from
name and label to tracker and state. All "critical" keys.

What appears to be going on is that the synchronization between the web
daemon and the deluged process "decays" over time, however, this can be
remedied immediately upon disconnecting the web daemon and reconnecting it
the the RPC daemon. Once this is done all values appear and report
correctly until this desync occurs once again.

What _APPEARS_ to somewhat mitigate the occurrence of this bug is polling
the entire torrent list with update_ui regularly. It does not fix this
entirely though, but seems to make it occur less often.

I have only been able to reproduce this when the web daemon is running as
a separate process from the deluged. I have not been able to reproduce
this in my limited testing with the WebUI being run as a plugin, but my
testing was not exhaustive. Thus this seems to affect docker containers
more than native instances.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/3642>
Deluge <https://deluge-torrent.org/>
Deluge Project

Reply all
Reply to author
Forward
0 new messages