Skip to content

[HCR-421] v1.1.2#67

Merged
rettooo merged 1 commit into
mainfrom
hotfix/HSC-421
Mar 31, 2026
Merged

[HCR-421] v1.1.2#67
rettooo merged 1 commit into
mainfrom
hotfix/HSC-421

Conversation

@rettooo
Copy link
Copy Markdown
Contributor

@rettooo rettooo commented Mar 31, 2026

📝작업 내용


👀변경 사항


🎫 Jira Ticket

  • Jira Ticket: HCR-421

#️⃣관련 이슈

@github-actions github-actions Bot added Customer Team deploy:intelligence-server release:patch 버전 patch bump: X.Y.(Z+1) ☁️ area: INFRA 인프라/운영/배포 영역 🏷️ release 릴리즈 준비/버전 태깅/릴리즈 노트/릴리즈 브랜치 작업 🔥 priority: P0 즉시 처리 필요(서비스/데모 블로커) 🗂️ area: BE 백엔드 영역 🚑 hotfix 프로덕션 긴급 수정(우회/긴급 패치 포함) labels Mar 31, 2026
@github-actions github-actions Bot changed the title v1.1.2 [HCR-421] v1.1.2 Mar 31, 2026
@rettooo rettooo merged commit 74a61ee into main Mar 31, 2026
5 checks passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Kafka payload in the recommendation service to include a traceId. A critical issue was identified where the trace_id variable is referenced but not defined or passed as a parameter to the function, which will cause a NameError at runtime.

logger.warning("recommendation: Kafka 미설정, 발행 스킵 member_id=%s", member_id)
return
payload = {"memberId": member_id, **response.model_dump(by_alias=True)}
payload = {"traceId": trace_id, "memberId": member_id, **response.model_dump(by_alias=True)}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

trace_id 변수가 정의되지 않았습니다. publish_recommendation_to_kafka 함수 내에서 trace_id를 참조하고 있으나, 매개변수로 전달받지 않았으며 해당 스코프 내에 정의되어 있지 않습니다. 이 코드는 실행 시 NameError를 유발하므로, 함수의 인자로 trace_id를 추가하거나 적절한 값을 할당해야 합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🗂️ area: BE 백엔드 영역 ☁️ area: INFRA 인프라/운영/배포 영역 Customer Team deploy:intelligence-server 🚑 hotfix 프로덕션 긴급 수정(우회/긴급 패치 포함) 🔥 priority: P0 즉시 처리 필요(서비스/데모 블로커) release:patch 버전 patch bump: X.Y.(Z+1) 🏷️ release 릴리즈 준비/버전 태깅/릴리즈 노트/릴리즈 브랜치 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant