Skip to content

Conversation

@adrianosela
Copy link

@adrianosela adrianosela commented May 16, 2025

[ME-4588] Signal Error To Clients

@atoonk atoonk requested a review from Copilot May 16, 2025 22:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request implements new functionality to signal errors to clients by adding a new done signal API.

  • Introduces a doneConfig type and DoneOption function type with WithFinal and WithErrors helpers.
  • Adds the SendDone method to send a done signal with optional error information to the client.

for _, opt := range opts {
opt(dc)
}
if _, err := ss.tdsSession.buf.Write(writeDone(doneStruct{Status: dc.status, errors: dc.errors})); err != nil {
Copy link

Copilot AI May 16, 2025

Choose a reason for hiding this comment

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

The doneStruct passed to writeDone includes the 'errors' field, but the writeDone function does not process or include error details in the written output. Consider updating writeDone to serialize and communicate error information if it is intended to be signaled to the client.

Copilot uses AI. Check for mistakes.
@adrianosela
Copy link
Author

Closing due to staleness and because testing that was done did not reveal whether this is working or not (client seen behavior was the same - at least with microsoft sql server managemnt studio)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants