Skip to content

CLEANUP: Improve code clarity and consistency in AsyncArcusCommands#1086

Merged
jhpark816 merged 1 commit into
naver:developfrom
f1v3-dev:refactor/v2-clarity
Apr 30, 2026
Merged

CLEANUP: Improve code clarity and consistency in AsyncArcusCommands#1086
jhpark816 merged 1 commit into
naver:developfrom
f1v3-dev:refactor/v2-clarity

Conversation

@f1v3-dev
Copy link
Copy Markdown
Collaborator

🔗 Related Issue

⌨️ What I did

  • 생성자에서 arcusClientSupplier.get() 중복 호출 수정
  • multiGet, multiGets 에서 사용되던 get, gets 메서드를 getPerNode, getsPerNode로 변경 (public API와 혼동 방지)
  • flush(int delay) 에서 combiner가 항상 true를 반환하므로 불필요한 result.set(true) 제거 및 Javadoc 수정
  • verifyBKeyRangeverifyBKeyTypesMatch로 변경하여 명확히 표현

- Rename `verifyBKeyRange` to `verifyBKeyTypesMatch` for clarity
- Remove redundant `result.set(true)` and update Javadoc in flush
- Avoid redundant `arcusClientSupplier.get()` calls in constructor
- Rename private `get` and `gets` to `getPerNode` and `getsPerNode` for clarity
@f1v3-dev f1v3-dev requested a review from oliviarla April 30, 2026 02:10
@f1v3-dev f1v3-dev self-assigned this Apr 30, 2026
@oliviarla oliviarla requested a review from jhpark816 April 30, 2026 06:43
public void receivedStatus(OperationStatus status) {
switch (status.getStatusCode()) {
case SUCCESS:
result.set(true);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 빠졌는 데, 괜찮은가요?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flush()응답이 왔다는 것 자체가 성공을 의미하므로 항상 true를 반환하기로 합의하였고, 이에 따라 combiner를 () -> true로 설정하였습니다.

따라서 개별 노드의 result에 값을 세팅하더라도 최종 결과에 영향을 주지 않습니다.
오히려 result.set(true)가 남아있으면 해당 값이 결과에 반영되는 것처럼 오해할 수 있어 제거하였습니다.

@jhpark816 jhpark816 merged commit f610abe into naver:develop Apr 30, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants