You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 {
...
}
}()
}
Activity
[-]Ipc writer in concurrent will write schema twice[/-][+]ipc writer is not concurrency safe[/+][-]ipc writer is not concurrency safe[/-][+][Go] ipc writer is not concurrency safe[/+]vibhatha commentedon May 16, 2023
take
zeroshade commentedon Sep 14, 2023
@vibhatha Do you still intend on working on this?
vibhatha commentedon Jun 2, 2024
@zeroshade I am extremely sorry I have missed your message here. I am not planning to work on it at the moment. Sorry about that.
docs(arrow/ipc): document that Writer and FileWriter are not concurre…