Alan Boshier
05/20/2024, 1:25 PM2.96.0.0 and have hit an error trying to delete an integration between 2 pacticipants via the broker UI:
Could not delete resources due to error: An error has occurred. The details have been logged with the reference QkphWxELnm
Error reference: QkphWxELnm
I'm looking in the pact broker logs for some matching reference but can't see anything.
I've not had a problem deleting integrations before. Any clues as to how to investigate further would be most welcome.Matt (pactflow.io / pact-js / pact-go)
Alan Boshier
05/21/2024, 7:05 AMMatt (pactflow.io / pact-js / pact-go)
Alan Boshier
05/21/2024, 7:06 AMAlan Boshier
05/21/2024, 7:08 AMMatt (pactflow.io / pact-js / pact-go)
Alan Boshier
05/21/2024, 8:03 AMAlan Boshier
05/21/2024, 8:05 AMspec:
containers:
- env:
- name: DATASOURCE_HOST
value: ****
- name: DATASOURCE_PORT
value: "5432"
- name: DATASOURCE_USERNAME
valueFrom:
secretKeyRef:
key: postgres_username
name: postgres-secrets
- name: DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
key: postgres_password
name: postgres-secrets
- name: PACT_BROKER_DATABASE_URL
value: postgres://$(DATASOURCE_USERNAME):$(DATASOURCE_PASSWORD)@$(DATASOURCE_HOST):$(DATASOURCE_PORT)/pact-broker
- name: PACT_BROKER_WEBHOOK_HOST_WHITELIST
value: ***
- name: PACT_BROKER_DISABLE_SSL_VERIFICATION
value: "true"
- name: PACT_BROKER_LOG_LEVEL
value: DEBUG
image: dius/pact-broker:2.96.0.0
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 9m
memory: 1372MiMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Alan Boshier
05/21/2024, 8:09 AM2.110.0Alan Boshier
05/21/2024, 1:42 PMPACT_BROKER_DATABASE_STATEMENT_TIMEOUT from the default (15) to 120 removed the error; seems like whatever an integration deletion is doing, when the tables get big enough it can struggle.Alan Boshier
05/21/2024, 1:45 PMMatt (pactflow.io / pact-js / pact-go)
Alan Boshier
05/22/2024, 8:28 AMwebhook_executions and triggered_webhooks are getting pretty big, and I'm not sure of the utility of keeping an ever-growing record of those things. But I would not be so foolhardy as to just remove rows at the SQL level.
Also having the ability to prune undeployed versions from deployed_versions in bulk would be good.
And without knowing the inner workings of the pb, the issues with SQL timeouts when deleting a "busy" pacticipant might be due to a combination of ever-growing tables and a lack of suitable SQL indexes, but that's just speculation on my part.