apache/iceberg · error · UnsupportedOperationException
this.getClass().getName() + " does not support…
Error message
this.getClass().getName() + " does not support writeManifestsWith"
What it means
Default-method guard on SnapshotUpdate: thrown when writeManifestsWith(executorService, parallelism) is invoked on a snapshot-update implementation that did not override it. The message names the runtime class. It means parallel manifest writing with explicit parallelism is not wired up for that operation — the executor arguments are irrelevant.
Solutions
- Use scanManifestsWith for read-side parallelism, or accept the default worker pool for manifest writes
- Catch UnsupportedOperationException and commit without custom manifest-write parallelism
- Override writeManifestsWith in the operation implementation
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at api/src/main/java/org/apache/iceberg/SnapshotUpdate.java:75 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/iceberg@86d9c8fc54 (2026-09-12).
Data as JSON: /api/errors/a904b487df8b999b.
Report an issue: GitHub.
Appendix: source
Thrown at api/src/main/java/org/apache/iceberg/SnapshotUpdate.java:75
*
* @param executorService the provided executor
* @return this for method chaining
*/
ThisT scanManifestsWith(ExecutorService executorService);
/**
* Use a particular executor to write manifests during commit with the specified parallelism. The
* default worker pool will be used by default.
*
* <p>The parallelism parameter controls how many manifest writers are used, which informs the
* number of manifest files produced. The executor provides the threads for parallel execution.
*
* @param executorService the provided executor
* @param parallelism the number of parallel manifest writers to use
* @return this for method chaining
*/
default ThisT writeManifestsWith(ExecutorService executorService, int parallelism) {
throw new UnsupportedOperationException(
this.getClass().getName() + " does not support writeManifestsWith");
}
/**
* Perform operations on a particular branch
*
* @param branch which is name of SnapshotRef of type branch.
* @return this for method chaining
*/
default ThisT toBranch(String branch) {
throw new UnsupportedOperationException(
String.format(
"Cannot commit to branch %s: %s does not support branch commits",
branch, this.getClass().getName()));
}
default ThisT validateWith(SnapshotAncestryValidator validator) {
throw new UnsupportedOperationException(View on GitHub (pinned to 86d9c8fc54)