-
Notifications
You must be signed in to change notification settings - Fork 47
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
REFACTOR: Change cachelist and alterList parsing logic. #600
REFACTOR: Change cachelist and alterList parsing logic. #600
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@brido4125 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
일부 리뷰.
test 일부는 리뷰하지 않았는 데, 유사 형태는 함께 수정 바랍니다.
src/test/java/net/spy/memcached/ArcusKetamaNodeLocatorTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
일부 리뷰
src/test/java/net/spy/memcached/ArcusKetamaNodeLocatorTest.java
Outdated
Show resolved
Hide resolved
a72266a
to
7d3eb4a
Compare
This comment was marked as outdated.
This comment was marked as outdated.
merge 가능으로 보입니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 완료
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 완료
eec03df
to
47e16bf
Compare
@uhm0311 @oliviarla 이제 리뷰 바랍니다. |
@brido4125 List<InetSocketAddress> getAddresses(List<String> addressList) |
This comment was marked as outdated.
This comment was marked as outdated.
ecd8817
to
518724e
Compare
518724e
to
8eba399
Compare
56c74df
to
ee4625d
Compare
젤 위의 PR 설명 참고하셔서 리뷰 한번 부탁드립니다. |
return getSocketAddressList(addrs.toString()); | ||
} | ||
|
||
private List<InetSocketAddress> getSocketAddressList(String addrs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getAddressListString() 메소드와 합치는 것은 추후에 하기로 했었나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
스트림 사용해서 getSocketAddressList 내부 로직 바꿀 때 같이 변경하려고 합니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jhpark816
이부분은 지금 같이 구현되면 좋을 것 같은데 어떠신가요?
getAddressListString 메서드의 반환 타입에 String을 찾아볼 수가 없는 구조라서 좀 이상합니다.
getSocketAddressList 내부에서 List -> String으로 변경하는 기존의 getAddressListString 메서드를 호출한 후 List를 반환하도록 하고, 외부에서는 getSocketAddressList 메서드만 호출하면 어떨까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
함수 네이밍이랑 내부 동작이랑 일치 시켰습니다.
내부적인 리팩토링은 스트림 사용해서 진행할 건데,
앞선 코멘트에 의해
#600 (comment)
PR이 머지되는데 시간이 좀 걸릴 것 같아 반영하지 않았습니다.
왜냐하면 본 변경이 locator 작업의 첫 단계라 지연되지 않았으면 합니다
https://github.com/jam2in/arcus-works/issues/549#issuecomment-2373414131
@oliviarla 리뷰 바랍니다. |
ee4625d
to
f41c7c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 완료
f41c7c6
to
a4d19fa
Compare
https://github.com/jam2in/arcus-works/issues/379
변경 사항
기존에는 String 타입으로 cacheListChange 및 alterListChange를 관리한다.
이러한 경우에는 ArcusClientPool 내에 있는 모든 ArcusClient들이
String -> List<InetSocketAddress>
로의 변환을 반복한다.이러한 반복을 제거하기 위해 znode로부터
List<String>
을받았을 때
List<InetSocketAddrress>
로 바로 변환하도록 변경한다.