[jira] [Assigned] (SPARK-33756) BytesToBytesMap's iterator hasNext method should be idempotent.

2020-12-20 Thread Sean R. Owen (Jira)


 [ 
https://issues.apache.org/jira/browse/SPARK-33756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean R. Owen reassigned SPARK-33756:


Assignee: Xianjin YE

> BytesToBytesMap's iterator hasNext method should be idempotent.
> ---
>
> Key: SPARK-33756
> URL: https://issues.apache.org/jira/browse/SPARK-33756
> Project: Spark
>  Issue Type: Bug
>  Components: Spark Core
>Affects Versions: 3.0.0
>Reporter: Xianjin YE
>Assignee: Xianjin YE
>Priority: Minor
>
> BytesToBytesMap's MapIterator's hasNext method is not idempotent. 
> {code:java}
> // 
> public boolean hasNext() {
>   if (numRecords == 0) {
> if (reader != null) {
>   // if called multiple multiple times, it will throw NoSuchElement 
> exception
>   handleFailedDelete();
> }
>   }
>   return numRecords > 0;
> }
> {code}
> Multiple calls to this `hasNext` method will call `handleFailedDelete()` 
> multiple times, which will throw NoSuchElementException  as the spillWrites 
> has already been empty.
>  
> We observed this issue for in one of our production jobs after upgrading to 
> Spark 3.0



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Assigned] (SPARK-33756) BytesToBytesMap's iterator hasNext method should be idempotent.

2020-12-11 Thread Apache Spark (Jira)


 [ 
https://issues.apache.org/jira/browse/SPARK-33756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-33756:


Assignee: Apache Spark

> BytesToBytesMap's iterator hasNext method should be idempotent.
> ---
>
> Key: SPARK-33756
> URL: https://issues.apache.org/jira/browse/SPARK-33756
> Project: Spark
>  Issue Type: Bug
>  Components: Spark Core
>Affects Versions: 3.0.0
>Reporter: Xianjin YE
>Assignee: Apache Spark
>Priority: Minor
>
> BytesToBytesMap's MapIterator's hasNext method is not idempotent. 
> {code:java}
> // 
> public boolean hasNext() {
>   if (numRecords == 0) {
> if (reader != null) {
>   // if called multiple multiple times, it will throw NoSuchElement 
> exception
>   handleFailedDelete();
> }
>   }
>   return numRecords > 0;
> }
> {code}
> Multiple calls to this `hasNext` method will call `handleFailedDelete()` 
> multiple times, which will throw NoSuchElementException  as the spillWrites 
> has already been empty.
>  
> We observed this issue for in one of our production jobs after upgrading to 
> Spark 3.0



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Assigned] (SPARK-33756) BytesToBytesMap's iterator hasNext method should be idempotent.

2020-12-11 Thread Apache Spark (Jira)


 [ 
https://issues.apache.org/jira/browse/SPARK-33756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-33756:


Assignee: (was: Apache Spark)

> BytesToBytesMap's iterator hasNext method should be idempotent.
> ---
>
> Key: SPARK-33756
> URL: https://issues.apache.org/jira/browse/SPARK-33756
> Project: Spark
>  Issue Type: Bug
>  Components: Spark Core
>Affects Versions: 3.0.0
>Reporter: Xianjin YE
>Priority: Minor
>
> BytesToBytesMap's MapIterator's hasNext method is not idempotent. 
> {code:java}
> // 
> public boolean hasNext() {
>   if (numRecords == 0) {
> if (reader != null) {
>   // if called multiple multiple times, it will throw NoSuchElement 
> exception
>   handleFailedDelete();
> }
>   }
>   return numRecords > 0;
> }
> {code}
> Multiple calls to this `hasNext` method will call `handleFailedDelete()` 
> multiple times, which will throw NoSuchElementException  as the spillWrites 
> has already been empty.
>  
> We observed this issue for in one of our production jobs after upgrading to 
> Spark 3.0



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org