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

[BUG] GatewayAddressCache NPE #14149

Closed
moderakh opened this issue Aug 14, 2020 · 2 comments · Fixed by #14376
Closed

[BUG] GatewayAddressCache NPE #14149

moderakh opened this issue Aug 14, 2020 · 2 comments · Fixed by #14376
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. cosmos:v4-item Indicates this feature will be shipped as part of V4 release train Cosmos Investigate The issue needs investigation to get to the root cause

Comments

@moderakh
Copy link
Contributor

java.lang.NullPointerException
        at com.azure.cosmos.implementation.directconnectivity.GatewayAddressCache.tryGetAddresses(GatewayAddressCache.java:177)
        at com.azure.cosmos.implementation.directconnectivity.AddressResolver.tryResolveServerPartitionAsync(AddressResolver.java:244)
        at com.azure.cosmos.implementation.directconnectivity.AddressResolver.lambda$resolveAddressesAndIdentityAsync$16(AddressResolver.java:430)
        at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:118)
        at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1782)
        at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:144)
        at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1782)
        at reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext(MonoFlatMap.java:241)
        at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1782)
        at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:144)
        at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:73)
        at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:121)
        at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1782)
        at reactor.core.publisher.MonoSingle$SingleSubscriber.onComplete(MonoSingle.java:171)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.checkTerminated(FluxFlatMap.java:838)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:600)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:580)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.onComplete(FluxFlatMap.java:457)
        at reactor.core.publisher.DrainUtils.postCompleteDrain(DrainUtils.java:131)
        at reactor.core.publisher.DrainUtils.postComplete(DrainUtils.java:186)
        at reactor.core.publisher.FluxMapSignal$FluxMapSignalSubscriber.onComplete(FluxMapSignal.java:213)
        at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1783)
        at reactor.core.publisher.MonoCacheTime.subscribeOrReturn(MonoCacheTime.java:140)
        at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)
        at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:150)
        at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:121)
        at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1782)
        at reactor.core.publisher.MonoSingle$SingleSubscriber.onComplete(MonoSingle.java:171)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.checkTerminated(FluxFlatMap.java:838)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:600)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:580)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.onComplete(FluxFlatMap.java:457)
        at reactor.core.publisher.DrainUtils.postCompleteDrain(DrainUtils.java:131)
        at reactor.core.publisher.DrainUtils.postComplete(DrainUtils.java:186)
        at reactor.core.publisher.FluxMapSignal$FluxMapSignalSubscriber.onComplete(FluxMapSignal.java:213)
        at reactor.core.publisher.FluxJust$WeakScalarSubscription.request(FluxJust.java:101)
        at reactor.core.publisher.FluxMapSignal$FluxMapSignalSubscriber.request(FluxMapSignal.java:225)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.onSubscribe(FluxFlatMap.java:363)
        at reactor.core.publisher.FluxMapSignal$FluxMapSignalSubscriber.onSubscribe(FluxMapSignal.java:115)
        at reactor.core.publisher.FluxJust.subscribe(FluxJust.java:70)
        at reactor.core.publisher.Mono.subscribe(Mono.java:4213)
        at reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(FluxFlatMap.java:199)
        at reactor.core.publisher.MonoFlatMap.subscribeOrReturn(MonoFlatMap.java:53)
        at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)
        at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)
        at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)
        at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:150)
        at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:121)
        at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1782)
        at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:144)
        at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1782)
        at reactor.core.publisher.MonoSingle$SingleSubscriber.onComplete(MonoSingle.java:171)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.checkTerminated(FluxFlatMap.java:838)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:600)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:580)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.onComplete(FluxFlatMap.java:457)
        at reactor.core.publisher.DrainUtils.postCompleteDrain(DrainUtils.java:131)
        at reactor.core.publisher.DrainUtils.postComplete(DrainUtils.java:186)
        at reactor.core.publisher.FluxMapSignal$FluxMapSignalSubscriber.onComplete(FluxMapSignal.java:213)
        at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1783)
        at reactor.core.publisher.MonoCacheTime.subscribeOrReturn(MonoCacheTime.java:140)
        at reactor.core.publisher.Mono.subscribe(Mono.java:4198)
        at reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(FluxFlatMap.java:199)
        at reactor.core.publisher.MonoFlatMap.subscribeOrReturn(MonoFlatMap.java:53)
        at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)
        at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)
        at reactor.core.publisher.FluxRetryWhen.subscribe(FluxRetryWhen.java:79)
        at reactor.core.publisher.MonoRetryWhen.subscribeOrReturn(MonoRetryWhen.java:46)
        at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)
        at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:150)
        at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:121)
        at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2344)
        at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request(FluxMapFuseable.java:162)
        at reactor.core.publisher.MonoFlatMap$FlatMapMain.onSubscribe(MonoFlatMap.java:103)
        at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe(FluxMapFuseable.java:90)
        at reactor.core.publisher.MonoCurrentContext.subscribe(MonoCurrentContext.java:35)
        at reactor.core.publisher.Mono.subscribe(Mono.java:4213)
        at reactor.core.publisher.Mono.block(Mono.java:1679)
        at com.azure.cosmos.CosmosContainer.blockItemResponse(CosmosContainer.java:223)
        at com.azure.cosmos.CosmosContainer.readItem(CosmosContainer.java:295)
        at site.ycsb.db.AzureCosmosClient.read(AzureCosmosClient.java:281)
        at site.ycsb.DBWrapper.read(DBWrapper.java:135)
        at site.ycsb.workloads.CoreWorkload.doTransactionRead(CoreWorkload.java:722)
        at site.ycsb.workloads.CoreWorkload.doTransaction(CoreWorkload.java:644)
        at site.ycsb.ClientThread.run(ClientThread.java:122)
        at java.lang.Thread.run(Thread.java:748)
        Suppressed: java.lang.Exception: #block terminated with an error
                at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:99)
                at reactor.core.publisher.Mono.block(Mono.java:1680)
@moderakh moderakh added Cosmos Client This issue points to a problem in the data-plane of the library. cosmos:v4-item Indicates this feature will be shipped as part of V4 release train labels Aug 14, 2020
@kirankumarkolli kirankumarkolli added the Investigate The issue needs investigation to get to the root cause label Aug 14, 2020
@kirankumarkolli
Copy link
Member

@simplynaveen20 can you please take a look?

@ealsur
Copy link
Member

ealsur commented Aug 25, 2020

PR with the fix is #14376

openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-java that referenced this issue Jun 2, 2021
AKS: Review request for Microsoft.ContainerService to add version stable/2021-05-01 (Azure#14147)

* Adds base for updating Microsoft.ContainerService from version stable/2021-03-01 to version 2021-05-01

* Updates readme

* Updates API version in new specs and examples

* add APIServerAccessProfile.enablePrivateClusterPublicFQDN in 2021-05-01 (Azure#14149)

* add APIServerAccessProfile.enablePrivateClusterPublicFQDN in 2021-05-01 api

* ref example

Co-authored-by: Li Ma <[email protected]>

* Add swagger for OutboundNetworkDependenciesEndpoints for AKS (Azure#14332)

* Add swagger for OutboundNetworkDependenciesEndpoints for AKS

* fix

* lint

* update operationId

* aks: add enableUltraSSD in v20210501 api-version (Azure#14354)

* update doc for agentpool max count from 100 to 1000 (Azure#14553)

Co-authored-by: Li Ma <[email protected]>

* add readme for new version (Azure#14611)

Co-authored-by: Li Ma <[email protected]>

* fix conflict (Azure#14614)

Co-authored-by: Li Ma <[email protected]>

Co-authored-by: Li Ma <[email protected]>
Co-authored-by: gossion <[email protected]>
Co-authored-by: Andy Zhang <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. cosmos:v4-item Indicates this feature will be shipped as part of V4 release train Cosmos Investigate The issue needs investigation to get to the root cause
Projects
None yet
4 participants