Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Caution Review failedThe pull request is closed. WalkthroughAdds a Spring Boot setting to enable virtual threads and updates sign-up validation: introduces an Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant Controller as SignUpController
participant Processor as SignUpAccountStepProcessor
participant Repo as UserRepository
Note over Processor: New validation branching
Client->>Controller: signUpRequest
Controller->>Processor: validateForNewSignUp(request)
Processor->>Repo: findByLoginId/login identifiers
Repo-->>Processor: existingUser (if any)
alt existingUser is Kakao
Processor-->>Controller: throw KAKAO_DUPLICATED (error)
else existingUser is pending and mosu-backed
Processor-->>Controller: throw USER_ALREADY_EXISTS (error)
else no conflicting existingUser
Processor->>Repo: existsByLoginId(...) (final check)
Repo-->>Processor: exists? -> continue
end
Controller-->>Client: success / error response
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Possibly related PRs
Suggested labels
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Summary of Changes
Hello @wlgns12370, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
이 Pull Request는 애플리케이션의 성능 최적화를 목표로 가상 쓰레드 기능을 활성화합니다. 특히 CPU 사용량이 낮고 응답 시간이 높은 작업에서 효율성을 높여 전반적인 시스템 반응성을 개선하는 데 중점을 둡니다.
Highlights
- 가상 쓰레드 활성화:
application-base.yml파일에spring.threads.virtual.enabled: true설정을 추가하여 Spring Boot 애플리케이션에서 가상 쓰레드 기능을 활성화합니다.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
| Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Code Review
가상 쓰레드를 활성화하여 I/O 중심 작업의 성능을 개선하려는 좋은 변경입니다. 이 변경으로 애플리케이션의 동시 처리 능력이 향상될 것으로 기대됩니다.
다만, 가상 쓰레드를 도입하면서 함께 고려해야 할 몇 가지 사항에 대해 리뷰 코멘트를 남겼습니다. 데이터베이스 커넥션 풀 크기 조정과 비동기 작업(@Async)에 대한 쓰레드 풀 설정이 가상 쓰레드와 함께 올바르게 동작하는지 확인이 필요해 보입니다. 자세한 내용은 파일 리뷰를 참고해 주세요.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (3)
src/main/resources/application-base.yml (3)
13-16: Capacity tuning follow-up (DB pool, servlet threads, timeouts).Virtual threads raise concurrency; ensure downstream limits are sane:
- HikariCP is capped at 15; watch acquisition timeouts and DB saturation before increasing.
- If using Tomcat, consider lowering max worker threads (platform threads still exist) once load-tested.
- Validate request and async timeouts so massively concurrent work doesn’t pile up.
If you want, I can suggest profile-specific overrides (e.g., a lower server thread cap for dev/stage) after we confirm the runtime stack (Tomcat/Jetty/Undertow) and current load test results.
68-71: Verify redis.port env var name.
port: ${VELKEY_PORT}looks unusual alongsidespring.data.redis.*. If this isn’t intentional, it may need to be${REDIS_PORT}(or another redis-specific env).
13-16: Review of Virtual Thread Pinning and Context PropagationOptional refactoring suggestion—no critical blockers found.
- Pinning hotspots: No occurrences of
synchronized (…)orReentrantLockaround potentially blocking calls were detected in production code.- Custom executors: The only explicit thread pools are in tests (
IpRateLimitingFilterMultiUserIsolationTest.java), so production paths will use Spring Boot’s configured virtual-thread executor.- Context propagation: We do see
SecurityContextHolderusages in controllers (MyUserController), filters (TokenFilter,KmcTokenProcessingFilter), and argument resolvers (PhoneNumberArgumentResolver,UserIdArgumentResolver). If you introduce any@Asyncor@Scheduledtasks backed by the virtual-thread executor, ensure the security context (and any ThreadLocals/MDC you introduce later) is propagated—e.g. via Spring’sDelegatingSecurityContextExecutororSecurityContextTaskDecorator.Given there are no urgent pinning or custom-executor issues, this remains an optional refactor to harden context propagation under virtual threads.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
src/main/resources/application-base.yml(1 hunks)
🔇 Additional comments (1)
src/main/resources/application-base.yml (1)
13-16: Virtual Threads Flag Verified
- Spring Boot is pinned to version 3.4.5 (build.gradle line 3), which is ≥ 3.2.0.
- The Java toolchain is configured for Java 21 (build.gradle line 13).
- I didn’t locate any Dockerfiles using Temurin or OpenJDK base images—if you are containerizing, please ensure your images also run on Java 21+.
With those requirements met, the
threads.virtual.enabled: truesetting insrc/main/resources/application-base.ymlwill be effective.
✨ 구현한 기능
CPU Bound작업이 낮고ResponseTime이 높기때문에 활성화📢 논의하고 싶은 내용
🎸 기타
Summary by CodeRabbit