maheshrajus commented on code in PR #519:
URL: https://github.com/apache/tez/pull/519#discussion_r3702395240
##########
tez-plugins/tez-history-parser/src/main/java/org/apache/tez/history/parser/ATSFileParser.java:
##########
@@ -197,7 +210,13 @@ private void parseATSZipFile(File atsFile)
ZipEntry zipEntry = zipEntries.nextElement();
LOG.debug("Processing " + zipEntry.getName());
InputStream inputStream = atsZipFile.getInputStream(zipEntry);
- JSONObject jsonObject = readJson(inputStream);
+ //Read entire content to memory so we can pass entry name into error
messages
+ final NonSyncByteArrayOutputStream bout = new
NonSyncByteArrayOutputStream();
+ IOUtils.copy(inputStream, bout);
+ JSONObject jsonObject = readJson(bout.toByteArray(),
zipEntry.getName());
+ if (jsonObject == null) {
+ continue;
+ }
Review Comment:
Fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]