Skip to content

asyncBopPipedInsertBulk API 동작 검토. #374

@jhpark816

Description

@jhpark816

아래 asyncBopPipedInsertBulk API는 다음 2 중의 하나로 동작한다.

  • attributesForCreate 주어지면, insert 시에 해당 collection 없을 시에 직접 생성한다.
  • attributesForCreate 생략되면, insert 시에 해당 collection 없을 시에 insert 실패한다.
CollectionFuture<Map<Integer, CollectionOperationStatus>>
asyncBopPipedInsertBulk(String key, List<Element<Object>> elements,
                        CollectionAttributes attributesForCreate)

이슈는 attributesForCreate 주어진 경우, insert 하는 도중에 collection이 제거되는 경우이다.
Unreadable 상태이면, 해당 collection을 명시적으로 제거할 수 없다.
TTL 설정에 의해 제거될 수는 있다.

이 경우, insert 하는 과정에서 해당 collection이 제거된 경우, insert를 계속해야 하는 것인가 ?
attributesForCreate 주어지더라도 처음 insert 시에만 collection 생성 여부를 결정하여 진행하고,
그 이후의 insert 연산에서는 colleciton이 제거되면 insert 실패 처리하는 것을 검토하자.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions