|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
lsedlar commented 4 years ago | ||
jkaluza commented 4 years ago The The | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Without this commit, when there are two repos in single content set
sharing the same relative_url, ODCS tries to create and lock single
file lock twice, because the locks are based on the relative_url. This
leads to deadlock.
It also calls mergerepo_c with the same repo twice which is waste
of resources.
This commit changes it, so we remove duplicated repos before calling
mergerepo_c.
It also adds 1800 seconds timeout to mergerepo_c to ensure it does not
block whole process forever in case of issues.
What's going to happen if there are two repos with the same relative URL but different other fields? Can it even happen? Does ODCS care?