Skip to content

[-] move to next envelope in Postgres sink if COPY fails, fixes #908#911

Merged
pashagolub merged 3 commits intomasterfrom
908-panic-copy-postgres-sink
Aug 27, 2025
Merged

[-] move to next envelope in Postgres sink if COPY fails, fixes #908#911
pashagolub merged 3 commits intomasterfrom
908-panic-copy-postgres-sink

Conversation

@pashagolub
Copy link
Copy Markdown
Collaborator

When COPY fails sometimes copyFromMeasurements.measurementIdx is not incremented pointing to the measurement in the current envelope. But the loop awaits a next envelope and call to
copyFromMeasurements.MetricName() tries to read
the element beyond the limit.

When COPY fails sometimes `copyFromMeasurements.measurementIdx` is not
incremented pointing to the measurement in the current envelope.
But the loop awaits a next envelope and call to
`copyFromMeasurements.MetricName()` tries to read
the element beyond the limit.
@pashagolub pashagolub self-assigned this Aug 27, 2025
@pashagolub pashagolub added bug Something isn't working sinks Where and how to store monitored data labels Aug 27, 2025
@coveralls
Copy link
Copy Markdown

coveralls commented Aug 27, 2025

Pull Request Test Coverage Report for Build 17266774517

Details

  • 14 of 14 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 64.095%

Totals Coverage Status
Change from base Build 17242816453: 0.03%
Covered Lines: 3215
Relevant Lines: 5016

💛 - Coveralls

@pashagolub pashagolub merged commit c589f69 into master Aug 27, 2025
9 checks passed
@pashagolub pashagolub deleted the 908-panic-copy-postgres-sink branch August 27, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working sinks Where and how to store monitored data

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panic: runtime error: index out of range [6] when COPY encounters NaN value from get_psutil_mem()

2 participants