Fix deletion of redirected URLs - #2050
Conversation
|
Real gap, thanks - good regression test too. Couple of questions:
|
|
Thanks Davide! I’ve addressed both points.
The updated test suite passes with 6 tests, 0 failures, and 0 errors. |
|
Thanks — the concerns from my previous comment are addressed: temporary redirects are excluded and the ERROR/FETCHED behaviour is now pinned. One remaining observation about the resulting contract: the PR is described as deleting permanent redirects, but a meta refresh carries no permanence signal. Could we narrow this feature to HTTP 301/308 only and put it behind Deletion should also require redirect following to be enabled; otherwise Daily re-emission would still affect topologies opting in. I'd keep that as a separate scheduler/idempotency follow-up rather than consider it solved by the default. |
|
Thanks, I've addressed these points in the latest commit:
The targeted test suite passes all 9 tests. |
dpol1
left a comment
There was a problem hiding this comment.
Thanks @Atmuri-SatyaPrakash! - LGTM now.
Description
Fix deletion of URLs that are permanently redirected.
Previously, redirected URLs were not emitted to the deletion stream, which could leave the old URL in the index after a permanent redirect.
This change:
Testing
Added regression tests covering:
Tested with:
mvn -pl core -Deditorconfig.skip=true -Dtest=AbstractStatusUpdaterBoltTest test
Result:
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESS