Cancelling a query (e.g. by cancelling the context passed to one of the query methods) during a call to the Scan method of the returned Rows can result in unexpected results if other queries are being made in parallel. This can result in a race condition that may overwrite the expected results with those of another query, causing the call to Scan to return either unexpected results from the other query or an error.
As noted in this issue in Go and its follow on links: https://github.com/golang/go/issues/74831 This appears to be addressed in Go v1.23.12, v1.24.7, and v1.25.0 and higher.
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.4 Extended Update Support Via RHSA-2025:19397 https://access.redhat.com/errata/RHSA-2025:19397
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.4 Extended Update Support Via RHSA-2025:19731 https://access.redhat.com/errata/RHSA-2025:19731
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2025:20909 https://access.redhat.com/errata/RHSA-2025:20909
This issue has been addressed in the following products: Red Hat Enterprise Linux 10 Via RHSA-2025:20983 https://access.redhat.com/errata/RHSA-2025:20983
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions Via RHSA-2025:21336 https://access.redhat.com/errata/RHSA-2025:21336
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Via RHSA-2025:21337 https://access.redhat.com/errata/RHSA-2025:21337
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.2 Advanced Update Support Via RHSA-2025:21383 https://access.redhat.com/errata/RHSA-2025:21383
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support Via RHSA-2025:21385 https://access.redhat.com/errata/RHSA-2025:21385
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Red Hat Enterprise Linux 8.8 Telecommunications Update Service Via RHSA-2025:21382 https://access.redhat.com/errata/RHSA-2025:21382
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions Red Hat Enterprise Linux 8.6 Telecommunications Update Service Via RHSA-2025:21384 https://access.redhat.com/errata/RHSA-2025:21384
This issue has been addressed in the following products: Cryostat 4 on RHEL 9 Via RHSA-2025:21148 https://access.redhat.com/errata/RHSA-2025:21148