I've just updated to the latest 1.4 head and found that my log is only
showing lines like:
INFO: {add=[x0,x1,x2,x3,x4,x5,x6,x7, ... (8 added)]} 0 13627
Debugging LogUpdateProcessorFactory; adds.size() is always 8 while
numAdds is a number in the hundreds, depending on the added list of
documents. I suspect that numAdds is the number I'm looking for in my logs.
Could we change LogUpdateProcessorFactory to:
@@ -162,10 +162,10 @@
// if id lists were truncated, show how many more there were
if (adds != null && numAdds > maxNumToLog) {
- adds.add("... (" + adds.size() + " added)");
+ adds.add("... (" + numAdds + " added)");
}
if (deletes != null && numDeletes > maxNumToLog) {
- deletes.add("... (" + deletes.size() + " removed)");
+ deletes.add("... (" + numDeletes + " removed)");
}
long elapsed = rsp.getEndTime() - req.getStartTime();
log.info( ""+toLog + " 0 " + (elapsed) );
Thanks
Thijs
On 22-10-2009 5:59, Yonik Seeley wrote:
On Wed, Oct 21, 2009 at 11:44 PM, Ryan McKinley<[email protected]> wrote:
I'm looking through a bunch of logs that have:
UpdateRequestProcessor - {add=[aa, bb, cc, dd, ee, ff, gg, hh, ...(142 more)]}
Would it be more reasonable to say: "150 total" rather then make you
count the previous 8?
Yep, I did reconsider that at some point... just never got to the
threshold of doing something about it :-)
-Yonik
http://www.lucidimagination.com