prestodb/presto · error · RuntimeException

Retry fetching sidecar function registry interrupted

Error message

Retry fetching sidecar function registry interrupted

What it means

Thrown when the retry loop's sleep between sidecar-node lookup attempts is interrupted (Thread.sleep or the future wait throws InterruptedException). Startup discovery of the sidecar node was cancelled mid-retry.

Solutions

  1. Restore the interrupted status and let startup abort cleanly if the worker is shutting down
  2. Avoid interrupting the thread performing sidecar discovery
  3. Re-run the worker start once the interrupt source is removed
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at presto-built-in-worker-function-tools/src/main/java/com/facebook/presto/builtin/tools/NativeSidecarFunctionRegistryTool.java:133 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of prestodb/presto@55bb57d202 (2026-09-04). Data as JSON: /api/errors/e3220611ab8ead1e. Report an issue: GitHub.

Appendix: source

Thrown at presto-built-in-worker-function-tools/src/main/java/com/facebook/presto/builtin/tools/NativeSidecarFunctionRegistryTool.java:133

        for (int attempt = 1; attempt <= maxRetries; attempt++) {
            try {
                sidecarNode = nodeManager.getSidecarNode();
                if (sidecarNode != null) {
                    break;
                }
            }
            catch (Exception e) {
                log.error("Error getting sidecar node (attempt " + attempt + "): " + e.getMessage());
                if (attempt == maxRetries) {
                    throw new RuntimeException("Failed to get sidecar node", e);
                }
                else {
                    try {
                        Thread.sleep(retryDelayMs);
                    }
                    catch (InterruptedException ie) {
                        Thread.currentThread().interrupt();
                        throw new RuntimeException("Retry fetching sidecar function registry interrupted", ie);
                    }
                }
            }
        }

        return HttpUriBuilder
                .uriBuilderFrom(sidecarNode.getHttpUri())
                .appendPath(FUNCTION_SIGNATURES_ENDPOINT)
                .build();
    }
}

View on GitHub (pinned to 55bb57d202)