You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Kevan Jahanshahi (Jira)" <ji...@apache.org> on 2021/02/16 09:34:00 UTC

[jira] [Created] (UNOMI-432) No error handling in SegmentServiceImpl.updateExistingProfilesForSegment

Kevan Jahanshahi created UNOMI-432:
--------------------------------------

             Summary: No error handling in SegmentServiceImpl.updateExistingProfilesForSegment
                 Key: UNOMI-432
                 URL: https://issues.apache.org/jira/browse/UNOMI-432
             Project: Apache Unomi
          Issue Type: Bug
          Components: core
    Affects Versions: 2.0.0, 1.5.5
            Reporter: Kevan Jahanshahi


When we update the existing profile for a segment,

we call the persistenceService.update on the profile, but this API can return false, in that case the profile update failed.

in case of failure we are still doing:
 * send profile udpate event, that seem's wrong, because the profile is not update in case of failure
 * we increment the update profile count for the failed update.

I think we need to add some error handling at least to avoid doing the final step for failed update profiles.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)