From eb8818494fb10fa6927fd9ef00bbef548d66dc6a Mon Sep 17 00:00:00 2001 From: djeon Date: Thu, 30 Oct 2025 16:24:46 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Fix:=20EventHub=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=A1=B0=EA=B1=B4=20=EC=88=98=EC=A0=95=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EC=8B=A4=EC=A0=9C=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EB=B0=9C?= =?UTF-8?q?=ED=96=89=20=ED=99=9C=EC=84=B1=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: - @ConditionalOnExpression의 SpEL 표현식 오류로 EventHubConfig가 활성화되지 않음 - NoOpEventPublisher가 대신 사용되어 Event Hub로 메시지가 발행되지 않음 해결: - @ConditionalOnProperty 사용으로 변경 - eventhub.connection-string 속성 존재 여부로 Bean 활성화 제어 영향: - EventHub 설정이 있을 때 EventHubPublisher가 정상 활성화됨 - 회의 시작/종료, Todo 할당 등의 이벤트가 Event Hub로 발행됨 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../com/unicorn/hgzero/meeting/infra/config/EventHubConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meeting/src/main/java/com/unicorn/hgzero/meeting/infra/config/EventHubConfig.java b/meeting/src/main/java/com/unicorn/hgzero/meeting/infra/config/EventHubConfig.java index cafbbf4..41d452d 100644 --- a/meeting/src/main/java/com/unicorn/hgzero/meeting/infra/config/EventHubConfig.java +++ b/meeting/src/main/java/com/unicorn/hgzero/meeting/infra/config/EventHubConfig.java @@ -15,7 +15,7 @@ import org.springframework.context.annotation.Configuration; */ @Configuration @Slf4j -@org.springframework.boot.autoconfigure.condition.ConditionalOnExpression("'${eventhub.connection-string:}'.length() > 0") +@ConditionalOnProperty(name = "eventhub.connection-string") public class EventHubConfig { @Value("${eventhub.connection-string}") From 9f1afa4f1da8a0b4c18c66bdefab6a778444ff93 Mon Sep 17 00:00:00 2001 From: djeon Date: Thu, 30 Oct 2025 16:30:00 +0900 Subject: [PATCH 2/2] feat: sessionId -> meetingId --- rag/src/services/eventhub_consumer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/src/services/eventhub_consumer.py b/rag/src/services/eventhub_consumer.py index 2b784ab6..dddc17f 100644 --- a/rag/src/services/eventhub_consumer.py +++ b/rag/src/services/eventhub_consumer.py @@ -294,7 +294,7 @@ class EventHubConsumer: # 7. SSE를 통해 결과 전송 # Event Hub 메시지에서 sessionId 추출 (여러 필드 확인) - session_id = event_data.get("sessionId") + session_id = event_data.get("meetingId") # front 요청(회의 주최자만 확인 가능 이슈)으로 이벤트의 sessionId 기준이 아닌 meetingId 기준으로 SSE 연동 # session_id = event_data.get("sessionId") or event_data.get("session_id") or event_data.get("meetingId") or meeting_id logger.info(f"SSE 전송 시도: sessionId={session_id}, meetingId={meeting_id}")