18 Jun, 2013

1 commit


08 Apr, 2013

1 commit

  • Resolve race condition in Windows Services when stopping the server.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@8705 41b1ffd8-f28e-4786-ab96-9950f0a78031
    ludo
     

20 Mar, 2013

1 commit

  • Added support for Ivy from the ant file build.xml.
    "Apache Ivy™ is a popular dependency manager focusing on flexibility and simplicity."
    
    As part of the build, Ivy gets downloaded and installed as ext/ivy.jar, if it was not already installed.
    Ivy will then download all the dependencies and transitive dependencies from forgerock artifactory, maven central and oracle public maven repo as specified in ivy.xml and ivysettings.xml and put them under the lib/ directory. This step is similar to what maven does.
    Finally, I removed je.jar and mail.jar as they also get downloaded by Ivy now.
    
    Ivy uses a download cache under ~/.ivy/cache to prevent always downloading the jars from internet.
    I made sure that after a successful build, rebuilding without the network works fine.
    I also made sure the built zip contains only thebinary jars, and not sources jars or javadoc jars.
    
    Here is now the content of the lib/ directory in the OpenDJ-2.5.0.zip file:
    $ ls build/package/OpenDJ-2.5.0/lib/lib/
    activation-1.1.jar
    grizzly-framework-2.3-rc6.jar
    grizzly-http-2.3-rc6.jar
    grizzly-http-server-2.3-rc6.jar
    grizzly-http-servlet-2.3-rc6.jar
    grizzly-rcm-2.3-rc6.jar
    javax.servlet-api-3.1-b05.jar
    je-5.0.48.jar
    launcher_administrator.exe
    mail-1.4.1.jar
    opendj_service.exe
    winlauncher.exe
    
    
    Please also have a look at the attached out.patch file since crucible does not allow me to upload it as a patch. It contains changes to SVN properties and removed files.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@8612 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     

16 May, 2012

1 commit


08 Dec, 2011

1 commit


01 Dec, 2011

1 commit

  • Committed JE 5.0.34
    
    * all unit tests pass
    * no significant performance regressions or improvements
    * slight reduction in on disk footprint (~5-10% in the test that I performed)
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@7527 41b1ffd8-f28e-4786-ab96-9950f0a78031
    matthew
     

19 May, 2011

1 commit


21 Apr, 2011

1 commit


25 Jan, 2011

1 commit


26 Nov, 2010

1 commit


31 May, 2010

1 commit


27 May, 2010

1 commit

  • The fix consists on waiting in the service code to the start-ds.bat call to finish (the re-entrant one). This avoids having a race condition problem locking the file (as can happen today).
    There is a new environment variable that can be configured (OPENDS_WINDOWS_SERVICE_STARTDS_WAIT). The default value is 300000 milliseconds (5 minutes). This is the maximum time in milliseconds the service code will wait for the server to start before checking directly its status.
    Also update setup.bat and uninstall.bat to return an error code when called in CLI mode.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@6408 41b1ffd8-f28e-4786-ab96-9950f0a78031
    ludovicp
     

29 Apr, 2010

1 commit

  • - Update BDB JE to version 4.0.95
    - Remove BDB logging configuration and definitely fix issue 4367 
    - Resolve issue 4523 - ACI and sub-entry caches not updated on replicas
    - Update the build factory to warn about generated messages on precommit
    - Resolve some issues in the Control Panel
    - Fix an issue with java.properties being ignored by some CLI
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@6399 41b1ffd8-f28e-4786-ab96-9950f0a78031
    ludovicp
     

18 Jan, 2010

1 commit

  • Improve the code of windows service to poll the status of the server (whether is running or not).
    Improve some of the messages associated with the events that are sent to the windows service log.
    Improve the code that is in charge of starting the service (and the server) to help identify cases where the server startup is correctly launched but the startup itself fails (because for instance a port of the server is already in use).
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@6356 41b1ffd8-f28e-4786-ab96-9950f0a78031
    jvergara
     

24 Nov, 2009

1 commit


23 Sep, 2009

1 commit


16 Sep, 2009

1 commit

  • Important changes include:
    
    SR #17462 - Fix a bug that would allow the Total Memory Usage stat to become negative. This could prevent eviction from occurring, which could cause OutOfMemoryError for some applications. It is most likely to occur in an application with a large cache and frequent checkpoints, but it could occur in other scenarios as well.
    
    SR #17551 - Fix a bug that caused a NullPointerException during eviction when an exception occurs during logging, for example, an IOException when the disk is full. The NullPointerException masked the original exception (e.g., IOException). An example stack trace is below.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@5843 41b1ffd8-f28e-4786-ab96-9950f0a78031
    matthew_swift
     

05 Jun, 2009

1 commit


06 May, 2009

1 commit


05 Dec, 2008

1 commit


07 Nov, 2008

1 commit

  • …ing it configurable).
    
    The fix increases the number of tries used to figure out if the server is started or not.  This is required in particular after reboot since the system can be really loaded.
    
    The user can modify the default tries value (100 tries with an interval of 5 seconds between tries) by setting the value of the OPENDS_WINDOWS_SERVICE_START_NTRIES  environment variable (it must be a SYSTEM environment variable in order to be taken into account).
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@4592 41b1ffd8-f28e-4786-ab96-9950f0a78031
    jvergara
     

27 Oct, 2008

1 commit

  • Also added the license for both Jars to the legal-notices directory. Files were missing previously.
    mail.jar (javamail) is now revision 1.4.1
    activation.jar (jaf) is now revision 1.1.1
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@4533 41b1ffd8-f28e-4786-ab96-9950f0a78031
    ludovicp
     

23 Oct, 2008

1 commit

  • - An updated version of the underlying database. BDB JE 3.3 is now used.
        - Attribute API refactoring providing a better abstraction and offering improved performances.
        - A new GUI called the Control-Panel to replace the Status-Panel: the specifications for this
          GUI are available on OpenDS Wiki and contains a link to a mockup. 
          See <https://www.opends.org/wiki/page/ControlPanelUISpecification>.
        - Some changes in the replication protocol to implement "Assured Replication Mode". The 
          specifications are on OpenDS Wiki at <https://www.opends.org/wiki/page/AssuredMode> and section 7
          described some of the replication changes required to support this. Assured Replication is not finished,
          but the main replication protocol changes to support it are done. As explained by Gilles on an email on
          the Dev mailing list (http://markmail.org/message/46rgo3meq3vriy4a), with these changes the newer versions
          of OpenDS may not be able to replicate with OpenDS 1.0 instances.
        - Support for Service Tags on the platforms where the functionality is available and enabled. Specifications
          are published at <https://www.opends.org/wiki/page/OpenDSServiceTagEnabled>. For more information on
          Service Tags see <http://wikis.sun.com/display/ServiceTag/Sun+Service+Tag+FAQ>.
        - The Admin Connector service. In order to provide agentry of the OpenDS server at any time, a new service
          has been added, dedicated to the administration, configuration and monitoring of the server.
          An overview of the Admin Connector service and it's use is available on the
          OpenDS wiki <https://www.opends.org/wiki/page/ManagingAdministrationTrafficToTheServer>
        - Updates to the various command line tools to support the Admin Connector service.
        - Some internal re-architecting of the server to put the foundation of future developments such as virtual
          directory services. The new NetworkGroups and WorkFlow internal services which have been specified in
          <https://www.opends.org/wiki/page/BasicOperationRoutingThroughNetworkGroup> are now implemented.
        - Many bug fixes...
    
    This set of changes may have an impact on current clients and deployments, however it should be possible to
    upgrade existing 1.0 instances. 
    
    Some of the changes impacting the clients include :
        - Scripts using the command line tools including dsconfig will need to be updated (usually to remove
          some no longer required options).
    
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@4531 41b1ffd8-f28e-4786-ab96-9950f0a78031
    jcduff
     

05 Jul, 2008

1 commit


24 Jan, 2008

1 commit


02 Jan, 2008

1 commit


28 Nov, 2007

2 commits


12 Sep, 2007

1 commit


02 Sep, 2007

2 commits

  • git-svn-id: https://svn.forgerock.org/opendj/trunk@2903 41b1ffd8-f28e-4786-ab96-9950f0a78031
    davidely
     
  • * Test methods are no longer interleaved between classes.  All test
    methods in a class are run together, with @BeforeClass and @AfterClass
    methods called immediately before and after the methods are run.  As
    part of this fix, you are now required to include sequential=true in
    every class level @Test annotation.  If you don't do this, the build
    will complain.
    
    * Added a TestCaseUtils.restartServer() method that will do an in core 
    restart of the directory server during the tests.  This can be used in a 
    @BeforeClass method to ensure that the tests start with a clean 
    directory server, and also in an @AfterClass method to cleanup after a 
    test that makes a lot of configuration changes.  So if you introduce a 
    new test that runs fine in isolation but fails when run with other 
    tests, you could try calling TestCaseUtils.restartServer() in its 
    @BeforeClass method.  The TestCaseUtils.restartServer() method will 
    reinitialize the server and reload the original test configuration, but 
    it's not quite the same as creating a completely new process.  
    Specifically, it cannot undo any changes that were made to static member 
    variables of a class.  I've fixed a handful of places in the server 
    where this was a problem, but there might be more lurking.  If you write 
    a test that changes static member variables of a class, please make sure 
    that it cleans up after itself in an @AfterMethod or @AfterClass test.
    
    * The tests now use significantly much less memory.  I saw a peak of
    only 80MB.  There were two main problems.  1) TestNG holds on to all
    parameters and results for the whole test, and 2) since the test
    classes themselves live for the duration of the tests, their member
    variables were holding onto a lot of garbage.  The in-core restart
    made this problem much worse because we ended up with lots of copies
    of the Schema, ConfigEntryS, etc.  I've introduced some hacks to fix
    this.  Basically the code uses devious methos to go in and null out
    the parameters and member variables after the test has run.  If you're
    curious about the details of how we've addressed this take a look at
    the comments in DirectoryServerTestCase.  From now on, all test
    classes must inherit directly or indirectly from
    DirectoryServerTestCase.  The build will fail if they don't.
    
    * Upgrade to TestNG b5.7.  There is a fix in this release that helps
    our tests to run in order, and I've had to make a couple of more
    fixes, which they will eventually put back into the trunk.
    
    * In classes with a class-level @Test annotation, TestNG treats any
    public method (except @Before/After* methods) as a test method.  The
    build now points this out and asks you to either add a specific @Test
    annotation to the method or change the method to be non-public.  I've
    fixed up several places where a test wasn't annotated and others where
    a non-test method was being treated as a test method.
    
    * The tests now report progress as they run.  Run 'build testhelp' to
    see details on how to control the output.
    
    
    I've also added some new test properties, mainly to make debugging the 
    tests easier
    
    * test.remote.debug.port:  This test property allows you to remotely 
    attach a debugger to the unit tests.  If you provide a valid port value, 
    the unit tests will not start to run until the debugger is attached.
    
    * testng.verbosity0to5:  This test property controls the debugging 
    output of TestNG.  This output is useful to check the order in which 
    test methods are invoked or other details on what TestNG is doing.  
    Valid values are integer values from 0 (no output) to 5 (maximum 
    output).  Since this implicitly sets 
    -Dorg.opends.test.suppressOutput=false, other stderr/stdout output 
    generated by the unit tests will also be displayed.
    
    * org.opends.test.copyClassesToTestPackage=true:  This test property 
    copies the classes into the test server root.  This enables you to run 
    the server tools on the test server.  It can slow down the test startup 
    so the files are no longer copied by default.
    
    Thanks to Neil for trying out these changes and to him and Bo for
    helping me track down some of the memory leaks.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@2902 41b1ffd8-f28e-4786-ab96-9950f0a78031
    davidely
     

18 Jul, 2007

1 commit

  • With the new user access control of Vista, even if we are administrators we are not allowed to do certain operations (such as writing in the service registry) in some circumstances.  For instance if we launch net start <service_name> from a normal command prompt this will fail systematically.  In order to be able to execute these "privileged" operations we have different alternatives:
    
    Execute the binary that will do the operations using the "Run as Administrator" option in Vista (or launching them from a command prompt that has been started using that same option).
    Add a manifest to the binary informing that the binary requires administrator privileges.
    
    The first alternative is one of the workarounds for the bug, however it does not apply to the case of the Java Web Start Installer.
    
    The second alternative is in what consists the bug fix.  A new binary has been created.  This binary has a manifest informing that it requires administrator privileges.  This binary will be used in Vista as a wrapper to call operations that require administrator privileges (modifying the registry in windows-services.bat command line and calling "net start" and "net stop").  
    
    If the user is running the setup, the status-panel using the "Run as Administrator" option or is using the command lines from a command prompt launched with that option the behavior in Vista does not change with the behavior in previous versions of Windows.
    
    If the UAC is enabled and the user is not using the "Run as Administrator" options, (s)he will be prompted for confirmation each time the registry is modified and the server is started or stopped as a service.  The wrapper is called on any of the individual operations.  An alternative would be to call the wrapper when we launch the setup or the status-panel but this generates some issues:
    1. This does not work (directly) with the Java Web Start installer.
    2. This would force users that are not administrators to provide administrator credentials even to install/run an OpenDS that does not require to do privileged operations (an OpenDS that does not run as a service).
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@2428 41b1ffd8-f28e-4786-ab96-9950f0a78031
    jvergara
     

12 Jun, 2007

1 commit

  • Changes since 3.2.21
    Log File On-Disk Format Changes:
    None.
    New Features:
    None.
    General Environment Changes
    
       1. Fixed a bug that causes a memory leak for applications when many Environment objects are opened and closed and the CurrentTransaction or TransactionRunner class is used. The problem was reported in this JE Forum thread [#15444]
    
       2. Fixed a bug that prevents correct recovery of data records when duplicates are configured (DatabaseConfig.setSortedDuplicates(true)) for a deferred-write database (DatabaseConfig.setDeferredWrite(true)). When a crash occurs and duplicate data records are recovered that were flushed after the last checkpoint, the wrong key is used for those records. This bug does not occur when the environment is closed normally or a checkpoint is performed after writing data records. [#15474]
    
       3. Fixed a bug that prevents Database.preload from working when duplicates are configured (DatabaseConfig.setSortedDuplicates(true)) for the database. When the preload method was called for a database for which duplicate records exist, an assertion would fire or a NullPointerException would be thrown, depending on whether assertions are enabled. [#15475]
    
       4. Enhanced SerialBinding and the Direct Persistence Layer to use the current thread's context class loader when loading application classes. This allows the JE jar file to be deployed in application servers and other containers as a shared library rather than as an application jar. [#15447]
    
       5. Fixed a bug that caused JE to incorrectly behave as if the cache was very full. The symptoms of this bug are:
              * Because the problem is a cumulative accounting error, symptoms appear after running for a long period of time.
              * JE slows down or methods fail to return. Thread dumps show that the com.sleepycat.je.evictor.Evictor class is active and looping.
              * Dumping EnvironmentStats shows that the adminBytes size (EnvironmentStats.getAdminBytes()) is unreasonably large and may be larger than the maximum cache size or the heap size.
              * The problem occurs more frequently when blocks of sequential records are deleted.
          [#15505]
    
       6. Fixed a bug where the cache usage accounting could become inaccurate if the cache size was changed while the application is active (using Environment.setMutableConfig()) and there are outstanding record locks. [#15505]
    
       7. Fixed a bug that caused incorrect query results, and possibly errors during recovery, when a custom duplicate comparison method is configured and that method does not compare all bytes of its operands. A custom comparator should always compare all bytes of its operands and should return non-zero if they are unequal. When updating existing records, JE will detect this kind of incorrect comparator in order to prevent database inconsistency. The problem was reported in this JE Forum thread. [#15527]
    
    Direct Persistence Layer (DPL)
    None.
    API Changes:
    
       1. Added the EnvironmentStats.getAdminBytes() and getLockBytes() methods, which return the amount of cache used for transactions, administrative structures such as log cleaning metadata, and locks. These values are a subset of the value returned by Environment.getCacheDataBytes() and can provide more insight into how the cache is allocated between actual data and other objects. [#15505]
    
       2. Added the EnvironmentStats.getTotalLogSize method. This new method returns the approximate total size of the JE log files in bytes. It could be used, for example, to detect that the log has exceeded an application disk space limit. [#15480]
    
    Utility Changes:
    None.
    Configuration, Documentation, Test and Build Changes:
    None.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@2086 41b1ffd8-f28e-4786-ab96-9950f0a78031
    coulbeck
     

08 May, 2007

1 commit


07 May, 2007

2 commits

  • -    debug("Deleting the service '%s'.");
    +    debug("Deleting the service '%s'.", serviceName);
    
    Which was causing the process to core on uninstall.  So I went through the other debug messages, and made a few more changes that most likely wouldn't have caused problems.  For instance,
    
    -      debug("doStartApplication: spawn failed.  Sent command:");
    -      debug(command);
    +      debug("doStartApplication: spawn failed.  Sent command: '%s'", command);
    
    Technically, command could include a format directive (e.g. %s) in which case we'd have the same problem as debug("Deleting the service '%s'."), but this is unlikely.  There are also a few other debug messages that I added to track down the real problem, and I've left them in.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@1833 41b1ffd8-f28e-4786-ab96-9950f0a78031
    davidely
     
  • …h stopping the server on Windows, and also adds a lot of debug logging to the service code, so we can track problems down in the future
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@1827 41b1ffd8-f28e-4786-ab96-9950f0a78031
    davidely
     

04 May, 2007

1 commit

  • 1. A char array was set to NULL wrongly which caused a core in the windows services code.  This problem appeared almost systematically when the install path was long.
    2. The windows services code got into an infinite loop when the server could not be started.
    3. The windows services code was missing to unlock a file after testing if it could lock it.
    4. Create specific loggers for Setup, Uninstall and StatusPanel applications.  This avoids having duplicated and not very user friendly log lines on the output of these applications.
    5. When we cannot launch the graphical applications store the stack trace we get in the log file associated with the application and inform the user about the existence of this file in the same message where we tell that we are falling back to the CLI mode.
    6. Fix a refresh problem in the status panel.  Now when the number of entries of the database increase the contents of the panel are automatically updated.
    7. Modify the name of the Age of Oldest Missing Changes as mentioned by Brian.
    8. Redirect some logging/debugging lines of the windows services to a file called windows-service in the logs directory.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@1821 41b1ffd8-f28e-4786-ab96-9950f0a78031
    jvergara
     

26 Apr, 2007

1 commit


21 Mar, 2007

1 commit


16 Mar, 2007

1 commit