Skip to content
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

TEST: Add unit tests for MemcachedConnection.handleCacheNodesChange() method in replication mode. #851

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

uhm0311
Copy link
Collaborator

@uhm0311 uhm0311 commented Dec 11, 2024

๐Ÿ”— Related Issue

โŒจ๏ธ What I did

  • ๋ณต์ œ ๊ด€๋ จ ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง ์ง„ํ–‰ ์‹œ ๊ธฐ์กด ๋กœ์ง๊ณผ ๋‹ฌ๋ผ์ง„ ๊ฒฝ์šฐ๋ฅผ ๋กœ์ปฌ ๊ฐœ๋ฐœ ๋‹จ๊ณ„์—์„œ ๋ฐ”๋กœ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋„๋ก ๋‹จ์œ„ ํ…Œ์ŠคํŠธ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

brido4125
brido4125 previously approved these changes Dec 11, 2024
oliviarla
oliviarla previously approved these changes Dec 11, 2024
@uhm0311 uhm0311 requested a review from jhpark816 December 11, 2024 08:23
Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

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

๋ฆฌ๋ทฐ ์™„๋ฃŒ

assertEquals(2, locator.getAllGroups().size());

conn.setCacheNodesChange(ArcusReplNodeAddress.getAddresses(
"g0^M^127.0.0.4:11211,g0^S^127.0.0.3:11211,g1^M^127.0.0.2:11211,g1^S^127.0.0.1:11211"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

์ด๋ ‡๊ฒŒ switchover ๋ฐœ์ƒํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์—†์œผ๋‹ˆ, ์ด๋Ÿฌํ•œ ํ…Œ์ŠคํŠธ๋Š” ์—†์–ด๋„ ๋˜์ง€ ์•Š๋‚˜ ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

Copy link
Collaborator Author

@uhm0311 uhm0311 Dec 11, 2024

Choose a reason for hiding this comment

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

์ผ๋ถ€๋Ÿฌ ๋งŒ๋“  ์ผ€์ด์Šค์ด๋ฏ€๋กœ ๋ฉ”์†Œ๋“œ ์ด๋ฆ„์— edge case๋ฅผ ๋„ฃ๋Š” ๊ฒƒ์œผ๋กœ ์˜คํ”„๋ผ์ธ ํ•ฉ์˜ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

@jhpark816 jhpark816 merged commit 7b301af into naver:develop Dec 11, 2024
2 checks passed
@uhm0311 uhm0311 deleted the uhm0311/repl_test branch December 19, 2024 02:21
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