Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3620

Allow to override calls to System.exit in server side code

    XMLWordPrintableJSON

Details

    Description

      Using System.exit crashed the JVM and this is very annoying for:

      • ZooKeeper own server side tests
      • Tests of downstream applications

      We should provide a way to provide an alternative implementation of System.exit.

       

      We can also re-enable the 'DM_EXIT' spotbugs rule, that prevents code from accidentally calling System.exit

      Attachments

        Issue Links

          Activity

            People

              eolivelli Enrico Olivelli
              eolivelli Enrico Olivelli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m