You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by an...@apache.org on 2012/01/06 22:58:29 UTC
svn commit: r1228452 -
/incubator/oozie/branches/3.1/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java
Author: angeloh
Date: Fri Jan 6 21:58:29 2012
New Revision: 1228452
URL: http://svn.apache.org/viewvc?rev=1228452&view=rev
Log:
OOZIE-573: error message about misconfig in starting time of coordinator and initial-instance of dataset. (Param via Mohammad)
Modified:
incubator/oozie/branches/3.1/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java
Modified: incubator/oozie/branches/3.1/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java
URL: http://svn.apache.org/viewvc/incubator/oozie/branches/3.1/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java?rev=1228452&r1=1228451&r2=1228452&view=diff
==============================================================================
--- incubator/oozie/branches/3.1/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java (original)
+++ incubator/oozie/branches/3.1/core/src/main/java/org/apache/oozie/coord/CoordELFunctions.java Fri Jan 6 21:58:29 2012
@@ -710,6 +710,8 @@ public class CoordELFunctions {
int[] instCount = new int[1];// used as pass by ref
Calendar nominalInstanceCal = getCurrentInstance(getActionCreationtime(), instCount);
if (nominalInstanceCal == null) {
+ XLog.getLog(CoordELFunctions.class)
+ .warn("If the initial instance of the dataset is later than the nominal time, an empty string is returned. This means that no data is available at the current-instance specified by the user and the user could try modifying his initial-instance to an earlier time.");
return "";
}
nominalInstanceCal = getInitialInstanceCal();
@@ -718,7 +720,7 @@ public class CoordELFunctions {
if (nominalInstanceCal.getTime().compareTo(getInitialInstance()) < 0) {
XLog.getLog(CoordELFunctions.class)
- .warn("If the initial instance of the dataset is greater than the current-instance specified eg: coord:current(-4), an empty string is returned. This means that no data is available at the current-instance specified by the user and the user could try modifying his initial-instance to an earlier time.");
+ .warn("If the initial instance of the dataset is later than the current-instance specified, such as coord:current({0}) in this case, an empty string is returned. This means that no data is available at the current-instance specified by the user and the user could try modifying his initial-instance to an earlier time.", n);
return "";
}
String str = DateUtils.formatDateUTC(nominalInstanceCal);