You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by GitBox <gi...@apache.org> on 2026/09/07 07:00:55 UTC
[GH] (pekko-persistence-jdbc/main): Workflow run "SqlServer Integration Tests" failed!
The GitHub Actions job "SqlServer Integration Tests" on pekko-persistence-jdbc.git/main has failed.
Run started by GitHub user pjfanning (triggered by pjfanning).
Head commit for run:
83f76bfe9d7b7dc0281432c6f1299bc5d526e4f8 / PJ Fanning <pj...@users.noreply.github.com>
Close the blob streams that snapshot payloads are read from (#607)
Motivation:
The Oracle snapshot column mapping converts a blob with
`blob.getBinaryStream.toArray`. `InputStreamOps.toArray` reads the stream to the
end but never closes it, and neither does the call site, so every snapshot that
is read from Oracle leaves a stream open. The stream is backed by driver
resources (a cursor or a temporary lob) that are only released when the
connection is returned or the garbage collector runs.
Modification:
Added `BlobOps.toArray`, which reads the blob and closes the stream in a
`finally` block, and used it in both the current and the legacy snapshot tables.
Result:
Reading snapshots from Oracle no longer leaks a stream per row.
Tests:
- sbt "core/testOnly org.apache.pekko.persistence.jdbc.util.BlobOpsSpec" - passed
- sbt "core/testOnly *H2*Snapshot*" - passed
- sbt "core/mimaReportBinaryIssues" - passed
- scalafmt --mode diff-ref=upstream/main - no changes
References:
None - found while reviewing the main sources for resource leaks
Report URL: https://github.com/apache/pekko-persistence-jdbc/actions/runs/34093026922
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org