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

dugan
22.10.2008 98988fc5b80398ddeba4aefb2e085e6f8467d3bb
Fix incorrect rejection of entries during import. Issue 3135.
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,18 +453,12 @@
          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(50);
          if(i == 3) {
            return null;
          }
          i++;
          Thread.sleep(10);
        } catch (Exception e) {
          return null;
        }
      }
      parentID = dn2id.get(null, parentDN, LockMode.DEFAULT);