taegeonum commented on a change in pull request #277: [NEMO-429] SWPP TEAM2
Code Smell Fix
URL: https://github.com/apache/incubator-nemo/pull/277#discussion_r352934410
##########
File path:
runtime/executor/src/main/java/org/apache/nemo/runtime/executor/task/MultiThreadParentTaskDataFetcher.java
##########
@@ -87,7 +87,7 @@ Object fetchDataElement() throws IOException,
NoSuchElementException {
while (true) {
final Object element = elementQueue.poll();
if (element == null) {
- throw new NoSuchElementException();
+ throw new RuntimeException();
Review comment:
Could you please revert it to `NoSuchElementException`?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services