mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

dugan
27.41.2008 27f89e47fd01735b5faf4078f94925e257e63f89
Back out fix made last week that is causing unit test looping.
1 files modified
8 ■■■■ changed files
opends/src/server/org/opends/server/backends/jeb/importLDIF/DNContext.java 8 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/importLDIF/DNContext.java
@@ -453,12 +453,18 @@
          return parentID;
        }
      }
      int i=0;
      //If the parent is in the pending map, another thread is working on the
      //parent entry; wait until that thread is done with the parent.
      while(isPending(parentDN)) {
        try {
          Thread.sleep(10);
          Thread.sleep(50);
          if(i == 5) {
            return null;
          }
          i++;
        } catch (Exception e) {
          return null;
        }
      }
      parentID = dn2id.get(null, parentDN, LockMode.DEFAULT);