----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/51459/ -----------------------------------------------------------
Review request for oozie. Bugs: OOZIE-2041 https://issues.apache.org/jira/browse/OOZIE-2041 Repository: oozie-git Description ------- By default {{PurgeService}} executes every hour to clean up old oozie workflows, coordinators and bundles from Oozie DB. With the new {{oozie admin -purge wf=1\;coord=2\;bundle=3\;limit=100\;oldCoordAction=true/false>}} command, users (admin users) can execute {{PurgeService}} on demand. # Allow users to specify older than values for (workflow, coordinator and bundle) in {{days}}, limit and turn {{on/off}} for old coordinator actions. At least one parameter needs to be specified. # If user does not specify one of parameter than {{PurgeService}} will use the default value of it from {{oozie-default.xml}} or {{oozie-site.xml}}. # The execution of the Purge Command will require a lock for execution, so at the same time two {{PurgeXCommand}} will not execute. In the case, when lock is not acquired, it will queue the command. # Currently purge command is implemented as blocking command. Users will need to wait until command execution completes. # In the HA mode, purge command can be executed only on the leader Oozie server. # purge command can be enabled/disabled using {{oozie.service.PurgeService.enable.command.line}} property. By default it is enabled. Diffs ----- client/src/main/java/org/apache/oozie/cli/OozieCLI.java f1d0f2b client/src/main/java/org/apache/oozie/client/OozieClient.java eee2d63 client/src/main/java/org/apache/oozie/client/rest/RestConstants.java 3c69319 core/src/main/java/org/apache/oozie/command/PurgeXCommand.java ab06fdf core/src/main/java/org/apache/oozie/service/PurgeService.java 6e4a8e8 core/src/main/java/org/apache/oozie/servlet/BaseAdminServlet.java 64d3f1f core/src/main/java/org/apache/oozie/servlet/V0AdminServlet.java fd573d5 core/src/main/java/org/apache/oozie/servlet/V1AdminServlet.java 965a19a core/src/main/resources/oozie-default.xml 40a5fe5 core/src/test/java/org/apache/oozie/client/TestOozieCLI.java a30baaa core/src/test/java/org/apache/oozie/servlet/TestAdminServlet.java ffa3dc1 core/src/test/java/org/apache/oozie/servlet/TestV1AdminServlet.java 35568e1 docs/src/site/twiki/DG_CommandLineTool.twiki 567e260 Diff: https://reviews.apache.org/r/51459/diff/ Testing ------- Thanks, Abhishek Bafna