Skip to content

Say which class a refused cache file names - #3351

Merged
xirvik merged 1 commit into
Novik:masterfrom
xirvik:fix/name-the-refused-class
Oct 6, 2026
Merged

xirvik merged 1 commit into
Novik:masterfrom
xirvik:fix/name-the-refused-class

Conversation

@xirvik

@xirvik xirvik commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

A refused cache file is logged as " names a class it may not hold", which leaves the reader to work out which class that was. The answer decides what to do about it: a class the stored object legitimately holds wants a cacheClasses() entry, and anything else wants not to be stored. log_history.dat was refused for the rCache its handler keeps in a property (#3333), and the message said nothing about rCache.

unserialize() leaves the original name in the stand-in object, so read it back and name it: " names the class rCache, which it may not hold".

The walk-budget test pinned the old wording to keep a class refusal distinguishable from a budget one; it now pins the class it named, which is the same distinction and a narrower assertion.

Also adds the upgrade case #3333 described but never exercised: a log_history.dat written with the pre-fix object graph is read back through the endpoint, with the handler and its cache both named in the file, the older message still in the answer and nothing refused.

A refused cache file is logged as "<file> names a class it may not hold",
which leaves the reader to work out which class that was. The answer
decides what to do about it: a class the stored object legitimately holds
wants a cacheClasses() entry, and anything else wants not to be stored.
log_history.dat was refused for the rCache its handler keeps in a
property (Novik#3333), and the message said nothing about rCache.

unserialize() leaves the original name in the stand-in object, so read it
back and name it: "<file> names the class rCache, which it may not hold".

The walk-budget test pinned the old wording to keep a class refusal
distinguishable from a budget one; it now pins the class it named, which
is the same distinction and a narrower assertion.

Also adds the upgrade case Novik#3333 described but never exercised: a
log_history.dat written with the pre-fix object graph is read back
through the endpoint, with the handler and its cache both named in the
file, the older message still in the answer and nothing refused.
@xirvik
xirvik merged commit 3e507cb into Novik:master Oct 6, 2026
8 checks passed
@xirvik
xirvik deleted the fix/name-the-refused-class branch October 6, 2026 23:28
xirvik added a commit to xirvik/ruTorrent that referenced this pull request Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant