Bug #864
Even if UUID didn't changed, SVNCR reports: Found changed subversion UUID for repo.
Start date:
Due date:
% Done:
0%
Estimated time:
origin:
trac
Description
Found changed subversion UUID for repo. Will run full scan: environment/acsaRepository.
It happens quite often that the SVNCR things the UUID has changed upon a sync. But the repo hasn't changed at all.
I could see in the debugger that
current.getUUID()
delivers null.
Updated by Udo Offermann over 12 years ago
Updated by Udo Offermann on 18.08.2011 at 00:29:22
The relevant class is com.zfabrik.impl.svncr.ComponentRepositoryImpl,
method: scan(), line 190:
public ComponentRepositoryDB scan(ComponentRepositoryDB current) {
try {
long targetRevision = getRepoSession().fetchRepoRevision();
if (current==null) {
return fullScan(targetRevision);
}
---> if (!eq(current.getUuid(),this.uuid)) {
logger.info("Found changed subversion UUID for repo. Will run full scan: "+this.getName());
return fullScan(targetRevision);
}
if (targetRevision>current.getRevision()) {
return deltaScan(current,targetRevision);
}
return current;
} catch (Exception e) {
if (!relaxing(e)) {
throw new RuntimeException(e);
}
}
return null;
}