This is an automated email from the ASF dual-hosted git repository.

curth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new b7345f0ac fix(csharp/src/Telemetry/Traces/Listeners/FileListener): 
ensure to flush to file on each line (#4175)
b7345f0ac is described below

commit b7345f0ac47383ea8b8f1926ad4caeb8bb59eb79
Author: Bruce Irschick <[email protected]>
AuthorDate: Thu Apr 2 16:03:51 2026 -0700

    fix(csharp/src/Telemetry/Traces/Listeners/FileListener): ensure to flush to 
file on each line (#4175)
    
    Corrects a bug where the file was not flush, as intended, for each line.
---
 csharp/src/Telemetry/Traces/Listeners/FileListener/TracingFile.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/csharp/src/Telemetry/Traces/Listeners/FileListener/TracingFile.cs 
b/csharp/src/Telemetry/Traces/Listeners/FileListener/TracingFile.cs
index a6679bf4d..d9c8e15c3 100644
--- a/csharp/src/Telemetry/Traces/Listeners/FileListener/TracingFile.cs
+++ b/csharp/src/Telemetry/Traces/Listeners/FileListener/TracingFile.cs
@@ -127,7 +127,7 @@ namespace 
Apache.Arrow.Adbc.Telemetry.Traces.Listeners.FileListener
             }
             await stream.CopyToAsync(_currentFileStream).ConfigureAwait(false);
             // Flush for robustness to crashing
-            await stream.FlushAsync().ConfigureAwait(false);
+            await _currentFileStream.FlushAsync().ConfigureAwait(false);
         }
 
         private async Task OpenNewTracingFileAsync()

Reply via email to