<div dir="ltr">Hi Thomas,<div><br></div><div>Not sure if this will help but what is the value of the <b>AuthorityMergeLimit</b> sys pref? </div><div>I think the default value is 50 and any authority being merged with more than 50 linked biblios will be processed by the <b>misc/migration_tools/<a href="http://merge_authority.pl">merge_authority.pl</a></b> cronjob (which runs daily by default if I'm not mistaken).</div><div>If the problem you're experiencing is indeed related to having lots of linked biblios, maybe lowering this value (or setting it if empty) might help?</div><div><br></div><div>In the past I reported an issue with subsequent authority merging (that get queued to be processed by the cronjob):<br><a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22437">https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22437</a><br></div><div><br></div><div>But I believe this has been fixed.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 30 Sept 2022 at 12:19, Thomas Klausner <<a href="mailto:domm@plix.at">domm@plix.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
It seems that merging authorities with lots of linked biblios can lead <br>
to data corruption (at least in 21.05):<br>
<br>
The merging of the auth record itself seems to work, but the linking of <br>
the biblios from old to new auth record happens inside a normal <br>
synchrone web request. If this requests times out (because there might <br>
be a lot of biblio records to relink), some of the biblios still point <br>
to the old auth, which is already deleted. (At least this seems to be <br>
happening, based on the complaints we got from librarians)<br>
<br>
I guess the only fix is to handle authority merging via background jobs <br>
/ job queue.<br>
<br>
Is this a known bug? I couldn't find anything about that in bugzilla?<br>
If yes, is there a timeframe when it will be fixed?<br>
If no, I will create a bug (though reproducing it will need some weird <br>
fixtures in the DB..).<br>
<br>
In any case, the Steiermärkische Landesbibliothek is keen to get this <br>
working, so I could give fixing it a try. But this will need some <br>
discussion, I assume? As I suppose this will be a bit more work than a <br>
single-line fix in a template, I'd like to have some backing by other <br>
Koha-devs, that this behaviour is indeed a bug, and that using <br>
background jobs is the correct way to fix it.<br>
<br>
Greetings,<br>
domm<br>
<br>
-- <br>
#!/usr/bin/perl                             <a href="https://domm.plix.at" rel="noreferrer" target="_blank">https://domm.plix.at</a><br>
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}<br>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="https://www.koha-community.org/" rel="noreferrer" target="_blank">https://www.koha-community.org/</a><br>
git : <a href="https://git.koha-community.org/" rel="noreferrer" target="_blank">https://git.koha-community.org/</a><br>
bugs : <a href="https://bugs.koha-community.org/" rel="noreferrer" target="_blank">https://bugs.koha-community.org/</a><br>
</blockquote></div>