Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyncBopPipedInsertBulk API 동작 검토. #374

Open
jhpark816 opened this issue Dec 13, 2021 · 3 comments
Open

asyncBopPipedInsertBulk API 동작 검토. #374

jhpark816 opened this issue Dec 13, 2021 · 3 comments
Assignees

Comments

@jhpark816
Copy link
Collaborator

아래 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 실패 처리하는 것을 검토하자.

@oliviarla oliviarla self-assigned this Aug 20, 2024
@oliviarla
Copy link
Collaborator

@jhpark816
pipe 연산을 동기로 변환할 때 본 이슈도 함께 처리할까요?
변경된다면 pipe 연산의 가장 첫 명령에만 collectionAttributes를 입력하게 될 것입니다.

@jhpark816
Copy link
Collaborator Author

@oliviarla
pipe 연산의 동기 수행과는 무관하다고 생각되어 별도 PR로 처리하는 것이 낫지 않나 생각합니다.

@oliviarla
Copy link
Collaborator

그러면 동기 방식 적용 전에 먼저 처리할까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants