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

Duchy fails to create final MeasurementLogEntry for succeeded Measurement #1200

Open
SanjayVas opened this issue Sep 5, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@SanjayVas
Copy link
Member

SanjayVas commented Sep 5, 2023

Reported by Dmitry Makarevich.

This fails with Cannot create log entry for Measurement in terminal state.

The Duchy shouldn't be making this as a separate call after completing the Measurement, as indeed it is incorrect to add a log entry after this point. This log entry may not even be needed, as there's already one automatically created for the state transition.

org.wfanet.measurement.kingdom.deploy.gcloud.spanner.common.MeasurementStateIllegalException: Cannot create log entry for Measurement in terminal state. {external_measurement_consumer_id=ExternalId(2072627392850428159 / HMNzoe6YAP8), external_measurement_id=ExternalId(6975708498392167955 / YM6x659WthM), measurement_state=SUCCEEDED}
	at org.wfanet.measurement.kingdom.deploy.gcloud.spanner.writers.CreateDuchyMeasurementLogEntry.runTransaction(CreateDuchyMeasurementLogEntry.kt:70)
	at org.wfanet.measurement.kingdom.deploy.gcloud.spanner.writers.CreateDuchyMeasurementLogEntry$runTransaction$1.invokeSuspend(CreateDuchyMeasurementLogEntry.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
@SanjayVas SanjayVas added the bug Something isn't working label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant