Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google drive api gets stuck on uploading files in aix. #2490

Open
david-actian opened this issue May 28, 2024 · 1 comment
Open

Google drive api gets stuck on uploading files in aix. #2490

david-actian opened this issue May 28, 2024 · 1 comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@david-actian
Copy link

david-actian commented May 28, 2024

Hi

We are using google drive api to upload files to google drive. The same code works fine with linux and windows, but does not work with aix.

Here is the code:

                    File newMetadata = new File();
                    newMetadata.setName(file.getName());
                    newMetadata.setParents(file.getParents());
                    Drive.Files files = service.files();
                    Update update = files.update(file.getId(), newMetadata, content);
                    update.getMediaHttpUploader().setChunkSize(262144); // Set chunk size to 256KB
                    update.execute();

After our investigation, it finally stops at line 110 of SocketOutputStream.java
socketWrite0(…)

image

Here is the call stack:
image

These are all the google dependencies we use:

    <dependency>
        <groupId>com.google.api-client</groupId>
        <artifactId>google-api-client</artifactId>
        <version>2.5.1</version>
    </dependency>
    <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>33.2.0-jre</version>
    </dependency>

    <dependency>
        <groupId>com.google.oauth-client</groupId>
        <artifactId>google-oauth-client-jetty</artifactId>
        <version>1.36.0</version>
    </dependency>

    <dependency>
        <groupId>com.google.apis</groupId>
        <artifactId>google-api-services-drive</artifactId>
        <version>v3-rev20240509-2.0.0</version>
    </dependency>
@david-actian david-actian changed the title Google drive api does not work with aix. Google drive api get stuck on uploading files in aix. May 28, 2024
@david-actian david-actian changed the title Google drive api get stuck on uploading files in aix. Google drive api gets stuck on uploading files in aix. May 28, 2024
@blakeli0 blakeli0 added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p3 Desirable enhancement or fix. May not be included in next release. labels Jun 4, 2024
@suztomo
Copy link
Member

suztomo commented Jun 7, 2024

Thank you for reporting the problem. However, I'm afraid it's really challenging to diagnose the problem that only happen in the AIX operating system. SocketOutputStream is from your JDK. I can only recommend to set a break points in many places to see what it is waiting for.

If you have a support contract with Google, please create an issue in the support console. This will ensure a timely response and troubleshooting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants