You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "flyrain (via GitHub)" <gi...@apache.org> on 2025/11/24 22:06:06 UTC

Re: [PR] [MCP] feat: add retry for HTTP requests [polaris-tools]

flyrain commented on code in PR #72:
URL: https://github.com/apache/polaris-tools/pull/72#discussion_r2557856952


##########
mcp-server/polaris_mcp/server.py:
##########
@@ -59,13 +59,30 @@
     "required": ["isError"],
     "additionalProperties": True,
 }
+DEFAULT_HTTP_RETRIES_TOTAL = 3
+DEFAULT_HTTP_RETRIES_BACKOFF_FACTOR = 0.5
+HTTP_RETRIES_STATUS_FORCELIST = [401, 409, 429, 500, 502, 503, 504]

Review Comment:
   I think the write API retry should be more cautious. @singhpk234 has a PR in Iceberg to not retry on 50x. 



-- 
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: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org