batyrchary opened a new issue, #681:
URL: https://github.com/apache/iceberg-go/issues/681

   ### Apache Iceberg version
   
   main (development)
   
   ### Please describe the bug 🐞
   
   I believe this is related to a previously reported bug: #644 
   
   It looks like there were some fixes (#666 and #667 ) made for this issue 
   
   However, I am still seeing this issue 
   
   Below is my simplified transaction function. I have a single pod writing to 
an Iceberg table using Nessie as a REST catalog.
   
   And I am getting the following warning:
   
   > 2026/01/18 19:42:13 A blob.Writer writing to 
"u011720265/numberdpattrs_f030e24e-3c91-4a94-a323-35b3e176eac9/metadata/3ce12426-33ad-4b1f-ba33-5785663bd484-m2.avro"
 was never closed (github.com/apache/[email protected]/io/blob.go:178)
   
   it is followed by error:
   
   > time="2026-01-18T19:42:12Z" level=error msg="Error in appending 
recordReader to transaction (transaction) - blob (key 
"u011720265/numberdpattrs_f030e24e-3c91-4a94-a323-35b3e176eac9/metadata/b1f32157-1731-420b-90c9-7a206b029370-m2.avro")
 (code=NotFound): operation error S3: GetObject, https response error 
StatusCode: 404, RequestID: 
phx-1:ge7kLmOBIvlIQQCiYKKkzHJiQMQlc9QFybP4Tpzt9ug9K2zEMqSBANXyoPwBIxiG, HostID: 
, NoSuchKey: "
   
   I am using following function to make transaction.
   
   ```
   func transaction(ctx context.Context, dataTable *icebergtbl.Table, 
arrowSchema *arrow.Schema, arrowRecords []arrow.RecordBatch, icebergProperties 
iceberg.Properties) (*icebergtbl.Table, error) {
   
        txn := dataTable.NewTransaction()
   
        recordReader, err := array.NewRecordReader(arrowSchema, arrowRecords)
        if err != nil {
                log.Errorf("Error in creating new record reader (transaction) - 
%s", err)
                return nil, err
        }
        defer recordReader.Release()
   
        err = txn.Append(ctx, recordReader, icebergProperties)
        if err != nil {
                log.Errorf("Error in appending recordReader to transaction 
(transaction) - %s", err)
                return nil, err
        }
   
        dataTable, err = txn.Commit(ctx)
        if err != nil {
                log.Errorf("Error in committing to table (transaction)- %s", 
err)
                return nil, err
        }
        
        return dataTable, nil
   }
   ```
   
   
   Any suggestions ? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to