flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [flink] StephanEwen edited a comment on issue #8290: [FLINK-12070] [network] Implement new bounded blocking subpartitions
Date Mon, 06 May 2019 11:31:24 GMT
StephanEwen edited a comment on issue #8290: [FLINK-12070] [network] Implement new bounded
blocking subpartitions
URL: https://github.com/apache/flink/pull/8290#issuecomment-489583266
 
 
   Some comment on thread-safety and synchronization:
   
   We don't assume arbitrary concurrent access, there is a single writer thread for the `BoundedBlockingSubpartition`
and one thread that operates the reader. If concurrent writes and reads happens nonetheless
(bug in the system), exceptions occur. That is preferable to the performance overhead of locks
everywhere.
   
   The only concurrency is concurrent reader creation and concurrent release() calls. We need
to guard those to avoid segfaults due to accessing unmapped memory. That's what the implementation
does.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message