Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page

Show all

Help Center/ Object Storage Service/ SDK Reference/ Java/ FAQs (SDK for Java)/ What Is the Retry Mechanism of SDK? (SDK for Java)

What Is the Retry Mechanism of SDK? (SDK for Java)

Updated on 2025-01-24 GMT+08:00

SDK uses the maxErrorRetry parameter configured in Creating and Configuring an OBS Client (SDK for Java) to retry. The default value for retry times is 3. 0 to 5 is recommended.

If the network connection is abnormal or the server returns the 5XX error when an ObsClient API is called, the SDK performs an exponential backoff retry.

NOTICE:
  • For ObsClient.putObject, when the data source is an InputStream other than FileInputStream, the SDK does not retry when an I/O exception occurs because the data stream cannot be re-read. The upper-layer application needs to retry.
  • When ObsClient.getObject is successfully called and ObsObject is returned, the SDK does not retry when an I/O exception occurs during data reading from ObsObject.getObjectContent because this situation is beyond the scope of the processing logic of the SDK. The upper-layer application needs to retry.
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback