ORA-00604 hiding ORA-01013 when cancelling task

Aperta
#481 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
csharp
Ambito
backend, databases

Direzione di ricerca

Inizia riproducendo la cancellazione tramite ToListAsync(cancellationToken) con Oracle.EntityFrameworkCore 10.23.26200, .NET 10 e Oracle Database 19c. Verifica come il provider espone ORA-00604 e ORA-01013; il lavoro è completato quando la cancellazione è distinguibile come OperationCanceledException oppure espone una OracleException con il codice di errore 1013.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Hi,

To my understanding issues in this repo are a way to provide feedback on unexpected behavior in the Oracle.EntityFrameworkCore implementation, as it is not open source or has its own repository. If this is not the case please let me know.

This is related to an issue reported in the Oracle forum last year: Forum Entry
I am now facing the same, I am using:
Oracle.EntityFrameworkCore Version 10.23.26200
.net 10
Oracle db 19c (EF core with OracleSQLCompatibility.DatabaseVersion19)

When cancelling a long running Query via the CancellationToken given to ToListAsync(cancellationToken) an OracleException with ORA-00604 is thrown. The message text of the exception states that the actual Error encapsulated is ORA-01013. However the OracleException.InnerException is null.

It would be very helpful if the Oracle.EntityFrameworkCore would throw an OperationCanceledException or at least have an OracleException as InnerException that has ErrorCode 1013 so we can react properly, since cancelling long running queries is an expected behavior in our app while other errors during fetching data are not. Therefore it would be good if we can have a well defined distinction.

Thank you for your support.
BR Markus

Lingua principale
C#
Stelle
434
Fork
191
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di oracle/dotnet-db-samples

Tutte le issue di oracle/dotnet-db-samples

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.