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 2453a8a OOZIE-3477 Fix parameter checking in
WorkflowStore.getWorkflowCountWithStatusInLastNSeconds (zuston via asalamon74)
2453a8a is described below
commit 2453a8a277a463959e5f9c5769c9b70c1d378d4f
Author: Andras Salamon <[email protected]>
AuthorDate: Thu Apr 25 14:01:21 2019 +0200
OOZIE-3477 Fix parameter checking in
WorkflowStore.getWorkflowCountWithStatusInLastNSeconds (zuston via asalamon74)
---
core/src/main/java/org/apache/oozie/store/WorkflowStore.java | 2 +-
release-log.txt | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/src/main/java/org/apache/oozie/store/WorkflowStore.java
b/core/src/main/java/org/apache/oozie/store/WorkflowStore.java
index e668c85..a6b38c5 100644
--- a/core/src/main/java/org/apache/oozie/store/WorkflowStore.java
+++ b/core/src/main/java/org/apache/oozie/store/WorkflowStore.java
@@ -178,7 +178,7 @@ public class WorkflowStore extends Store {
*/
public int getWorkflowCountWithStatusInLastNSeconds(final String status,
final int secs) throws StoreException {
ParamChecker.notEmpty(status, "status");
- ParamChecker.notEmpty(status, "secs");
+ ParamChecker.checkGTZero(secs, "secs");
Integer cnt = doOperation("getWorkflowCountWithStatusInLastNSecs", new
Callable<Integer>() {
public Integer call() throws SQLException {
Query q =
entityManager.createNamedQuery("GET_WORKFLOWS_COUNT_WITH_STATUS_IN_LAST_N_SECS");
diff --git a/release-log.txt b/release-log.txt
index 4a8c186..c890d52 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -1,5 +1,6 @@
-- Oozie 5.2.0 release (trunk - unreleased)
+OOZIE-3477 Fix parameter checking in
WorkflowStore.getWorkflowCountWithStatusInLastNSeconds (zuston via asalamon74)
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)