Skip to content

S3 waitFor adding extra delay which changes application behavior #737

@abhirpat

Description

@abhirpat

Self-service

  • I'd be willing to implement a fix

Describe the bug

SDK V2 to V3 migration using codemod is adding extra time which is causing performance issues.

await s3.waitFor('objectExists', param).promise();

transformed by codemod

await waitUntilObjectExists({
           client: s3,
           maxWaitTime: 200
       }, param)

The codemod adds maxWaitTime: 200 which is changing the code behavior and causing performance issues

Steps to reproduce

Try to reproduce using the provided description for command.

Observed behavior

The command waits for 200 seconds which is adding significant delay.

Expected behavior

The code would execute instantly before.

Environment

aws-sdk-js-codemod: 0.26.3
- jscodeshift: 0.15.0
- recast: 0.23.4

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions