Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-2292

Create setup/uninstall/dsreplication log in DJ logs dir, not /tmp

    Details

    • Type: Improvement
    • Status: Dev backlog
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Main DJ cli log create their own log in /tmp/ (on Linux, I believe it's in TMPDIR on Windows).
      This generates a lot of garbage when one often installs/configure DJ instances on the same machine (Developer or QA), i.e.

      sberthol@lab03-fr:~$ ls /tmp/*.log
      /tmp/opendj-checkinstance-1777962355243754881.log  /tmp/opendj-replication-6844946378409106032.log
      /tmp/opendj-checkinstance-4510709982211642603.log  /tmp/opendj-replication-6855000067911920005.log
      /tmp/opendj-checkinstance-5452468864540747597.log  /tmp/opendj-replication-6867950184352492775.log
      /tmp/opendj-checkinstance-6340497461720443814.log  /tmp/opendj-replication-6868971033555735809.log
      /tmp/opendj-replication-1016607665994827637.log    /tmp/opendj-replication-6876341147585850693.log
      /tmp/opendj-replication-106236193236441160.log	   /tmp/opendj-replication-6886294300134188685.log
      /tmp/opendj-replication-1065177673607071583.log    /tmp/opendj-replication-6897011652972854863.log
      /tmp/opendj-replication-1079142188803013985.log    /tmp/opendj-replication-69030539827719415.log
      /tmp/opendj-replication-110042207041841862.log	   /tmp/opendj-replication-6904899224972646766.log
      /tmp/opendj-replication-1117145859006104004.log    /tmp/opendj-replication-6984486794739065739.log
      /tmp/opendj-replication-114370710531047584.log	   /tmp/opendj-replication-6990303346582644182.log
      /tmp/opendj-replication-1156278137185090246.log    /tmp/opendj-replication-6992683549950389180.log
      /tmp/opendj-replication-1163778729929541969.log    /tmp/opendj-replication-7007505760030888302.log
      /tmp/opendj-replication-1177877218540054355.log    /tmp/opendj-replication-7026024431040905492.log
      /tmp/opendj-replication-1179208918482116218.log    /tmp/opendj-replication-703823784642839251.log
      /tmp/opendj-replication-1185554409198785444.log    /tmp/opendj-replication-7054151203574734556.log
      /tmp/opendj-replication-1231442572288218343.log    /tmp/opendj-replication-7075455775345936962.log
      /tmp/opendj-replication-1233537113771968820.log    /tmp/opendj-replication-7076889267302895701.log
      /tmp/opendj-replication-1266269335952295889.log    /tmp/opendj-replication-7090548069224701660.log
      /tmp/opendj-replication-127528727013767681.log	   /tmp/opendj-replication-7093988265008909830.log
      /tmp/opendj-replication-1291068776446290282.log    /tmp/opendj-replication-71238983209296616.log
      /tmp/opendj-replication-1294674041302247570.log    /tmp/opendj-replication-7138817022043627004.log
      /tmp/opendj-replication-1311016712762037694.log    /tmp/opendj-replication-7161383156060032215.log
      /tmp/opendj-replication-1323310495634397084.log    /tmp/opendj-replication-7207679317066677419.log
      /tmp/opendj-replication-1332737307519290188.log    /tmp/opendj-replication-7208392225190409640.log
      /tmp/opendj-replication-1342910653734748982.log    /tmp/opendj-replication-7209901408425506019.log
      /tmp/opendj-replication-1352452456634197060.log    /tmp/opendj-replication-7223694027939509635.log
      /tmp/opendj-replication-1361475152247114656.log    /tmp/opendj-replication-7225575061303296318.log
      /tmp/opendj-replication-1379605687093453927.log    /tmp/opendj-replication-7238215205220262410.log
      /tmp/opendj-replication-1380716056778959211.log    /tmp/opendj-replication-7285077321004340774.log
      /tmp/opendj-replication-1395681840474237228.log    /tmp/opendj-replication-7288374862139851782.log
      /tmp/opendj-replication-1400185096004396139.log    /tmp/opendj-replication-7289084933545438598.log
      /tmp/opendj-replication-1407373893437545218.log    /tmp/opendj-replication-7299926066404913806.log
      /tmp/opendj-replication-1411968551313976442.log    /tmp/opendj-replication-7343574948212858032.log
      /tmp/opendj-replication-142596971148374942.log	   /tmp/opendj-replication-7344508685245365950.log
      /tmp/opendj-replication-1460067338691874720.log    /tmp/opendj-replication-7366778332832605592.log
      /tmp/opendj-replication-1460290155454041476.log    /tmp/opendj-replication-7378182408997047797.log
      /tmp/opendj-replication-1463545453344759765.log    /tmp/opendj-replication-7389328108450763769.log
      /tmp/opendj-replication-1466493581993340635.log    /tmp/opendj-replication-7401480208365858789.log
      /tmp/opendj-replication-14813205978394330.log	   /tmp/opendj-replication-7419724674609754282.log
      /tmp/opendj-replication-149326620299696641.log	   /tmp/opendj-replication-742681846180010862.log
      /tmp/opendj-replication-1495704433901929689.log    /tmp/opendj-replication-7428629636346953491.log
      /tmp/opendj-replication-1534428025141507524.log    /tmp/opendj-replication-7432695243468341152.log
      /tmp/opendj-replication-1535930904079563055.log    /tmp/opendj-replication-7436539226267601500.log
      /tmp/opendj-replication-1544605071125323389.log    /tmp/opendj-replication-7440828541047852268.log
      /tmp/opendj-replication-1546754100342491819.log    /tmp/opendj-replication-7458628317924149553.log
      [...]
      

      It would be cleaner to generate the logs in DJ logs dir (opendj/logs/my.log).
      (indeed to clean up the instance you would just need to remove the main instance dir and that's it)
      This would also help to backup cli logs report dir when running functional tests (would help debugging in case of setup issue)

      Need to check if it's feasible for the setup logs (it means that setup would have to create the logs dir before creating its log).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                matthew Matthew Swift
                Reporter:
                sberthol Sebastien Bertholet [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: