ferhatelmas commented on code in PR #667:
URL: https://github.com/apache/iceberg-go/pull/667#discussion_r2670515019


##########
table/snapshot_producers.go:
##########
@@ -260,11 +262,12 @@ func (m *manifestMergeManager) groupBySpec(manifests 
[]iceberg.ManifestFile) map
        return groups
 }
 
-func (m *manifestMergeManager) createManifest(specID int, bin 
[]iceberg.ManifestFile) (iceberg.ManifestFile, error) {
+func (m *manifestMergeManager) createManifest(specID int, bin 
[]iceberg.ManifestFile) (mf iceberg.ManifestFile, err error) {
        wr, path, counter, err := m.snap.newManifestWriter(m.snap.spec(specID))
        if err != nil {
                return nil, err
        }
+       defer internal.CheckedClose(wr, &err)

Review Comment:
   I reviewed for the pattern if there were more and found a few more cases. 
Fixed and added a regression test, should be good to go now. Marking ready 



-- 
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