-
Notifications
You must be signed in to change notification settings - Fork 49
FIX: Add operation to temp writeQ when auth is needed #1010
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
Conversation
3cdda91 to
22e5704
Compare
|
@oliviarla @brido4125 ๋ฆฌ๋ทฐ ๋ฐ๋๋๋ค. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@jhpark816 @oliviarla @brido4125 ์์ ํ๋ฅผ ์ฌ์ฉํ๋ ๋ฐฉ์์ผ๋ก ๋ณ๊ฒฝํ์ต๋๋ค. |
์ด ์ํฉ์ ๋ํด ์กฐ๊ธ ๋ ๊ตฌ์ฒด์ ์ผ๋ก ์ค๋ช ํด์ฃผ์ค ์ ์๋์? ๊ทธ๋ฆฌ๊ณ , ๋ฐฉ์์ ๋ณ๊ฒฝํ ์ด์ ๊ฐ ๊ถ๊ธํฉ๋๋ค. ๋จ์ํ ์ฝ๋ ๋ณ๊ฒฝ์ด ์ ์ด์์ธ์ง ์๋๋ฉด ๋ค๋ฅธ ์ด์ ์ด ์๋์ง์? |
๋ฐฉ์์ ๋ณ๊ฒฝํ๋ ๊ฒ์ด ์ฝ๋ ๋ณ๊ฒฝ์ด ์ ๊ณ ๊ธฐ์กด ํ์ ๋ ์ ๋ง๋ ๊ฒ ๊ฐ์์ ๋ณ๊ฒฝํ์์ต๋๋ค.
์๋ฅผ ๋ค๋ฉด ์๋์ ๊ฐ์ ๊ฒฝ์ฐ์ธ๋ฐ, ์กฐ๊ธ ๋ณต์กํ ์ ์์ต๋๋ค. ํ์ํ๋ค๋ฉด ์คํ๋ผ์ธ์ผ๋ก ๋ ์ค๋ช ํด๋๋ฆฌ๊ฒ ์ต๋๋ค.
์์ ๊ฐ์ ์ํฉ์์ new master์ writeQ์ ๊ณง๋ฐ๋ก ์ฐ์ฐ์ ์ด๊ด์ํค๋ ๊ฒฝ์ฐ, new master๊ฐ ์๋ ์ํํด์ผ ํ๋ auth ์ฐ์ฐ์ inputQ์ ๋ค์ด๊ฐ๊ฒ ๋ฉ๋๋ค. |
|
authBlockedWriteQ ๋ง๋๋ ๋์ ๊ธฐ์กด write ํ๋ฅผ ๋ฑ์ผ๋ก ์จ์, |
๊ฐ๋ฅ์ ํ์ง๋ง ์กฐ๊ธ ๋ณต์กํ ๊ตฌํ์ด ์ถ๊ฐ๋ก ํ์ํฉ๋๋ค. |
|
์ ํ์ฌ์ฒ๋ผ ๊ธฐ์กด write ํ์ ์๋ ์ฐ์ฐ์ ์ฎ๊ฒผ๋ค๊ฐ, Auth ์๋ฃํ๊ณ ๋์ ๋ค์ ์ฎ๊ฒจ ๋์ ์ฐ์ฐ๋ค ์ํํ๋ ๊ฒ๋ณด๋ค ๋ฑ ์ฌ์ฉํ๋ ๊ตฌํ์ด ์ง๊ด์ ์ด์ง ์๋ ์ถ๊ธดํฉ๋๋ค. ์ด ๋ถ๋ถ์ @jhpark816 ์ด๋ @uhm0311 ๋์ ์ด๋ป๊ฒ ์๊ฐํ์๋์? |
|
Deque๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด ์๋์ ์์ ์ด ๋จผ์ , ํน์ ๋์์ ์ํ๋์ด์ผ ํฉ๋๋ค.
|
jhpark816
left a comment
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/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java
Outdated
Show resolved
Hide resolved
jhpark816
left a comment
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/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java
Outdated
Show resolved
Hide resolved
|
@oliviarla @brido4125 |
๐ Related Issue
โจ๏ธ What I did
MemcachedNode#setupForAuth()์์ authBlockedWriteQ๋ฅผ ์ด๊ธฐํํฉ๋๋ค.MemcachedNode#addOpToWriteQ()์์ auth๊ฐ ํ์ํ ๊ฒฝ์ฐ์๋ authBlockedWriteQ์ ์ฐ์ฐ์ ๋ฃ์ต๋๋ค.์ฐ์ฐ ์ด๊ด์ด๋ผ๋ ๊ด์ ์์ old master์ ์ฐ์ฐ์ new master๋ก ์ด๊ดํ๋ ๊ฒฝ์ฐ์ ๋์ผํฉ๋๋ค.MemcachedNode#authComplete()์์ auth๊ฐ ์ฑ๊ณตํ ๊ฒฝ์ฐ authBlockedWriteQ์ ์ฐ์ฐ์ writeQ๋ก ์ฎ๊น๋๋ค.