Skip to content

Conversation

@uhm0311
Copy link
Collaborator

@uhm0311 uhm0311 commented Apr 29, 2024

๐Ÿ”— Related Issue

โŒจ๏ธ What I did

  • NodeLocator์—์„œ ๋…ธ๋“œ๋ฅผ ์ œ๊ฑฐํ•  ๋•Œ, ํ•ด๋‹น ๋…ธ๋“œ์™€์˜ ์†Œ์ผ“ ์—ฐ๊ฒฐ์ด ํ•ด์ œ๋˜์ง€ ์•Š์•˜๊ณ  Operation Queue๊ฐ€ ๋น„์–ด ์žˆ์ง€ ์•Š์œผ๋ฉด ์†Œ์ผ“ ์—ฐ๊ฒฐ์„ ํ•ด์ œ์™€ ์—ฐ์‚ฐ ์บ”์Šฌ์„ ์ˆ˜ํ–‰ํ•˜์ง€ ์•Š๊ณ  DelayedClosingNodes๋กœ ๋ถ„๋ฅ˜ํ•ฉ๋‹ˆ๋‹ค.
  • IO Thread๊ฐ€ DelayedClosingNodes๋กœ ๋ถ„๋ฅ˜๋œ ๋…ธ๋“œ๋“ค์„ ์ˆœํšŒํ•˜๋ฉฐ ๋‹ค์Œ์˜ ๋กœ์ง์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.
    • ์†Œ์ผ“ ์—ฐ๊ฒฐ์ด ๋Š์–ด์ง„ ๋…ธ๋“œ๊ฐ€ ์žˆ๋‹ค๋ฉด ์—ฐ์‚ฐ์„ ๋ชจ๋‘ ์บ”์Šฌํ•˜๊ณ  DelayedClosingNodes์—์„œ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค.
    • Operation Queue๊ฐ€ ๋น„์–ด ์žˆ๋Š” ๋…ธ๋“œ๊ฐ€ ์žˆ๋‹ค๋ฉด ์†Œ์ผ“ ์—ฐ๊ฒฐ์„ ํ•ด์ œํ•˜๊ณ  DelayedClosingNodes์—์„œ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค.

@oliviarla
Copy link
Collaborator

handleNodesToRemove ๋ฉ”์„œ๋“œ๊ฐ€ ๋ณต์ œ์™€ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜์—์„œ๋„ ์‚ฌ์šฉ๋˜๋Š”๋ฐ, ํ•ด๋‹น ๋ถ€๋ถ„์—๋Š” ์˜ํ–ฅ์ด ์—†๋‚˜์š”?

@uhm0311
Copy link
Collaborator Author

uhm0311 commented Apr 30, 2024

EE์—ฌ๋„ cache_list znode๊ฐ€ ์ œ๊ฑฐ๋˜์—ˆ์„ ๋•Œ ๋™์ž‘์€ CE์™€ ๋™์ผํ•ฉ๋‹ˆ๋‹ค.
alter_list znode๊ฐ€ ์ œ๊ฑฐ๋˜์—ˆ์„ ๋•Œ๋Š” NodeLocator์—์„œ ์†Œ์ผ“ ์—ฐ๊ฒฐ์„ ํ•ด์ œํ•˜๋ฏ€๋กœ ์˜ํ–ฅ์ด ์—†์Šต๋‹ˆ๋‹ค.

@uhm0311 uhm0311 changed the title INTERNAL: Not to cancel operations when node is removed from cache_list. INTERNAL: Not to cancel operations when node is removed from ZK. Apr 30, 2024
@uhm0311 uhm0311 force-pushed the uhm0311/develop branch 3 times, most recently from 56005f1 to 4955858 Compare April 30, 2024 05:39
@uhm0311 uhm0311 changed the title INTERNAL: Not to cancel operations when node is removed from ZK. INTERNAL: Not to cancel operations when node is removed from ZK but still alive. Apr 30, 2024
@uhm0311 uhm0311 requested a review from jhpark816 April 30, 2024 09:11
@uhm0311
Copy link
Collaborator Author

uhm0311 commented Apr 30, 2024

์ฒซ๋ฒˆ์งธ ์ฝ”๋ฉ˜ํŠธ์— ์ปค๋ฐ‹ ์ˆ˜์ •์‚ฌํ•ญ์„ ์—…๋ฐ์ดํŠธ ํ–ˆ์Šต๋‹ˆ๋‹ค.

@jhpark816
Copy link
Collaborator

@oliviarla @brido4125 ๋จผ์ € ๋ฆฌ๋ทฐ ํ•˜์‹œ์ฃ .

@uhm0311 uhm0311 force-pushed the uhm0311/develop branch 2 times, most recently from 39ff086 to a9559bb Compare May 2, 2024 01:22
@brido4125
Copy link
Collaborator

https://github.com/jam2in/arcus-works/issues/549

ํ˜„์žฌ PR์—์„œ๋Š” locator์˜ update์™€ handleDelayedClosingNodes ๋ชจ๋‘ IO ์“ฐ๋ ˆ๋“œ์—์„œ ์ˆœ์ฐจ์ ์œผ๋กœ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

๋งŒ์•ฝ, ํ˜„์žฌ ์ง„ํ–‰์ค‘์ธ ์ด์Šˆ์ฒ˜๋Ÿผ locator์— ๋Œ€ํ•œ update ์ˆ˜ํ–‰์„ ๋‹ค๋ฅธ ์Šค๋ ˆ๋“œ๊ฐ€ ์ˆ˜ํ–‰ํ•  ๊ฒฝ์šฐ
ํ•ด๋‹น ๊ตฌํ˜„๋„ ๋ณ€๊ฒฝ์ด ํ•„์š”ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

์ถ”ํ›„ ์ฐธ๊ณ ํ•  ๋ชฉ์ ์œผ๋กœ ํ•ด๋‹น ์ฝ”๋ฉ˜ํŠธ ๋‚จ๊น๋‹ˆ๋‹ค.

oliviarla
oliviarla previously approved these changes May 2, 2024
brido4125
brido4125 previously approved these changes May 3, 2024
@uhm0311 uhm0311 dismissed stale reviews from brido4125 and oliviarla via 85a2073 May 8, 2024 06:51
@uhm0311 uhm0311 force-pushed the uhm0311/develop branch from a9559bb to 85a2073 Compare May 8, 2024 06:51
@uhm0311 uhm0311 force-pushed the uhm0311/develop branch from 85a2073 to d520ae8 Compare May 8, 2024 06:57
@uhm0311 uhm0311 self-assigned this May 9, 2024
return Collections.unmodifiableCollection(delayedClosingNodes);
}

public void updateDelayedClosingNodes(Collection<MemcachedNode> closedNodes) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

๋ฉ”์„œ๋“œ๋ช…์„ removeDelayedClosedNodes ๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด ์–ด๋–ค๊ฐ€์š”?

Copy link
Collaborator

@brido4125 brido4125 left a comment

Choose a reason for hiding this comment

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

delete ๋Œ€์ƒ์ธ ๋…ธ๋“œ๋“ค์„ Locator ๋‹จ์—์„œ ๊ตฌ๋ถ„ํ•˜๊ณ 
delayedClosingNodes ๋˜ํ•œ Locator๊ฐ€ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

๊ทผ๋ฐ Locator์˜ ํด๋ž˜์Šค ์˜๋ฏธ๋ฅผ ์ƒ๊ฐํ•œ๋‹ค๋ฉด
ํ•œ๊ฐ€์ง€ ์ฑ…์ž„์„ ์ถ”๊ฐ€ํ•˜๋Š”๊ฒŒ ์ข‹์€ ์„ค๊ณ„๋Š” ์•„๋‹ˆ๋ผ๊ณ  ์ƒ๊ฐ๋ฉ๋‹ˆ๋‹ค.

์ฐจ๋ผ๋ฆฌ MemcachedConnection ์ชฝ์—์„œ update ๋˜๋Š” updateRepl์„
ํ˜ธ์ถœ ํ•  ๋•Œ delete ๋Œ€์ƒ์ด ๋˜๋Š” Collection์„ ๋„˜๊ธฐ๋‹ˆ
๊ทธ์ชฝ์—์„œ ์ฒ˜๋ฆฌํ•˜๋Š”๊ฑด ์–ด๋–ค๊ฐ€์š”?

@uhm0311
Copy link
Collaborator Author

uhm0311 commented Feb 24, 2025

@brido4125

์†Œ์ผ“ ์—ฐ๊ฒฐ์— ๋Œ€ํ•œ ํ•ด์ œ๋ฅผ ์ˆ˜ํ–‰ํ•˜๋Š” ๋ฉ”์†Œ๋“œ ํ˜ธ์ถœ(node.closeChannel())์ด ๋Œ€๋ถ€๋ถ„ NodeLocator ๋‚ด์— ์žˆ์–ด์„œ ๊ทธ๋ ‡๊ฒŒ ๋ถ„๋ฆฌํ•˜๊ธฐ๋Š” ํž˜๋“ค ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
PR์˜ ์˜๋„๋Š” ์†Œ์ผ“ ์—ฐ๊ฒฐ์„ ํ•ด์ œํ•˜๊ธฐ ์ „์— ์ •๋ง ํ•ด์ œํ•  ํ•„์š”๊ฐ€ ์žˆ๋Š”์ง€๋ฅผ ํ™•์ธํ•˜๋Š” ๊ฒƒ์ด๋ฏ€๋กœ ์†Œ์ผ“ ์—ฐ๊ฒฐ ํ•ด์ œ ๋กœ์ง๊ณผ ๊ฒฐํ•ฉ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

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.

4 participants