chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r787510 - in /hadoop/chukwa: branches/chukwa-0.2/conf/mdl.xml branches/chukwa-0.2/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java trunk/conf/mdl.xml trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
Date Tue, 23 Jun 2009 01:03:04 GMT
Author: eyang
Date: Tue Jun 23 01:03:04 2009
New Revision: 787510

URL: http://svn.apache.org/viewvc?rev=787510&view=rev
Log:
CHUKWA-316. Fix MetricDataLoader to use "_delete" keyword for removing columns. (Eric Yang)

Modified:
    hadoop/chukwa/branches/chukwa-0.2/conf/mdl.xml
    hadoop/chukwa/branches/chukwa-0.2/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
    hadoop/chukwa/trunk/conf/mdl.xml
    hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java

Modified: hadoop/chukwa/branches/chukwa-0.2/conf/mdl.xml
URL: http://svn.apache.org/viewvc/hadoop/chukwa/branches/chukwa-0.2/conf/mdl.xml?rev=787510&r1=787509&r2=787510&view=diff
==============================================================================
--- hadoop/chukwa/branches/chukwa-0.2/conf/mdl.xml (original)
+++ hadoop/chukwa/branches/chukwa-0.2/conf/mdl.xml Tue Jun 23 01:03:04 2009
@@ -1377,7 +1377,7 @@
 
 <property>
   <name>metric.jobdata.jobconf</name>
-  <value></value>
+  <value>_delete</value>
   <description>Explicitly undefined jobconf path to load to database</description>
 </property>
   

Modified: hadoop/chukwa/branches/chukwa-0.2/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/branches/chukwa-0.2/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java?rev=787510&r1=787509&r2=787510&view=diff
==============================================================================
--- hadoop/chukwa/branches/chukwa-0.2/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
(original)
+++ hadoop/chukwa/branches/chukwa-0.2/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
Tue Jun 23 01:03:04 2009
@@ -352,7 +352,7 @@
           boolean firstValue = true;
           while (fi.hasNext()) {
             String fieldKey = fi.next();
-            if (transformer.containsKey(fieldKey) && transformer.get(fieldKey).intern()!="".intern())
{
+            if (transformer.containsKey(fieldKey) && transformer.get(fieldKey).intern()!="_delete".intern())
{
               if (!firstValue) {
                 sqlValues.append(", ");
               }

Modified: hadoop/chukwa/trunk/conf/mdl.xml
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/conf/mdl.xml?rev=787510&r1=787509&r2=787510&view=diff
==============================================================================
--- hadoop/chukwa/trunk/conf/mdl.xml (original)
+++ hadoop/chukwa/trunk/conf/mdl.xml Tue Jun 23 01:03:04 2009
@@ -1377,7 +1377,7 @@
 
 <property>
   <name>metric.jobdata.jobconf</name>
-  <value></value>
+  <value>_delete</value>
   <description>Explicitly undefined jobconf path to load to database</description>
 </property>
   

Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java?rev=787510&r1=787509&r2=787510&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
(original)
+++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
Tue Jun 23 01:03:04 2009
@@ -352,7 +352,7 @@
           boolean firstValue = true;
           while (fi.hasNext()) {
             String fieldKey = fi.next();
-            if (transformer.containsKey(fieldKey) && transformer.get(fieldKey).intern()!="".intern())
{
+            if (transformer.containsKey(fieldKey) && transformer.get(fieldKey).intern()!="_delete".intern())
{
               if (!firstValue) {
                 sqlValues.append(", ");
               }



Mime
View raw message