This is an automated email from the ASF dual-hosted git repository.
asalamon74 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/oozie.git
The following commit(s) were added to refs/heads/master by this push:
new 4bbf288 OOZIE-3470 PurgeXCommand coordActionDel variable assignment
should be standardized (zuston via asalamon74)
4bbf288 is described below
commit 4bbf288a4cc3cbef205a7c8d7e4dd09f5df8dcc6
Author: Andras Salamon <[email protected]>
AuthorDate: Tue Apr 16 09:40:21 2019 +0200
OOZIE-3470 PurgeXCommand coordActionDel variable assignment should be
standardized (zuston via asalamon74)
---
core/src/main/java/org/apache/oozie/command/PurgeXCommand.java | 3 ++-
release-log.txt | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/core/src/main/java/org/apache/oozie/command/PurgeXCommand.java
b/core/src/main/java/org/apache/oozie/command/PurgeXCommand.java
index b3bf30c..0e9bebb 100644
--- a/core/src/main/java/org/apache/oozie/command/PurgeXCommand.java
+++ b/core/src/main/java/org/apache/oozie/command/PurgeXCommand.java
@@ -148,6 +148,7 @@ public class PurgeXCommand extends XCommand<Void> {
bundleList = new ArrayList<String>();
wfDel = 0;
coordDel = 0;
+ coordActionDel = 0;
bundleDel = 0;
}
@@ -425,7 +426,7 @@ public class PurgeXCommand extends XCommand<Void> {
* @throws JPAExecutorException If a JPA executor has a problem
*/
private void purgeCoordActions(List<String> coordActions) throws
JPAExecutorException {
- coordActionDel = coordActions.size();
+ coordActionDel += coordActions.size();
for (int startIndex = 0; startIndex < coordActions.size(); ) {
int endIndex = (startIndex + limit < coordActions.size()) ?
(startIndex + limit) : coordActions.size();
List<String> coordActionsForDelete =
coordActions.subList(startIndex, endIndex);
diff --git a/release-log.txt b/release-log.txt
index 21435f8..4a8c186 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -1,5 +1,6 @@
-- Oozie 5.2.0 release (trunk - unreleased)
+OOZIE-3470 PurgeXCommand coordActionDel variable assignment should be
standardized (zuston via asalamon74)
OOZIE-3463 Migrate from com.google.common.base.Charsets to
java.nio.charset.StandardCharsets (nobigo via kmarton)
OOZIE-3467 Migrate from com.google.common.base.Stopwatch (asalamon74 via
kmarton)
OOZIE-3466 Migrate from com.google.common.io.Closeables to
org.apache.commons.io.IOUtils (asalamon74 via kmarton)