lidavidm commented on code in PR #325:
URL: https://github.com/apache/arrow-cookbook/pull/325#discussion_r1316157918


##########
java/source/cdata.rst:
##########
@@ -0,0 +1,507 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+.. or more contributor license agreements.  See the NOTICE file
+.. distributed with this work for additional information
+.. regarding copyright ownership.  The ASF licenses this file
+.. to you under the Apache License, Version 2.0 (the
+.. "License"); you may not use this file except in compliance
+.. with the License.  You may obtain a copy of the License at
+
+..   http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+.. software distributed under the License is distributed on an
+.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+.. KIND, either express or implied.  See the License for the
+.. specific language governing permissions and limitations
+.. under the License.
+
+================
+C Data Interface
+================
+
+Recipes related to how to exchange data using C Data Interface specification.
+
+.. contents::
+
+Python (Consumer) - Java (Producer)
+===================================
+
+    For Python Consumer and Java Producer, please consider:
+
+    - The Root Allocator should be shared for all memory allocations.
+
+    - The Python application will sometimes shut down the Java JVM but Java 
JNI C Data will still work on releasing exported objects, which is why some 
guards have been implemented to protect against such scenarios. A warning 
message "WARNING: Failed to release Java C Data resource" indicates this 
scenario.
+
+    - We do not know when Root Allocator will be closed. It is for this reason 
that the Root Allocator should survive so long as the export/import of used 
objects is released. Here is an example of this scenario:

Review Comment:
   This is reST, it needs to be double-backticks



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to