일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 티스토리챌린지
- 코루틴 빌더
- python
- 달인막창
- tolerated
- 깡돼후
- k8s #kubernetes #쿠버네티스
- 헥사고날아키텍처 #육각형아키텍처 #유스케이스
- taint
- pytest
- table not found
- kotlin
- JanusWebRTC
- 오블완
- VARCHAR (1)
- Spring Batch
- 개성국밥
- mp4fpsmod
- JanusGateway
- 코루틴 컨텍스트
- JanusWebRTCGateway
- 자원부족
- 겨울 부산
- Value too long for column
- PersistenceContext
- JanusWebRTCServer
- terminal
- PytestPluginManager
- preemption #
- vfr video
너와 나의 스토리
에러 메시지: Failed to start bean 'schedulerFactoryBean'; nested exception is org.springframework.scheduling.SchedulingException: Could not start Quartz Scheduler; nested exception is org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: Table "QRTZ_LOCKS" not found; SQL statement: SE..

kotlinx.coroutines.CoroutineScope.async async는 사실상 launch와 같은 일을 한다. 유일한 차이는 launch가 Job을 반환하는 반면 async는 Deffered를 반환한다는 점뿐이다. 심지어 Deffered는 Job을 상속한 클래스이기 때문에 launch 대신 async를 사용해도 아무 문제 없다. async는 코드 블록을 비동기로 실행할 수 있다. async가 반환하는 Deffered의 await을 사용해서 코루틴이 결과 값을 내놓을 때까지 기다렸다가 결과값을 얻어낼 수 있다. Deffered vs Job Job 타입 파라미터가 없음 Deffered 타입 파라미터가 있는 제네릭 타입 Deffered 안에는 await() 함수가 정의되어 있다. Deffered의..
pytest 에러 발생 AttributeError: 'PytestPluginManager' object has no attribute 'addhooks' pytest-html에서도 문제가 생겼어서 재설치하고 pytest-xdist도 업데이트하고... https://github.com/pytest-dev/pytest/issues/7658 삽질을 했지만 해결되지 않음.. error message만 달라질 뿐 해결 방법 python 버전이 3.9였었는데 최신 버전인 3.10으로 업데이트하고 requirement 재설치하니까 문제 해결됨 ㅎㅎ
인증서 만료일 확인 kubectl get secret ${secretName} -n ${namespace} -o "jsonpath={.data['tls\.crt']}" | base64 -d | openssl x509 -enddate -noout 인증서 갱신 인증서(~crt.pem, ~key.prm)가 저장된 폴더로 이동 kubectl create secret tls ${secret_name} --key ${tls_key_file_name} --cert ${tls_cert_file_name} -n ${namespace} --dry-run -o yaml | kubectl apply -f-
@Entity @Table(name = "user") public class UserEntity{ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "name", nullable = false) private String name; @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true) @JoinColumn(name = "user_id") private Set jobs; //... } @Entity @Table(name = "job") public class JobEntity { @Id @Generate..
Kotlin 사이트에 나와있는 내용을 기반으로 번역 및 추가 내용을 정리하였습니다. Class Layout class의 내용은 다음 순서로 정의돼야 합니다. Property 선언과 initializer blocks Secondary constructors Method 선언 Companion Object class Layout() { // Property var name = "name" val age: Int // Initializer block init { age = 20 } // Secondary constructors constructor(_name: String) : this() { name = _name } // Companion object companion object { private con..
takeIf If문이랑 비슷한 역할이다. 조건에 해당되면 해당 값을, 조건에 맞지 않으면 null을 리턴한다. 리턴 값이 Boolean인 함수를 인자로 받는다. 예: input에 "hi" 문자열이 포함된 경우 input 리턴, 포함되지 않은 경우 null 리턴 input.takeIf { input.contains("hi") } takeUnless takeIf의 반대. 조건에 해당되면 null을 반환하고, 조건에 맞지 않으면 해당 값을 리턴. 리턴 값이 Boolean인 함수를 인자로 받는다. 예: input이 (null 또는 빈 칸)이 아닌 경우 input 리턴, (null 또는 빈 칸)인 경우 null 리턴 input.takeUnless { input.isNullOrBlank() }

Custom Error Response 보내는 방법 https://hororolol.tistory.com/649 [Spring] @ControllerAdvice를 이용하여 exception handling - Custom Error Response 보내기 & message를 포함한 error res Exception Handler Rest API로 받은 요청을 처리하다가 exception이 발생하는 경우가 있다. 이러한 exception들을 한 곳에서 처리하도록 ExceptionHandler를 만들어보자. @ControllerAdvice에 있는 메서드들은 모.. hororolol.tistory.com RestTemplate에서 다음과 같은 custom response로 응답이 온다고 하자. Respon..