Skip to content

잠금 대기 테스트 helper의 innodb_trx 폴링 간격을 캐시 주기보다 길게 #584

Open

Description

@chanwoo7

근거

  • refresh-session.repository.spec.ts의 waitForLockWait가 information_schema.innodb_trx를 20ms 간격으로 읽는다. InnoDB는 직전 읽기 뒤 100ms 안에는 이 캐시를 다시 채우지 않아서, 첫 읽기가 잠금 대기보다 먼저 일어나면 끝까지 대기를 못 볼 수 있다(feat: 노쇼 처리와 주문 자동 전이 크론, 관리자 픽업 완료 #583 작업 중 같은 패턴으로 재현).
  • 테스트 컨테이너는 performance_schema=OFF라 data_lock_waits도 쓸 수 없다.

제안

  • 폴링 간격을 150ms로 늘린다(픽업 변경 spec이 그렇게 했다). 같은 helper를 쓰는 다른 spec도 함께 맞춘다.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🧱 Tech Debt기술 부채 / 추후 마이그레이션 필요

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions