none
guava.jar and azure keyvault extensions java sdk RRS feed

  • Question

  • Hi,
    We are using the azure-keyvault-extensions.jar (version 1.1) in our product to access Azure Key Vault. We are planning to support the java 11 with our product.
    As a jar dependency, we are also using the guava.jar (version 26). This version of guava.jar uses unsafe API from Oracle Java SDK and hence not compatible with java 11. The jar provider has fixed these issues in latest version 28.1-jre. azure-keyvault-extensions.jar (version 1.1) is not compatible with guava.jar (version 28.1-jre).
    During Key Vault Key retrieval, request fails with CancellationException. I did analysis of this failure:
    https://github.com/Azure/azure-keyvault-java/blob/master/azure-keyvault-extensions/src/main/java/com/microsoft/azure/keyvault/extensions/KeyVaultKeyResolver.java#L108

        private ListenableFuture<IKey> resolveKeyFromKeyAsync(String kid) {
            ListenableFuture<KeyBundle> futureCall = client.getKeyAsync(kid, null);
            return Futures.transform(futureCall, new FutureKeyFromKey(), MoreExecutors.directExecutor());
        }

    Here,  futureCall is able to return the result, but it also tell that the task was cancelled.
    Futures.transform – API from Google’s guava.jar which is responsible for chaining for async calls, is working fine till 26th version of guava.jar - although task was cancelled.
    But in 28th version of guava.jar, Google has made improvements over cancelled task. They just transfer the cancellation status to caller. So we see following in server logs:

    Nested exception is: java.util.concurrent.CancellationException: Task was cancelled.
                    at com.google.common.util.concurrent.AbstractFuture.cancellationExceptionWithCause(AbstractFuture.java:1349)
                    at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:550)
                    at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:513)
                    at com.google.common.util.concurrent.FluentFuture$TrustedFuture.get(FluentFuture.java:86)

    Can you please let us know if and when Microsoft will support the guava.jar (version 28.1-jre)?

    Thanks,
    Vinayak
    Wednesday, November 13, 2019 11:01 AM

Answers

  • Thanks for raising this question.Apologies for the delay in responding here. Currently we don't have any plan on this feature.

    You may leave your feedback/user-voice here. All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.  

    Hope this helps! 

    Kindly let us know if the above helps or you need further assistance on this issue.
    ------------------------------------------------------------------------------------------

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    Thursday, November 14, 2019 5:10 PM
    Moderator

All replies

  • Thanks for raising this question.Apologies for the delay in responding here. Currently we don't have any plan on this feature.

    You may leave your feedback/user-voice here. All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.  

    Hope this helps! 

    Kindly let us know if the above helps or you need further assistance on this issue.
    ------------------------------------------------------------------------------------------

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    Thursday, November 14, 2019 5:10 PM
    Moderator
  • @Vinayak Kuchekar Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Thursday, November 21, 2019 9:02 AM
    Moderator
  • Following up to see if the above suggestion was helpful. And, if you have any further query do let us know.

     Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. 
    Friday, November 22, 2019 2:20 PM
    Moderator