File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/main/java/com/yelp/nrtsearch/server/handler Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 18
18
import com .google .common .collect .HashMultimap ;
19
19
import com .google .common .collect .Multimap ;
20
20
import com .google .protobuf .ProtocolStringList ;
21
+ import com .google .protobuf .util .JsonFormat ;
21
22
import com .yelp .nrtsearch .server .field .FieldDef ;
22
23
import com .yelp .nrtsearch .server .field .IdFieldDef ;
23
24
import com .yelp .nrtsearch .server .field .IndexableFieldDef ;
@@ -428,6 +429,9 @@ public long runIndexingJob() throws Exception {
428
429
"ThreadId: %s, IndexWriter.addDocuments failed" ,
429
430
Thread .currentThread ().getName () + Thread .currentThread ().threadId ()));
430
431
throw new IOException (e );
432
+ } catch (Exception e ) {
433
+ logger .info ("Failed Request: {}" , JsonFormat .printer ().print (addDocumentRequest ));
434
+ throw e ;
431
435
}
432
436
} else {
433
437
documents .add (documentsContext .getRootDocument ());
You can’t perform that action at this time.
0 commit comments