You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "liujp (via GitHub)" <gi...@apache.org> on 2024/07/12 09:06:31 UTC

[I] Memoy leak in VeloxParquetDatasource [incubator-gluten]

liujp opened a new issue, #6430:
URL: https://github.com/apache/incubator-gluten/issues/6430

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   in file VeloxParquetDatasource.cc
   there is a data member in VeloxParquetDatasource and is likely not used.
   <img width="809" alt="image" src="https://github.com/user-attachments/assets/218eec54-a344-41db-84d5-f7ac2bc41ebc">
    here the type_  doesn't hold memory from the cSchema, So the temp var cSchema should be released by ArrowSchemaRelease(&cSchema); 
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   _No response_


-- 
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.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


Re: [I] Memoy leak in VeloxParquetDatasource [incubator-gluten]

Posted by "liujp (via GitHub)" <gi...@apache.org>.
liujp commented on issue #6430:
URL: https://github.com/apache/incubator-gluten/issues/6430#issuecomment-2228271019

   > @liujp It seems https://github.com/apache/incubator-gluten/blob/main/cpp/velox/operators/writer/VeloxParquetDatasource.cc#L56-L62 code is no needed. Can you help to delete? Thanks.
   
   yes, you are right. I also get that the var  `type_`  is not used for anywhere. Ok, I am glad to delete it


-- 
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


Re: [I] Memoy leak in VeloxParquetDatasource [incubator-gluten]

Posted by "rui-mo (via GitHub)" <gi...@apache.org>.
rui-mo commented on issue #6430:
URL: https://github.com/apache/incubator-gluten/issues/6430#issuecomment-2227832173

   @liujp Thanks for your feedback. There is a leak indeed from my view. @JkSelf @zhztheplayer Do you have any input?


-- 
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


Re: [I] Memoy leak in VeloxParquetDatasource [incubator-gluten]

Posted by "JkSelf (via GitHub)" <gi...@apache.org>.
JkSelf commented on issue #6430:
URL: https://github.com/apache/incubator-gluten/issues/6430#issuecomment-2228071042

   @liujp It seems https://github.com/apache/incubator-gluten/blob/main/cpp/velox/operators/writer/VeloxParquetDatasource.cc#L56-L62 code is no needed. Can you help to delete? Thanks.


-- 
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


Re: [I] Memoy leak in VeloxParquetDatasource [incubator-gluten]

Posted by "zhztheplayer (via GitHub)" <gi...@apache.org>.
zhztheplayer commented on issue #6430:
URL: https://github.com/apache/incubator-gluten/issues/6430#issuecomment-2227941470

   Thank you for reporting this.
   
   My feeling is C schema's release could be done inside Velox's importing code. See various import code for languages from official Apache Arrow:
   
   https://github.com/apache/arrow/blob/57ac40ca23ebcaa4d42ae808137033689d3be9b1/java/c/src/main/java/org/apache/arrow/c/Data.java#L246-L255
   https://github.com/apache/arrow/blob/57ac40ca23ebcaa4d42ae808137033689d3be9b1/csharp/src/Apache.Arrow/C/CArrowSchemaImporter.cs#L128C25-L139
   
   They all release the schema after finishing importing.


-- 
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


Re: [I] Memoy leak in VeloxParquetDatasource [incubator-gluten]

Posted by "liujp (via GitHub)" <gi...@apache.org>.
liujp closed issue #6430: Memoy leak in VeloxParquetDatasource
URL: https://github.com/apache/incubator-gluten/issues/6430


-- 
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