-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
i believe this test failure is due to a create/read request pair that's too close together.
the most likely reason is replication-delay between the grid-shard-db's writable primary and the read-only replica from which another server tried to read (if it was the same server it would have found a cached copy of the grid). i believe grid-reads are always from replica so if you quickly create a new sheet and there's replication lag trying to read it back will result in a failure to find the sheet in the grid-shard-db replica).
not sure what the fix is - just introducing lag is silly; possibly some fault-tolerance with retry + backoff?
SheetResourcesIT > testSheetMethods() FAILED
com.smartsheet.api.ResourceNotFoundException: Not Found
at java.base@11.0.24/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base@11.0.24/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base@11.0.24/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base@11.0.24/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at app//com.smartsheet.api.internal.AbstractResources$ErrorCode.getException(AbstractResources.java:144)
at app//com.smartsheet.api.internal.AbstractResources.handleError(AbstractResources.java:874)
at app//com.smartsheet.api.internal.AbstractResources.listResourcesWithWrapper(AbstractResources.java:496)
at app//com.smartsheet.api.internal.SheetColumnResourcesImpl.listColumns(SheetColumnResourcesImpl.java:122)
at app//com.smartsheet.api.internal.SheetColumnResourcesImpl.listColumns(SheetColumnResourcesImpl.java:82)
at app//com.smartsheet.api.integrationtest.SheetResourcesIT.testCreateUpdateRequest(SheetResourcesIT.java:152)
at app//com.smartsheet.api.integrationtest.SheetResourcesIT.testSheetMethods(SheetResourcesIT.java:98)
Metadata
Metadata
Assignees
Labels
No labels