fix: quote mc-observability DB name in InfluxDB init to handle hyphen#178
Merged
Conversation
fix(docker): 서비스 restart 정책 보강 및 MC_COST_OPTIMIZER_ 환경변수 통일
fix(docker): cb-spider/tumblebug 이미지 업데이트 및 observability healthcheck 조정
fix(iam): FE iframe URL scheme 분기 및 data-manager nginx timeout 보강
InfluxQL rejects unquoted identifiers containing hyphens. The image entrypoint ran `CREATE DATABASE mc-observability` without quotes, causing DB creation to fail and the container to become unhealthy. - Remove INFLUXDB_DB env var from mc-observability-influx and mc-observability-influx-2 to prevent the entrypoint from issuing an unquoted CREATE DATABASE. - Add `CREATE DATABASE "mc-observability"` (double-quoted) to init-database.sh so the DB is created correctly via the init script instead.
fix: quote mc-observability DB name in InfluxDB init to handle hyphen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
INFLUXDB_DB=mc-observability환경변수로 인해 InfluxDB 이미지 entrypoint가 시작 시CREATE DATABASE mc-observability(따옴표 없음)를 실행mc-observability-influx,mc-observability-influx-2두 서비스에서INFLUXDB_DB환경변수 제거init-database.sh에CREATE DATABASE "mc-observability"(큰따옴표 포함) 추가하여 init 스크립트에서 올바르게 생성Changed Files
conf/docker/docker-compose.yaml—INFLUXDB_DB제거 (2곳)conf/docker/conf/mc-observability/influxdb/influxdb_init/init-database.sh— quoted DB 생성 추가