chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asrab...@apache.org
Subject svn commit: r800977 - in /hadoop/chukwa/trunk: CHANGES.txt src/java/org/apache/hadoop/chukwa/util/DumpChunks.java
Date Tue, 04 Aug 2009 21:14:43 GMT
Author: asrabkin
Date: Tue Aug  4 21:14:42 2009
New Revision: 800977

URL: http://svn.apache.org/viewvc?rev=800977&view=rev
Log:
CHUKWA-367.  Print metadata in DumpChunks.

Modified:
    hadoop/chukwa/trunk/CHANGES.txt
    hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/util/DumpChunks.java

Modified: hadoop/chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/CHANGES.txt?rev=800977&r1=800976&r2=800977&view=diff
==============================================================================
--- hadoop/chukwa/trunk/CHANGES.txt (original)
+++ hadoop/chukwa/trunk/CHANGES.txt Tue Aug  4 21:14:42 2009
@@ -46,6 +46,8 @@
 
   IMPROVEMENTS
 
+    CHUKWA-367.  Print metadata in DumpChunks. (asrabkin)
+
     CHUKWA-74.  Agent shouldn't log exceptions for down collectors. (Rushin Barot via asrabkin)
 
     CHUKWA-365.  Improved DumpArchive tool. (asrabkin)

Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/util/DumpChunks.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/util/DumpChunks.java?rev=800977&r1=800976&r2=800977&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/util/DumpChunks.java (original)
+++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/util/DumpChunks.java Tue Aug  4
21:14:42 2009
@@ -135,7 +135,9 @@
   Map<String, SortedMap<Long, ChunkImpl>> matchCatalog;
   
   protected void displayResults(PrintStream out) throws IOException{
-    for(SortedMap<Long, ChunkImpl> stream: matchCatalog.values()) {
+    for(Map.Entry<String,SortedMap<Long, ChunkImpl>> streamE: matchCatalog.entrySet())
{
+      String header = streamE.getKey();
+      SortedMap<Long, ChunkImpl> stream = streamE.getValue();
       long nextToPrint = 0;
       if(stream.firstKey() > 0)
         System.err.println("---- map starts at "+ stream.firstKey());
@@ -158,7 +160,7 @@
           nextToPrint = c.getSeqID();
         }
       }
-      out.println("\n--------------------");
+      out.println("\n--------"+header + "--------");
     }
   }
  



Mime
View raw message