-
Notifications
You must be signed in to change notification settings - Fork 49
INTERNAL: Remove AuthThread and do auth on IO Thread #1013
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
c3c782f to
d02b629
Compare
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.
์ผ๋ถ ๋ฆฌ๋ทฐ
| if (authDescriptor != null) { | ||
| authMonitor.authConnection(conn, opFact, authDescriptor, node); | ||
| } | ||
| // Don't care. |
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.
MemcacheClient๋ ๋ ์ด์ ConnectionObserver๋ฅผ ๊ตฌํํ ํ์๊ฐ ์์ด ๋ณด์ ๋๋ค.
| inputQueue.drainTo(tmp); | ||
| inputQueue.addAll(tmp); | ||
| writeQ.drainTo(tmp); | ||
| writeQ.addAll(tmp); |
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.
@uhm0311
์ง๋ฌธ์
๋๋ค.
writeQ๋ empty ์ํ์ผ ๊ฒ ๊ฐ์ ๋ฐ, ์๋ ์๋ ์๋์?
์์ ๊ตฌํ์์๋ inputQueue๊ฐ empty์ผ ๊ฒ ๊ฐ์ ๋ฐ์.
inputQueue์ op๊ฐ ์์ ์ ์์์ ๊ฐ์ ํ๊ณ ์์ต๋๋ค.
์ด๋ ๊ฒ ํ ํ์๊ฐ ์๋ ์ง ๊ถ๊ธํฉ๋๋ค.
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.
Queue๊ฐ ๋น์ด ์๋ ๊ฒ์ ํ์คํฉ๋๋ค.
๊ธฐ์กด ์ฝ๋๋ฅผ ๊ฑฐ์ ๊ทธ๋๋ก ์ฌ์ฉํ๋ ค๊ณ ํ๋๋ฐ, ๋น์ด ์์ผ๋ ๊ทธ๋ฅ ๋ง์ง๋ง์ ์ฐ์ฐ์ ์ถ๊ฐํ๋๋ก ํ ๊น์?
| final Operation priorAuthOp = authOperations.remove(node); | ||
| if (priorAuthOp != null && priorAuthOp.getState() != OperationState.COMPLETE) { | ||
| priorAuthOp.cancel("Authentication is not completed until the reconnection."); | ||
| } |
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.
๋ง์ง๋ง ์ง๋ฌธ์
๋๋ค.
authOperations์ ๋จ์ op๊ฐ complete๋์ง ์์๋ค๋ฉด, cancelํ๋ ๋ก์ง์ธ๋ฐ์. ์ด๋ค ๊ฒฝ์ฐ๋ฅผ ๋๋นํ๊ธฐ ์ํจ์ธ๊ฐ์?
ํน์, ๊ธฐ์กด auth thread monitor์ ์์ ๋ก์ง์ด ์์ด์ ์ด๋ฅผ ๋์ผํ๊ฒ ๊ตฌํํด ๋ ๊ฒ์ธ๊ฐ์?
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.
ํน์, ๊ธฐ์กด auth thread monitor์ ์์ ๋ก์ง์ด ์์ด์ ์ด๋ฅผ ๋์ผํ๊ฒ ๊ตฌํํด ๋ ๊ฒ์ธ๊ฐ์?
๋์ผํ๊ฒ ๊ตฌํํ๋ ค๊ณ ํ์ต๋๋ค.
์ ๊ฐ ๋ณด๊ธฐ์๋ ์ด ์กฐ๊ฑด๋ฌธ ์์ผ๋ก ๋ค์ด์ฌ ์ ์๋ ๊ฒฝ์ฐ๋ ์กด์ฌํ์ง ์์ต๋๋ค.
์ด ์ฝ๋๋ฅผ ์ ๊ฑฐํ๋๋ก ํ ๊น์?
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.
์. ์ ๊ฑฐํ์์ฃ .
|
@oliviarla @brido4125 |
๐ Related Issue
โจ๏ธ What I did