-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CARBONDATA-2316] Executor task is failed but UI shows success issue is fixed … #2142
Conversation
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/4852/ |
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/3630/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4321/ |
1ac4d35
to
36f5906
Compare
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/3673/ |
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/4896/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4365/ |
processing/pom.xml
Outdated
<groupId>org.apache.spark</groupId> | ||
<artifactId>spark-core_${scala.binary.version}</artifactId> | ||
<version>${spark.version}</version> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this dependency. Do not add spark dependency in processing layer until and unless really required
@@ -37,7 +39,7 @@ | |||
* @param resultIteratorList | |||
* @return | |||
*/ | |||
public abstract boolean execute(List<RawResultIterator> resultIteratorList); | |||
public abstract boolean execute(List<RawResultIterator> resultIteratorList) throws SparkException; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can only throw the exception that is sufficient
@@ -165,8 +168,12 @@ public boolean execute(List<RawResultIterator> resultIteratorList) { | |||
readAndLoadDataFromSortTempFiles(); | |||
} | |||
isCompactionSuccess = true; | |||
} catch (Exception e) { | |||
} catch (BadRecordFoundException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BadRecordFoundException will never come in case of compaction so remove this catch block
LOGGER.error(e, "Compaction failed: " + e.getMessage()); | ||
throw new SparkException(e.getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove throwing sparkException from everywhere in the code
@@ -157,10 +160,15 @@ public boolean execute(List<RawResultIterator> resultIteratorList) { | |||
this.dataHandler.finish(); | |||
} | |||
mergeStatus = true; | |||
} catch (Exception e) { | |||
} catch (BadRecordFoundException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this catch block
36f5906
to
33b920e
Compare
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/4935/ |
Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/3716/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4396/ |
33b920e
to
1e8177b
Compare
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/3720/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/4939/ |
1e8177b
to
b55a31d
Compare
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/4942/ |
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/3723/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4400/ |
LGTM |
…is fixed Executor task is failed but UI shows success issue is fixed for compaction This closes apache#2142
…is fixed Executor task is failed but UI shows success issue is fixed for compaction This closes apache#2142
Any interfaces changed? No
Any backward compatibility impacted? No
Document update required? No
Testing done UT And FT success report is sufficient . offline verified .
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. NA