Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 72AC82009C5 for ; Mon, 16 May 2016 15:23:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7175E160A16; Mon, 16 May 2016 13:23:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B99E71609B0 for ; Mon, 16 May 2016 15:23:13 +0200 (CEST) Received: (qmail 38165 invoked by uid 500); 16 May 2016 13:23:13 -0000 Mailing-List: contact dev-help@syncope.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@syncope.apache.org Delivered-To: mailing list dev@syncope.apache.org Received: (qmail 38150 invoked by uid 99); 16 May 2016 13:23:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2016 13:23:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D47142C1F58 for ; Mon, 16 May 2016 13:23:12 +0000 (UTC) Date: Mon, 16 May 2016 13:23:12 +0000 (UTC) From: =?utf-8?Q?Francesco_Chicchiricc=C3=B2_=28JIRA=29?= To: dev@syncope.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SYNCOPE-855) Synchronization token management enhancement in case of errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 16 May 2016 13:23:14 -0000 [ https://issues.apache.org/jira/browse/SYNCOPE-855?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Francesco Chicchiricc=C3=B2 reassigned SYNCOPE-855: ---------------------------------------------- Assignee: Francesco Chicchiricc=C3=B2 > Synchronization token management enhancement in case of errors > -------------------------------------------------------------- > > Key: SYNCOPE-855 > URL: https://issues.apache.org/jira/browse/SYNCOPE-855 > Project: Syncope > Issue Type: Improvement > Components: core > Affects Versions: 1.2.7, 2.0.0-M2 > Reporter: Francesco Chicchiricc=C3=B2 > Assignee: Francesco Chicchiricc=C3=B2 > Fix For: 1.2.8, 2.0.0 > > > The overall logic of the synchronization (1.2) / incremental pull (2.0) p= rocess can be summarized as: > # invoke underlying connector's {{getLatestSyncToken}} > # invoke underlying connector's {{sync}} > # store the value for {{getLatestSyncToken}} for subsequent invocation > As a consequence, when one synchronizing item ({{SyncDelta}}) generates a= n error, the whole process might be interrupted without saving the updated = sync token, and next invocation will start again from the beginning, withou= t considering the successful items passed before the error occurred. > The process should be changed as follows, instead: > # invoke underlying connector's {{getLatestSyncToken}} > # invoke underlying connector's {{sync}}: for each {{SyncDelta}}, tempor= ary store the related {{syncToken}} field; > # store the last successful item's {{syncToken}} value - or {{getLatestS= yncToken}} if no error occurred - for subsequent invocation -- This message was sent by Atlassian JIRA (v6.3.4#6332)