Skip to content

[Bug] uploadData() not retried after exception using newClientImplementation = true #340

@luanrodrigsr

Description

@luanrodrigsr

Description

Hi!

I'm observing a strange behavior in the PowerSyncBackendConnector when it is trying to upload data using the new client implementation.

The documentation for the function uploadData() says "Any thrown errors will result in a retry after the configured wait period (default: 5 seconds)", however I verified that, even with an exception being thrown in the function's overridden code block, the SDK treats the upload as completed:

2026-04-03 12:59:48.471  2718-2992  [MANAGEDDATABASE]   br.com.accelero V   crud upload: notify completion
2026-04-03 12:59:48.476  2718-2992  [MANAGEDDATABASE]   br.com.accelero  V  powersync_control: CompletedUpload
2026-04-03 12:59:48.477  2718-2992  [MANAGEDDATABASE]   br.com.accelero  V  control result: []

By changing the default SyncOptions to newClientImplementation = false, everything works as expected.

Environment

PowerSync Kotlin SDK: 1.11.2
Kotlin: 2.3.20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions