Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-15031

Duplicate key violation syncing groups when performing ldap-sync with --all option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.2
    • ambari-server
    • None

    Description

      While performing an ldap-sync using the --all option, when groups imported from a previous ldap-sync already exist, a duplicate key violation is encountered on the previously existing groups. The duplicate key violation occurs on the UNQ_groups_0 constraint.

      Syncing all...........................................................ERROR: Exiting with exit code 1. 
      REASON: Caught exception running LDAP sync. Exception EclipseLink-4002 (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException 
      Internal Exception: java.sql.BatchUpdateException: Duplicate entry 'mygroup1' for key 'UNQ_groups_0' 
      Error Code: 1062
      

      This does not seem of happen when performing an ldap-sync with the --groups option.

      Attachments

        1. AMBARI-15031.patch
          3 kB
          Oliver Szabo

        Issue Links

          Activity

            People

              oleewere Oliver Szabo
              oleewere Oliver Szabo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: