Repository navigation
Conversation
waterWang
requested review from
dennyglee,
openinx,
tdas and
yili-db
as code owners
July 28, 2026 19:50
yili-db
reviewed
Jul 29, 2026
| type: string | ||
| maxLength: 65536 | ||
| minLength: 1 | ||
| minLength: 0 |
Collaborator
There was a problem hiding this comment.
This seems to belong to another PR
yili-db
requested changes
Jul 29, 2026
| }); | ||
| } | ||
| } | ||
| } No newline at end of file |
Collaborator
There was a problem hiding this comment.
Please do not remove new line at end of file
| if (!transcodeResp.headWritten()) { | ||
| transcodeResp.setStatusCode(502); | ||
| transcodeResp.putHeader("Content-Type", "text/plain"); | ||
| transcodeResp.end("Backend error: " + err.getMessage()); |
Collaborator
There was a problem hiding this comment.
err.getMessage may leak internal info. Something like transcodeResp.end("Backend request failed"); is safer.
yili-db
requested changes
Jul 29, 2026
yili-db
left a comment
Collaborator
There was a problem hiding this comment.
Needs a test for the new failure path. The existing URLTranscoderVerticleTest is already set up for this — deploy a transcoder pointed at a dead backend port (use findAvailablePort() for a port with nothing listening) and assert the request returns 502 instead of hanging. The bounded .get(TIMEOUT_SECONDS, ...) in send(...) means a regression fails as a timeout.
Thank you!
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
URLTranscoderVerticlebuilds its response inside aFuturechain that has no terminal failure handler, so any failure in that chain leaves the request unanswered and the client waits until it times out.The chain is
transcodeRequest.body().compose(...).compose(...)atserver/src/main/java/io/unitycatalog/server/URLTranscoderVerticle.java. If either stage fails, for example because the request to the Armeria backend cannot be made, nothing writes totranscodeRequest.response()and the connection stays open.Fix
Add an
.otherwise()handler to the Future chain that:headWritten()to avoid double-write in edge casesFixes #1717