Skip to content

retryable_gets & retryable_writes with infinity loop (no timeout capabilities) #293

@mlarribe

Description

@mlarribe

it could be interesting to allow the developers to define a timeout of the retryable feature, while testing it on a replicated cluster of 3 node facing a bad "weather condition" (no majority after incident "normal behaviour before human intervention in the case")

I got the impression that when even the cluster get stuck in bad condition the calls with such retryable will get stuck forever till the cluster gets back online in a correct statement (could be seconds, hours or even days).
This could be very convenient to allow the retry to operation till a decent timeout were after a certain point, giving back to the call either "raised issue" of feedback broken behond expectation could be truly helpful, without needing to manually having make a custom retry loop on the project code base to manage all the detailed articulation from the session to the reply-codes that could be allowed or not to be retried externally to of the driver. (making the feature less usable)

in the context, having the capacity to let the drive do the job (retry as much as it'd like) till a certain threshold is reach, and allow the call to still act in order to take a more radical approach according to their needs (fail-over solutions, crash, else..) without behind blind of root cause and/or intricated complexe external management of MongoDB return out of MongoDB driver.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions