-
Notifications
You must be signed in to change notification settings - Fork 14
Description
I have a question about batch operation.
Does every BatchPutKey and BatchDeleteKey request expects that server send response before Commit response?
I mean that batch operation works as follow?
CLIENT:
BatchCreate()
SERVER:
BatchCreateResp(bid)
CLIENT:
Async Put (k1,v1, bid,…)
Async Put (k2,v2, bid,…)
Async Del (k3, bid,…)
…
Async Put (kn,vn, bid,…)
Commit(bid)
SERVER
PutResp(k1)
PutResp(k2)
DelResp(k3)
….
PutResp(kn,vn)
CommitResp(bid)
If yes, why server need to send each separate response for BatchPut and BatchDelete?
Sending each response seems wasteful especially for large size of batch operations.
If no, memory leak should happen in kinetic-cpp-library, I think.
The library enqueues receiver handlers for each BatchPutKey/BatchDeleteKey request in NonblockingSender::Send() method, however these handlers would never be deleted because server does not send response for BatchPutKey/BatchDeleteKey.