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

github-actions[bot] pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/iceberg-go.git


The following commit(s) were added to refs/heads/gh-pages by this push:
     new cd4da9a61 deploy: e6d7a447d8dedf8184155d0b22b2e88b62c719bc
cd4da9a61 is described below

commit cd4da9a615d88564ab46a906e5245ff1c5433ee8
Author: laskoviymishka <[email protected]>
AuthorDate: Thu Nov 26 07:56:28 2026 +0000

    deploy: e6d7a447d8dedf8184155d0b22b2e88b62c719bc
---
 api.html         | 19 +++++++++++++++++++
 cli.html         |  4 ++++
 print.html       | 26 ++++++++++++++++++++++++++
 releases.html    |  3 +++
 searchindex.js   |  2 +-
 searchindex.json |  2 +-
 6 files changed, 54 insertions(+), 2 deletions(-)

diff --git a/api.html b/api.html
index ea5d05f96..07c2082b7 100644
--- a/api.html
+++ b/api.html
@@ -916,6 +916,25 @@ if err != nil { /* ... */ }
 fmt.Printf(&quot;removed %d files\n&quot;, len(result.DeletedFiles))
 </code></pre>
 <p>Also see <code>maintenance.WithCleanupLocation</code>, 
<code>maintenance.WithCleanupDeleteFunc</code>, 
<code>maintenance.WithPrefixMismatchMode</code>, 
<code>maintenance.WithEqualSchemes</code>, and 
<code>maintenance.WithEqualAuthorities</code> in 
<code>table/maintenance/orphan_cleanup.go</code>.</p>
+<p>Use <code>maintenance.PlanOrphanFiles</code> to inspect candidates before 
passing the
+plan to <code>maintenance.ExecuteOrphanCleanup</code>. Execution deletes 
exactly the
+planned files without rescanning. <code>maintenance.DeleteOrphanFiles</code> 
combines
+planning and deletion and also supports dry runs. The default minimum file
+age is 72 hours.</p>
+<p><strong>Safety:</strong> All three orphan-cleanup entry points, including 
dry runs, reject
+<code>gc.enabled=false</code> and tables loaded by REST with
+<code>snapshot-loading-mode=refs</code>. Refs-only metadata can omit snapshots 
whose
+files are still live. Both checks run before filesystem access. A refs-only
+error matches <code>table.ErrInvalidOperation</code> through 
<code>errors.Is</code>.</p>
+<p>Create the REST catalog with <code>snapshot-loading-mode=all</code> (or 
omit the
+property), for example using <code>rest.WithAdditionalProps</code>, then 
reload the
+table before cleanup. A one-time <code>LoadTableWithFullSnapshotHistory</code> 
load is
+enough for planning and dry runs. Deletion refreshes the table using the
+catalog's configured mode, so its regular loads must also return full
+history. A server override that forces <code>refs</code> prevents deletion.
+<code>maintenance.PurgeFiles</code>, used when dropping a table, is not 
subject to
+this restriction; best-effort purge may miss files outside the table
+location that were omitted from refs-only metadata.</p>
 <h3 id="compaction-rewrite-data-files"><a class="header" 
href="#compaction-rewrite-data-files">Compaction (rewrite data files)</a></h3>
 <pre><code class="language-go">import 
&quot;github.com/apache/iceberg-go/table&quot;
 
diff --git a/cli.html b/cli.html
index bacbc2a00..312d9627a 100644
--- a/cli.html
+++ b/cli.html
@@ -410,6 +410,10 @@ The catalog's snapshot loading mode still applies to other 
commands.</p>
 iceberg clean-orphan-files --older-than 5d my_db.events
 iceberg clean-orphan-files --location s3://old-warehouse/my_db/events 
my_db.events
 </code></pre>
+<p>Orphan cleanup, including <code>--dry-run</code>, requires complete 
snapshot history and
+<code>gc.enabled=true</code>. The CLI uses the REST server's snapshot-loading 
settings.
+If the server uses <code>snapshot-loading-mode=refs</code>, configure it to use
+<code>snapshot-loading-mode=all</code> before running cleanup.</p>
 <h2 id="file-maintenance"><a class="header" href="#file-maintenance">File 
maintenance</a></h2>
 <h3 id="data-file-compaction"><a class="header" 
href="#data-file-compaction">Data-file compaction</a></h3>
 <p>Preview the groups that compaction would rewrite with <code>compact 
analyze</code>.
diff --git a/print.html b/print.html
index 0ba23f0f6..f2a225ef4 100644
--- a/print.html
+++ b/print.html
@@ -1242,6 +1242,10 @@ The catalog's snapshot loading mode still applies to 
other commands.</p>
 iceberg clean-orphan-files --older-than 5d my_db.events
 iceberg clean-orphan-files --location s3://old-warehouse/my_db/events 
my_db.events
 </code></pre>
+<p>Orphan cleanup, including <code>--dry-run</code>, requires complete 
snapshot history and
+<code>gc.enabled=true</code>. The CLI uses the REST server's snapshot-loading 
settings.
+If the server uses <code>snapshot-loading-mode=refs</code>, configure it to use
+<code>snapshot-loading-mode=all</code> before running cleanup.</p>
 <h2 id="file-maintenance"><a class="header" href="#file-maintenance">File 
maintenance</a></h2>
 <h3 id="data-file-compaction"><a class="header" 
href="#data-file-compaction">Data-file compaction</a></h3>
 <p>Preview the groups that compaction would rewrite with <code>compact 
analyze</code>.
@@ -2073,6 +2077,25 @@ if err != nil { /* ... */ }
 fmt.Printf(&quot;removed %d files\n&quot;, len(result.DeletedFiles))
 </code></pre>
 <p>Also see <code>maintenance.WithCleanupLocation</code>, 
<code>maintenance.WithCleanupDeleteFunc</code>, 
<code>maintenance.WithPrefixMismatchMode</code>, 
<code>maintenance.WithEqualSchemes</code>, and 
<code>maintenance.WithEqualAuthorities</code> in 
<code>table/maintenance/orphan_cleanup.go</code>.</p>
+<p>Use <code>maintenance.PlanOrphanFiles</code> to inspect candidates before 
passing the
+plan to <code>maintenance.ExecuteOrphanCleanup</code>. Execution deletes 
exactly the
+planned files without rescanning. <code>maintenance.DeleteOrphanFiles</code> 
combines
+planning and deletion and also supports dry runs. The default minimum file
+age is 72 hours.</p>
+<p><strong>Safety:</strong> All three orphan-cleanup entry points, including 
dry runs, reject
+<code>gc.enabled=false</code> and tables loaded by REST with
+<code>snapshot-loading-mode=refs</code>. Refs-only metadata can omit snapshots 
whose
+files are still live. Both checks run before filesystem access. A refs-only
+error matches <code>table.ErrInvalidOperation</code> through 
<code>errors.Is</code>.</p>
+<p>Create the REST catalog with <code>snapshot-loading-mode=all</code> (or 
omit the
+property), for example using <code>rest.WithAdditionalProps</code>, then 
reload the
+table before cleanup. A one-time <code>LoadTableWithFullSnapshotHistory</code> 
load is
+enough for planning and dry runs. Deletion refreshes the table using the
+catalog's configured mode, so its regular loads must also return full
+history. A server override that forces <code>refs</code> prevents deletion.
+<code>maintenance.PurgeFiles</code>, used when dropping a table, is not 
subject to
+this restriction; best-effort purge may miss files outside the table
+location that were omitted from refs-only metadata.</p>
 <h3 id="compaction-rewrite-data-files"><a class="header" 
href="#compaction-rewrite-data-files">Compaction (rewrite data files)</a></h3>
 <pre><code class="language-go">import 
&quot;github.com/apache/iceberg-go/table&quot;
 
@@ -3318,6 +3341,9 @@ make integration-external-rest
 <p><strong>Orphan cleanup now rejects <code>gc.enabled=false</code>.</strong> 
<code>DeleteOrphanFiles</code>, <code>PlanOrphanFiles</code>, 
<code>ExecuteOrphanCleanup</code>, and dry runs now return an error before 
filesystem access. The <code>iceberg clean-orphan-files</code> command is also 
affected.</p>
 </li>
 <li>
+<p><strong>Orphan cleanup requires complete snapshot history.</strong> 
<code>DeleteOrphanFiles</code>, <code>PlanOrphanFiles</code>, 
<code>ExecuteOrphanCleanup</code>, dry runs, and <code>iceberg 
clean-orphan-files</code> now reject tables loaded with REST 
<code>snapshot-loading-mode=refs</code>, returning an error wrapping 
<code>table.ErrInvalidOperation</code>. Configure the REST catalog with 
<code>snapshot-loading-mode=all</code> (or omit it) and reload the table; a 
server override th [...]
+</li>
+<li>
 <p><strong>Partition specs reject source types a transform cannot 
handle.</strong> Creating or updating a spec with an incompatible source, such 
as <code>day(string)</code>, now fails. Writes to existing incompatible specs 
return <code>ErrInvalidTransform</code> instead of writing null partition 
values.</p>
 </li>
 <li>
diff --git a/releases.html b/releases.html
index ec62495c5..44b6b680b 100644
--- a/releases.html
+++ b/releases.html
@@ -264,6 +264,9 @@
 <p><strong>Orphan cleanup now rejects <code>gc.enabled=false</code>.</strong> 
<code>DeleteOrphanFiles</code>, <code>PlanOrphanFiles</code>, 
<code>ExecuteOrphanCleanup</code>, and dry runs now return an error before 
filesystem access. The <code>iceberg clean-orphan-files</code> command is also 
affected.</p>
 </li>
 <li>
+<p><strong>Orphan cleanup requires complete snapshot history.</strong> 
<code>DeleteOrphanFiles</code>, <code>PlanOrphanFiles</code>, 
<code>ExecuteOrphanCleanup</code>, dry runs, and <code>iceberg 
clean-orphan-files</code> now reject tables loaded with REST 
<code>snapshot-loading-mode=refs</code>, returning an error wrapping 
<code>table.ErrInvalidOperation</code>. Configure the REST catalog with 
<code>snapshot-loading-mode=all</code> (or omit it) and reload the table; a 
server override th [...]
+</li>
+<li>
 <p><strong>Partition specs reject source types a transform cannot 
handle.</strong> Creating or updating a spec with an incompatible source, such 
as <code>day(string)</code>, now fails. Writes to existing incompatible specs 
return <code>ErrInvalidTransform</code> instead of writing null partition 
values.</p>
 </li>
 <li>
diff --git a/searchindex.js b/searchindex.js
index ff493a0e3..3a5abc963 100644
--- a/searchindex.js
+++ b/searchindex.js
@@ -1 +1 @@
-Object.assign(window.search, 
{"doc_urls":["introduction.html#iceberg-go","introduction.html#where-to-start","introduction.html#what-works-today","introduction.html#beyond-go","introduction.html#help-and-contribution","install.html#install","install.html#go-library","install.html#cli","getting-started.html#getting-started","getting-started.html#install","getting-started.html#create-write-and-read-a-table","getting-started.html#where-to-go-next","configuration.html#configuration","configur
 [...]
\ No newline at end of file
+Object.assign(window.search, 
{"doc_urls":["introduction.html#iceberg-go","introduction.html#where-to-start","introduction.html#what-works-today","introduction.html#beyond-go","introduction.html#help-and-contribution","install.html#install","install.html#go-library","install.html#cli","getting-started.html#getting-started","getting-started.html#install","getting-started.html#create-write-and-read-a-table","getting-started.html#where-to-go-next","configuration.html#configuration","configur
 [...]
\ No newline at end of file
diff --git a/searchindex.json b/searchindex.json
index 68612ed4a..bcdf1b272 100644
--- a/searchindex.json
+++ b/searchindex.json
@@ -1 +1 @@
-{"doc_urls":["introduction.html#iceberg-go","introduction.html#where-to-start","introduction.html#what-works-today","introduction.html#beyond-go","introduction.html#help-and-contribution","install.html#install","install.html#go-library","install.html#cli","getting-started.html#getting-started","getting-started.html#install","getting-started.html#create-write-and-read-a-table","getting-started.html#where-to-go-next","configuration.html#configuration","configuration.html#cli-configuration-
 [...]
\ No newline at end of file
+{"doc_urls":["introduction.html#iceberg-go","introduction.html#where-to-start","introduction.html#what-works-today","introduction.html#beyond-go","introduction.html#help-and-contribution","install.html#install","install.html#go-library","install.html#cli","getting-started.html#getting-started","getting-started.html#install","getting-started.html#create-write-and-read-a-table","getting-started.html#where-to-go-next","configuration.html#configuration","configuration.html#cli-configuration-
 [...]
\ No newline at end of file

Reply via email to