You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "sunpe (via GitHub)" <gi...@apache.org> on 2023/04/25 09:58:29 UTC

[GitHub] [arrow] sunpe opened a new issue, #35330: Ipc writer in concurrent will write schema twice

sunpe opened a new issue, #35330:
URL: https://github.com/apache/arrow/issues/35330

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   When using ipc writer under concurrent conditions, schema data may be written multiple times. And the data sink may crash with an error.
   
   Demo as below:
   ```
   schema := arrow.NewSchema(...)
   
   address, err := net.ResolveTCPAddr("tcp", '127.0.0.1')
   if err!=nil {
       ...
   }
   conn, err := net.DialTCP("tcp", nil, address)
   if err!=nil {
       ...
   }
   
   writer := ipc.NewWriter(conn, ipc.WithSchema(schema))
   
   record  :=  ... // create record
   for i:=0; i< 10; i++ {
       go func() {
           if err = writer.Write(record); err != nil {
                ...
           }
       }()
   }
   ```
   
   ### Component(s)
   
   Go


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow] zeroshade commented on issue #35330: [Go] ipc writer is not concurrency safe

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on issue #35330:
URL: https://github.com/apache/arrow/issues/35330#issuecomment-1719754398

   @vibhatha Do you still intend on working on this?


-- 
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-unsubscribe@arrow.apache.org

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


[GitHub] [arrow] vibhatha commented on issue #35330: [Go] ipc writer is not concurrency safe

Posted by "vibhatha (via GitHub)" <gi...@apache.org>.
vibhatha commented on issue #35330:
URL: https://github.com/apache/arrow/issues/35330#issuecomment-1549798878

   take


-- 
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-unsubscribe@arrow.apache.org

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