Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
By default, jackson's ObjectMapper closes the writer after writing, so in the following code
ObjectMapper jsonMapper = new ObjectMapper();
jsonMapper.writeValue(writer, map);
writer.write(ENTER);
writer.write actually writes to a closed stream. This doesn't seem to cause a problem with the version of jetty that hadoop uses (those just ignore closes), but causes problems on later verisons of jetty – I hit this on jetty 8 while implementing SOLR-9200.
Attachments
Attachments
Issue Links
- is related to
-
SOLR-9762 Remove the workaround implemented for HADOOP-13346
- Closed