Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add DuchyId into FailComputationParticipant message. #1864

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renjiezh
Copy link
Contributor

No description provided.

@renjiezh renjiezh requested a review from SanjayVas October 16, 2024 17:59
@wfa-reviewable
Copy link

This change is Reviewable

Copy link
Member

@SanjayVas SanjayVas left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @renjiezh)


src/main/kotlin/org/wfanet/measurement/kingdom/deploy/gcloud/spanner/writers/FailComputationParticipant.kt line 130 at r1 (raw file):

        failure = measurementFailure {
          reason = MeasurementFailure.Reason.COMPUTATION_PARTICIPANT_FAILED
          message = "Computation Participant failed. $duchyId: ${request.logMessage}"

I already rejected this change in a previous PR.

The gRPC status message may have IDs, but not this log message field. Anyone reading this log message field has access to the Duchy log entry protobuf message which has the Duchy ID.

Code quote:

$duchyId:

Copy link
Member

@SanjayVas SanjayVas left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @renjiezh)


src/main/kotlin/org/wfanet/measurement/kingdom/deploy/gcloud/spanner/writers/FailComputationParticipant.kt line 130 at r1 (raw file):

Previously, SanjayVas (Sanjay Vasandani) wrote…

I already rejected this change in a previous PR.

The gRPC status message may have IDs, but not this log message field. Anyone reading this log message field has access to the Duchy log entry protobuf message which has the Duchy ID.

See reasoning from #1835

Copy link
Member

@SanjayVas SanjayVas left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @renjiezh)


src/main/kotlin/org/wfanet/measurement/kingdom/deploy/gcloud/spanner/writers/FailComputationParticipant.kt line 130 at r1 (raw file):

Previously, SanjayVas (Sanjay Vasandani) wrote…

See reasoning from #1835

Sorry, I guess they don't have access to that from this one. I thought I was looking at the log entry itself.

The correct thing to do here is to add another field in the protobuf message that indicates the external Duchy ID. That can be plumbed through to the public API. Again, see my comments on #1835

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.

3 participants