Ticket #1221 (new defect)

Opened 4 years ago

Loses mapping on slow sync

Reported by: madduck Owned by: tuju
Priority: normal Milestone:
Component: Plugin: evolution Version: 0.39
Severity: normal Keywords:
Cc:

Description

When the evolution plugin has to do a slow sync over an existing data set, it apparently produces data that cannot be mapped to previously fetched records:

% osynctool --addgroup evo2-test
% osynctool --addmember evo2-test evo2-sync
% osynctool --addmember evo2-test file-sync
% osynctool --configure evo2-test 1
% osynctool --configure evo2-test 2
% osynctool --discover evo2-test
Discovered Objtypes:
  contact
    Format: vcard30
        conversion config: VCARD_EXTENSION=Evolution
    Format: vcard21
        conversion config: VCARD_EXTENSION=Evolution
  event
    Format: vevent20
  todo
    Format: vtodo20
  note
    Format: vjournal
Discovered Objtypes:
  contact
    Format: file
% osynctool --sync evo2-test
Synchronizing group "evo2-test"
contact sink of member 2 of type file-sync just connected
Main sink of member 2 of type file-sync just connected
note sink of member 1 of type evo2-sync just connected
contact sink of member 1 of type evo2-sync just connected
event sink of member 1 of type evo2-sync just connected
todo sink of member 1 of type evo2-sync just connected
Main sink of member 1 of type evo2-sync just connected
All clients connected or error
note sink of member 1 of type evo2-sync just sent all changes
Received an entry pas-id-4BB3519700000000 (xmlformat-contact) from member 1 (evo2-sync). Changetype ADDED
contact sink of member 1 of type evo2-sync just sent all changes
event sink of member 1 of type evo2-sync just sent all changes
todo sink of member 1 of type evo2-sync just sent all changes
Main sink of member 1 of type evo2-sync just sent all changes
contact sink of member 2 of type file-sync just sent all changes
Main sink of member 2 of type file-sync just sent all changes
All clients sent changes or error
All changes got mapped
All conflicts have been reported
All changes got multiplied
All changes got prepared for write

Synchronization Forecast Summary:

ObjType: note
  Member 1: Adding(0) Modifying(0) Deleting(0)

ObjType: contact
  Member 1: Adding(0) Modifying(0) Deleting(0)
  Member 2: Adding(1) Modifying(0) Deleting(0)

ObjType: event
  Member 1: Adding(0) Modifying(0) Deleting(0)

ObjType: todo
  Member 1: Adding(0) Modifying(0) Deleting(0)

Do you want to continue the synchronization? (N/y): y

OK! Completing synchronization!
note sink of member 1 of type evo2-sync committed all changes.
contact sink of member 1 of type evo2-sync committed all changes.
event sink of member 1 of type evo2-sync committed all changes.
todo sink of member 1 of type evo2-sync committed all changes.
Main sink of member 1 of type evo2-sync committed all changes.
Sent an entry pas-id-4BB3519700000000 (file) to member 2 (file-sync). Changetype ADDED
contact sink of member 2 of type file-sync committed all changes.
Main sink of member 2 of type file-sync committed all changes.
All clients have written
contact sink of member 2 of type file-sync reported sync done.
note sink of member 1 of type evo2-sync reported sync done.
Main sink of member 2 of type file-sync reported sync done.
contact sink of member 1 of type evo2-sync reported sync done.
event sink of member 1 of type evo2-sync reported sync done.
todo sink of member 1 of type evo2-sync reported sync done.
Main sink of member 1 of type evo2-sync reported sync done.
All clients reported sync done
The sync was successful
note sink of member 1 of type evo2-sync just disconnected
contact sink of member 1 of type evo2-sync just disconnected
event sink of member 1 of type evo2-sync just disconnected
todo sink of member 1 of type evo2-sync just disconnected
Main sink of member 1 of type evo2-sync just disconnected
contact sink of member 2 of type file-sync just disconnected
Main sink of member 2 of type file-sync just disconnected
All clients have disconnected

Now let's do a slow sync:

% osynctool --sync evo2-test --slow-sync contact
Synchronizing group "evo2-test" [slow sync]
note sink of member 1 of type evo2-sync just connected
contact sink of member 2 of type file-sync just connected
Main sink of member 2 of type file-sync just connected
contact sink of member 1 of type evo2-sync just connected
event sink of member 1 of type evo2-sync just connected
todo sink of member 1 of type evo2-sync just connected
Main sink of member 1 of type evo2-sync just connected
All clients connected or error
note sink of member 1 of type evo2-sync just sent all changes
Received an entry pas-id-4BB3519700000000 (xmlformat-contact) from member 1 (evo2-sync). Changetype ADDED
contact sink of member 1 of type evo2-sync just sent all changes
event sink of member 1 of type evo2-sync just sent all changes
todo sink of member 1 of type evo2-sync just sent all changes
Main sink of member 1 of type evo2-sync just sent all changes
Received an entry pas-id-4BB3519700000000 (xmlformat-contact) from member 2 (file-sync). Changetype ADDED
contact sink of member 2 of type file-sync just sent all changes
Main sink of member 2 of type file-sync just sent all changes
All clients sent changes or error
Conflict for Mapping 0x1382310: 
Entry 1:
Member: 1 (evo2-sync)
UID: pas-id-4BB3519700000000
<?xml version="1.0"?>
<contact>
  <EMail Location="Work" UI-Slot="1">
    <Content>12345678</Content>
  </EMail>
  <FileAs>
    <Content>Krafft, Martin</Content>
  </FileAs>
  <FormattedName>
    <Content>Martin Krafft</Content>
  </FormattedName>
  <Name>
    <LastName>Krafft</LastName>
    <FirstName>Martin</FirstName>
  </Name>
  <Revision>
    <Content>20100331T134351Z</Content>
  </Revision>
  <Telephone Location="Work" UI-Slot="1">
    <Content>12345678</Content>
  </Telephone>
  <Uid>
    <Content>pas-id-4BB3519700000000</Content>
  </Uid>
  <WantsHtml>
    <Content>FALSE</Content>
  </WantsHtml>
</contact>


Entry 2:
Member: 2 (file-sync)
UID: pas-id-4BB3519700000000
<?xml version="1.0"?>
<contact>
  <EMail Location="Work">
    <Content>12345678</Content>
  </EMail>
  <FormattedName>
    <Content>Martin Krafft</Content>
  </FormattedName>
  <Name>
    <LastName>Krafft</LastName>
    <FirstName>Martin</FirstName>
  </Name>
  <Revision>
    <Content>20100331T134351Z</Content>
  </Revision>
  <Telephone Location="Work">
    <Content>12345678</Content>
  </Telephone>
  <Uid>
    <Content>pas-id-4BB3519700000000</Content>
  </Uid>
</contact>


Which entry do you want to use? [1-9] To select a side, [A]bort, [D]uplicate:
^C

A slow sync thus requires me to resolve conflicts that don't really exist.

Note: See TracTickets for help on using tickets.