You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "zhztheplayer (via GitHub)" <gi...@apache.org> on 2024/05/27 02:42:13 UTC
Re: [PR] [GLUTEN-4422][CORE] Fix core dump caused by spill on closed iterator [incubator-gluten]
zhztheplayer commented on code in PR #5874:
URL: https://github.com/apache/incubator-gluten/pull/5874#discussion_r1615413881
##########
cpp/core/jni/JniWrapper.cc:
##########
@@ -544,7 +544,12 @@ JNIEXPORT jlong JNICALL Java_org_apache_gluten_vectorized_ColumnarBatchOutIterat
auto ctx = gluten::getRuntime(env, wrapper);
auto it = ctx->objectStore()->retrieve<ResultIterator>(iterHandle);
- return it->spillFixedSize(size);
+ if (it == nullptr) {
Review Comment:
`it == nullptr` is not that clear to indicate `it` is closed. Could we leverage some kind of closing flags? Probably from Java / Scala side?
--
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: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org