Having a small synchronisation interval for user directories may trigger errors on startup

XMLWordPrintable

    • 13
    • Severity 2 - Major
    • 6

      Issue Summary

      Having a small synchronisation interval for user directories may trigger errors on startup, causing directory synchronisation to fail.

      Steps to Reproduce

      This problem may only happen intermittently:

      1. Setup an external user directory
      2. Disable incremental synchronisation
      3. Set the synchronisation interval to 1 minute

      Expected Results

      User directory is synchronised

      Actual Results

      The below exception is thrown in the atlassian-bitbucket.log file:

      2023-08-09 09:55:35,754 ERROR [Caesium-1-3]  c.a.c.d.DbCachingRemoteDirectory Exception occured when performing full synchronizationio.atlassian.util.concurrent.LazyReference$InitializationException: 
      java.lang.IllegalStateException: Unable to create a tracker when osgi is not running    
        at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:156)    
        at io.atlassian.util.concurrent.LazyReference.get(LazyReference.java:116)    
        at io.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:95)    
        at com.atlassian.stash.internal.crowd.DefaultCrowdDarkFeatureManager.getCrowdDarkFeatureManager(DefaultCrowdDarkFeatureManager.java:58)    
        at com.atlassian.stash.internal.crowd.DefaultCrowdDarkFeatureManager.isEnabled(DefaultCrowdDarkFeatureManager.java:52)    
        at com.atlassian.stash.internal.crowd.DefaultCrowdDarkFeatureManager.isDeleteUserMembershipsBatchingEnabled(DefaultCrowdDarkFeatureManager.java:38)    
        at com.atlassian.crowd.directory.DbCachingRemoteChangeOperations.removeUserMembershipsForGroup(DbCachingRemoteChangeOperations.java:741) 
      ...

      Workaround

      Set a longer synchronisation interval e.g. 60 minutes (default)

            Assignee:
            Unassigned
            Reporter:
            Yingran Sun
            Votes:
            2 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated: