Skip to content

feat: Add logs to display catalog backend (etcd/sqlite) and timeout for etcd#167

Open
subkanthi wants to merge 2 commits into
masterfrom
166-if-etcd-connection-is-not-established-ice-rest-catalog-freezes
Open

feat: Add logs to display catalog backend (etcd/sqlite) and timeout for etcd#167
subkanthi wants to merge 2 commits into
masterfrom
166-if-etcd-connection-is-not-established-ice-rest-catalog-freezes

Conversation

@subkanthi
Copy link
Copy Markdown
Collaborator

@subkanthi subkanthi commented May 12, 2026

closes: #166

Catalog backend: SQLite (jdbc:sqlite:file:data/ice-rest-catalog/db.sqlite?journal_mode=WAL&synchronous=OFF&journal_size_limit=500); not recommended for production use

2026-05-12 12:49:31 [main/97818] ERROR c.a.ice.rest.catalog.Main > Fatal
org.apache.iceberg.exceptions.RuntimeIOException: java.io.IOException: Failed to connect to etcd at http://localhost:2379: timed out after 30s
        at com.altinity.ice.rest.catalog.internal.etcd.EtcdCatalog.<init>(EtcdCatalog.java:91)
        at com.altinity.ice.rest.catalog.Main.newEctdCatalog(Main.java:618)
        at com.altinity.ice.rest.catalog.Main.loadCatalog(Main.java:536)
        at com.altinity.ice.rest.catalog.Main.call(Main.java:446)
        at com.altinity.ice.rest.catalog.Main.call(Main.java:76)
        at com.altinity.ice.rest.catalog.Main.main(Main.java:629) [8 skipped]
Caused by: java.io.IOException: Failed to connect to etcd at http://localhost:2379: timed out after 30s
        ... 14 common frames omitted
Caused by: java.util.concurrent.TimeoutException: null
        at com.altinity.ice.rest.catalog.internal.etcd.EtcdCatalog.<init>(EtcdCatalog.java:88) [2 skipped]
        at com.altinity.ice.rest.catalog.Main.newEctdCatalog(Main.java:618)
        at com.altinity.ice.rest.catalog.Main.loadCatalog(Main.java:536)
        ... 13 common frames omitted

@subkanthi subkanthi linked an issue May 12, 2026 that may be closed by this pull request
@subkanthi subkanthi requested a review from xieandrew May 12, 2026 19:44
Copy link
Copy Markdown
Collaborator

@xieandrew xieandrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@xieandrew xieandrew changed the title Added logs to display catalog backend(etcd/sqlite) and timeout for etcd. feat: Add logs to display catalog backend(etcd/sqlite) and timeout for etcd May 13, 2026
@xieandrew xieandrew changed the title feat: Add logs to display catalog backend(etcd/sqlite) and timeout for etcd feat: Add logs to display catalog backend (etcd/sqlite) and timeout for etcd May 13, 2026
@xieandrew xieandrew added the ice-rest-catalog Relates to ice-rest-catalog label May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ice-rest-catalog Relates to ice-rest-catalog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If etcd connection is not established, ice-rest-catalog freezes

2 participants