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

CreateContainer returns a null id on OpenJDK #46

Open
smirnp opened this issue Jan 18, 2019 · 0 comments
Open

CreateContainer returns a null id on OpenJDK #46

smirnp opened this issue Jan 18, 2019 · 0 comments

Comments

@smirnp
Copy link
Member

smirnp commented Jan 18, 2019

Hi!

On OpenJDK the delivery very often (but not always) has an empty body, but the container id arrives in the second delivery.

I noticed it running the SDK/Platfrom locally, where I have openJDK (due to licence changes of Oracle Java). On travis server the Oracle java is used, so there is no such a problem.

The fix would be to add the loop:

QueueingConsumer.Delivery delivery = responseConsumer.nextDelivery(cmdResponseTimeout);
            Objects.requireNonNull(delivery, "Didn't got a response for a create container message.");
            while(delivery.getBody().length==0) {
                LOGGER.debug("The delivery was empty. Waiting for the next one");
                delivery = responseConsumer.nextDelivery(cmdResponseTimeout);
                Thread.sleep(1000);
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant