Currently as we have one fd we need an fsync before releasing a lock.
What we can do is have a dummy fd on which we take a lock. Then actual consumption (remote read + write) happens on a fd and we just close it. Then we release the lock on dummy fd and then close that fd as well.
Currently as we have one fd we need an fsync before releasing a lock.
What we can do is have a dummy fd on which we take a lock. Then actual consumption (remote read + write) happens on a fd and we just close it. Then we release the lock on dummy fd and then close that fd as well.
This would significantly improve I/O of consumer.