Skip to content

Commit 2e8baa6

Browse files
dbshah12claude
andcommitted
DLPX-96312 Persist InfluxDB bucket IDs in influxdb_meta
delphix-influxdb-init already knows both bucket IDs (it just created them via /api/v2/setup and /api/v2/buckets). Persist them into /etc/influxdb/influxdb_meta as INFLUXDB_BUCKET_ID and INFLUXDB_SUPPORT_BUCKET_ID so callers (support_info, future tooling) can look up either bucket without having to scan the engine data directory. This avoids a class of bugs where a scan-the-data-dir heuristic returns the wrong bucket on engines that contain more than just default and support_metrics — notably InfluxDB's internal _monitoring bucket, which alphabetically sorts ahead of support_metrics by hex bucket ID on this engine and was being silently substituted in every bundle. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ae889c5 commit 2e8baa6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

influxdb/delphix-influxdb-init

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ tmp_meta="$(mktemp "${INFLUXDB_META_FILE}.XXXXXX")"
259259
cat >"$tmp_meta" <<EOF
260260
INFLUXDB_ORG=$INFLUXDB_ORG
261261
INFLUXDB_BUCKET=$INFLUXDB_BUCKET
262+
INFLUXDB_BUCKET_ID=$BUCKET_ID
262263
INFLUXDB_SUPPORT_BUCKET=$INFLUXDB_SUPPORT_BUCKET
264+
INFLUXDB_SUPPORT_BUCKET_ID=$SUPPORT_BUCKET_ID
263265
INFLUXDB_ADMIN_USER=$INFLUXDB_ADMIN_USER
264266
INFLUXDB_ADMIN_PASSWORD=$INFLUXDB_ADMIN_PASSWORD
265267
INFLUXDB_WRITE_TOKEN=$WRITE_TOKEN

0 commit comments

Comments
 (0)