hypertrace / hypertrace-service

Multiple hypertrace services combined together to form a single service.
Other
4 stars 15 forks source link

chore: Upgrade deps #103

Closed findingrish closed 3 years ago

findingrish commented 3 years ago

Ran into following exception in data-query-service while trying out k8s deployment

com.google.common.util.concurrent.UncheckedExecutionException: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Credentials should use fail() instead of throwing exceptions
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2051) ~[guava-30.1.1-jre.jar:?]
    at com.google.common.cache.LocalCache.get(LocalCache.java:3962) ~[guava-30.1.1-jre.jar:?]
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3985) ~[guava-30.1.1-jre.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4946) ~[guava-30.1.1-jre.jar:?]
    at org.hypertrace.gateway.service.common.AttributeMetadataProvider.getAttributeMetadata(AttributeMetadataProvider.java:117) ~[gateway-service-impl.jar:?]
    at org.hypertrace.gateway.service.common.util.AttributeMetadataUtil.getTimestampAttributeMetadata(AttributeMetadataUtil.java:65) ~[gateway-service-impl.jar:?]
    at org.hypertrace.gateway.service.common.util.AttributeMetadataUtil.getTimestampAttributeId(AttributeMetadataUtil.java:73) ~[gateway-service-impl.jar:?]
    at org.hypertrace.gateway.service.entity.EntityService.getEntities(EntityService.java:130) ~[gateway-service-impl.jar:?]
    at org.hypertrace.gateway.service.GatewayServiceImpl.getEntities(GatewayServiceImpl.java:216) [gateway-service-impl.jar:?]
    at org.hypertrace.gateway.service.GatewayServiceGrpc$MethodHandlers.invoke(GatewayServiceGrpc.java:618) [gateway-service-api.jar:?]
    at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:182) [grpc-stub-1.40.0.jar:1.40.0]
    at io.grpc.PartialForwardingServerCallListener.onHalfClose(PartialForwardingServerCallListener.java:35) [grpc-api-1.40.0.jar:1.40.0]
    at io.grpc.ForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:23) [grpc-api-1.40.0.jar:1.40.0]
    at io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:40) [grpc-api-1.40.0.jar:1.40.0]
    at io.grpc.Contexts$ContextualizedServerCallListener.onHalfClose(Contexts.java:86) [grpc-api-1.40.0.jar:1.40.0]
    at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:331) [grpc-core-1.40.0.jar:1.40.0]
    at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:866) [grpc-core-1.40.0.jar:1.40.0]
    at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) [grpc-core-1.40.0.jar:1.40.0]
    at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133) [grpc-core-1.40.0.jar:1.40.0]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
    at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Credentials should use fail() instead of throwing exceptions
    at io.grpc.Status.asRuntimeException(Status.java:535) ~[grpc-api-1.40.0.jar:1.40.0]
    at io.grpc.stub.ClientCalls$BlockingResponseStream.hasNext(ClientCalls.java:648) ~[grpc-stub-1.40.0.jar:1.40.0]
    at org.hypertrace.gateway.service.common.AttributeMetadataProvider$2.load(AttributeMetadataProvider.java:71) ~[gateway-service-impl.jar:?]
    at org.hypertrace.gateway.service.common.AttributeMetadataProvider$2.load(AttributeMetadataProvider.java:59) ~[gateway-service-impl.jar:?]
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529) ~[guava-30.1.1-jre.jar:?]
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278) ~[guava-30.1.1-jre.jar:?]
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2155) ~[guava-30.1.1-jre.jar:?]
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2045) ~[guava-30.1.1-jre.jar:?]
    ... 21 more
Caused by: java.lang.AbstractMethodError: Receiver class io.grpc.netty.NettyClientTransport does not define or inherit an implementation of the resolved method 'abstract io.grpc.internal.ClientStream newStream(io.grpc.MethodDescriptor, io.grpc.Metadata, io.grpc.CallOptions, io.grpc.ClientStreamTracer[])' of interface io.grpc.internal.ClientTransport.
    at io.grpc.internal.MetadataApplierImpl.apply(MetadataApplierImpl.java:74) ~[grpc-core-1.40.0.jar:1.40.0]
    at org.hypertrace.core.grpcutils.client.RequestContextAsCreds.applyRequestContext(RequestContextAsCreds.java:44) ~[grpc-client-utils-0.6.1.jar:?]
    at org.hypertrace.core.grpcutils.client.ContextKeyBasedCreds.applyRequestMetadata(ContextKeyBasedCreds.java:19) ~[grpc-client-utils-0.6.1.jar:?]
    at io.grpc.internal.CallCredentialsApplyingTransportFactory$CallCredentialsApplyingTransport.newStream(CallCredentialsApplyingTransportFactory.java:147) ~[grpc-core-1.40.0.jar:1.40.0]
    at io.grpc.internal.ForwardingConnectionClientTransport.newStream(ForwardingConnectionClientTransport.java:51) ~[grpc-core-1.40.0.jar:1.40.0]
    at io.grpc.internal.InternalSubchannel$CallTracingTransport.newStream(InternalSubchannel.java:673) ~[grpc-core-1.40.0.jar:1.40.0]
    at io.grpc.internal.ManagedChannelImpl$ChannelStreamProvider$1RetryStream.newSubstream(ManagedChannelImpl.java:584) ~[grpc-core-1.40.0.jar:1.40.0]
    at io.grpc.internal.RetriableStream.createSubstream(RetriableStream.java:234) ~[grpc-core-1.40.0.jar:1.40.0]
    at io.grpc.internal.RetriableStream.start(RetriableStream.java:366) ~[grpc-core-1.40.0.jar:1.40.0]
    at io.grpc.internal.ClientCallImpl.startInternal(ClientCallImpl.java:287) ~[grpc-core-1.40.0.jar:1.40.0]
    at io.grpc.internal.ClientCallImpl.start(ClientCallImpl.java:189) ~[grpc-core-1.40.0.jar:1.40.0]
    at io.grpc.stub.ClientCalls.startCall(ClientCalls.java:332) ~[grpc-stub-1.40.0.jar:1.40.0]
    at io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:306) ~[grpc-stub-1.40.0.jar:1.40.0]
    at io.grpc.stub.ClientCalls.blockingServerStreamingCall(ClientCalls.java:204) ~[grpc-stub-1.40.0.jar:1.40.0]
    at org.hypertrace.core.attribute.service.v1.AttributeServiceGrpc$AttributeServiceBlockingStub.findAttributes(AttributeServiceGrpc.java:509) ~[attribute-service-api.jar:?]
    at org.hypertrace.core.attribute.service.client.AttributeServiceClient.lambda$findAttributes$8(AttributeServiceClient.java:80) ~[attribute-service-client.jar:?]
    at io.grpc.Context.call(Context.java:564) ~[grpc-context-1.40.0.jar:1.40.0]
    at org.hypertrace.core.grpcutils.context.RequestContext.call(RequestContext.java:77) ~[grpc-context-utils-0.6.1.jar:?]
    at org.hypertrace.core.grpcutils.client.GrpcClientRequestContextUtil.executeWithHeadersContext(GrpcClientRequestContextUtil.java:42) ~[grpc-client-utils-0.6.1.jar:?]
    at org.hypertrace.core.attribute.service.client.AttributeServiceClient.execute(AttributeServiceClient.java:62) ~[attribute-service-client.jar:?]
    at org.hypertrace.core.attribute.service.client.AttributeServiceClient.findAttributes(AttributeServiceClient.java:80) ~[attribute-service-client.jar:?]
    at org.hypertrace.gateway.service.common.AttributeMetadataProvider$2.load(AttributeMetadataProvider.java:64) ~[gateway-service-impl.jar:?]
    at org.hypertrace.gateway.service.common.AttributeMetadataProvider$2.load(AttributeMetadataProvider.java:59) ~[gateway-service-impl.jar:?]
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529) ~[guava-30.1.1-jre.jar:?]
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278) ~[guava-30.1.1-jre.jar:?]
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2155) ~[guava-30.1.1-jre.jar:?]
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2045) ~[guava-30.1.1-jre.jar:?]
    ... 21 more

Trying to see if upgrading deps could help (which anyways need upgrade)