Skip to content

Commit ecc1e5a

Browse files
Version 0.0.29
1 parent 1b2d38e commit ecc1e5a

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

schema/oracle/ATLAS_PANDA.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ CREATE TABLE "ATLAS_PANDA"."JEDI_DATASET_LOCALITY"
203203
"BLACKLISTED_READ" CHAR(1 BYTE),
204204
"BLACKLISTED_WRITE" CHAR(1 BYTE),
205205
"SPACE_EXPIRED" NUMBER(11,0),
206-
"SPACE_TIMESTAMP" TIMESTAMP (0)
206+
"SPACE_TIMESTAMP" TIMESTAMP (0),
207+
"DETAILED_STATUS" CLOB
208+
CONSTRAINT detailed_status_is_json
209+
CHECK ("DETAILED_STATUS" IS JSON) ENABLE
207210
) ;
208211

209212
COMMENT ON COLUMN "ATLAS_PANDA"."DDM_ENDPOINT"."DDM_ENDPOINT_NAME" IS 'DDM endpoint name';
@@ -219,6 +222,7 @@ CREATE TABLE "ATLAS_PANDA"."JEDI_DATASET_LOCALITY"
219222
COMMENT ON COLUMN "ATLAS_PANDA"."DDM_ENDPOINT"."BLACKLISTED_WRITE" IS 'Defines whether a DDM endpoint is blacklisted for write (Y/N)';
220223
COMMENT ON COLUMN "ATLAS_PANDA"."DDM_ENDPOINT"."SPACE_EXPIRED" IS 'Expired, used space in GB';
221224
COMMENT ON COLUMN "ATLAS_PANDA"."DDM_ENDPOINT"."SPACE_TIMESTAMP" IS 'Timestamp reported by Rucio for the SRM space values';
225+
COMMENT ON COLUMN "ATLAS_PANDA"."DDM_ENDPOINT"."DETAILED_STATUS" IS 'Endpoint-specific detailed status (JSON)';
222226
COMMENT ON TABLE "ATLAS_PANDA"."DDM_ENDPOINT" IS 'DDM/Rucio storage endpoint.Table needed for the "Configurator" agent. The table consolidate information from other sources (AGIS and Rucio ) and caches it so that Panda can easily retrieve it and use it for brokerage.';
223227

224228

schema/postgres/sqls/patches/0.0.29.patch.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
-- patch to be used to upgrade from version 0.0.28
22
CREATE INDEX wn_metrics_timestamp_idx ON doma_panda.worker_node_metrics ("timestamp");
33

4+
ALTER TABLE doma_panda.ddm_endpoint
5+
ADD COLUMN IF NOT EXISTS detailed_status JSONB;
6+
7+
COMMENT ON COLUMN doma_panda.ddm_endpoint.detailed_status
8+
IS 'Endpoint-specific detailed status (JSON)';
9+
10+
411
-- Update schema version
512
UPDATE doma_panda.pandadb_version
613
SET major = 0, minor = 0, patch = 29

schema/postgres/sqls/pg_PANDA_TABLE.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ CREATE TABLE ddm_endpoint (
144144
space_expired bigint,
145145
space_timestamp timestamp,
146146
blacklisted_read char(1),
147-
blacklisted_write char(1)
147+
blacklisted_write char(1),
148+
detailed_status JSONB
148149
) ;
149150
COMMENT ON TABLE ddm_endpoint IS E'DDM/Rucio storage endpoint.Table needed for the "Configurator" agent. The table consolidate information from other sources (AGIS and Rucio ) and caches it so that Panda can easily retrieve it and use it for brokerage.';
150151
COMMENT ON COLUMN ddm_endpoint.blacklisted IS E'Defines whether a DDM endpoint is blacklisted or not (Y/N)';
@@ -160,6 +161,7 @@ COMMENT ON COLUMN ddm_endpoint.space_timestamp IS E'Timestamp reported by Rucio
160161
COMMENT ON COLUMN ddm_endpoint.space_total IS E'Total space of a DDM endpoint as reported by Rucio. Value in GB';
161162
COMMENT ON COLUMN ddm_endpoint.space_used IS E'Used space of a DDM endpoint as reported by Rucio. Value in GB';
162163
COMMENT ON COLUMN ddm_endpoint.type IS E'Type of spacetoken, e.g. DATADISK, LOCALGROUPDISK...';
164+
COMMENT ON COLUMN ddm_endpoint.detailed_status IS 'Endpoint-specific detailed status (JSON)';
163165
ALTER TABLE ddm_endpoint OWNER TO panda;
164166
CREATE INDEX ddm_endpoint_site_name_idx ON ddm_endpoint (site_name);
165167
ALTER TABLE ddm_endpoint ADD PRIMARY KEY (ddm_endpoint_name);

0 commit comments

Comments
 (0)