sunpe opened a new issue, #55:
URL: https://github.com/apache/arrow-go/issues/55
### Describe the bug, including details regarding any error messages,
version, and platform.
Ipc writer is not concurrency safe. 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]