Skip to content

ACK for every batch operation #38

@tsasaki87

Description

@tsasaki87

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions