add timestamp to per-segment diagnostics

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1432776 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2013-01-14 01:05:55 +00:00
parent 708d5890c5
commit cc7a83c221
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
@ -3482,6 +3483,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
diagnostics.put("os.version", Constants.OS_VERSION);
diagnostics.put("java.version", Constants.JAVA_VERSION);
diagnostics.put("java.vendor", Constants.JAVA_VENDOR);
diagnostics.put("timestamp", Long.toString(new Date().getTime()));
if (details != null) {
diagnostics.putAll(details);
}