[ 
https://issues.apache.org/jira/browse/HIVE-19944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524163#comment-16524163
 ] 

Vihang Karajgaonkar commented on HIVE-19944:
--------------------------------------------

Hi [~szita] Looks like this broke ptest server. When I restart ptest server for 
fixing HIVE-19999 it didn't come because of this exception.

{code}
java.lang.NullPointerException: Null archiveSizeBytes
        at 
org.jclouds.googlecomputeengine.domain.AutoValue_Image.<init>(AutoValue_Image.java:67)
 ~[google-compute-engine-2.0.0.jar:2.0.0]
        at org.jclouds.googlecomputeengine.domain.Image.create(Image.java:100) 
~[google-compute-engine-2.0.0.jar:2.0.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.7.0_181]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
~[?:1.7.0_181]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.7.0_181]
        at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_181]
        at 
com.google.common.reflect.Invokable$MethodInvokable.invokeInternal(Invokable.java:197)
 ~[guava-18.0.jar:?]
        at com.google.common.reflect.Invokable.invoke(Invokable.java:102) 
~[guava-18.0.jar:?]
        at 
org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.newInstance(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:224)
 ~[jclouds-core-2.0.0.jar:2.0.0]
        at 
org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:204)
 ~[jclouds-core-2.0.0.jar:2.0.0]
        at 
org.jclouds.googlecloud.config.ListPageAdapterFactory$ListPageAdapter.readItems(ListPageAdapterFactory.java:73)
 ~[googlecloud-2.0.0.jar:2.0.0]
        at 
org.jclouds.googlecloud.config.ListPageAdapterFactory$ListPageAdapter.read(ListPageAdapterFactory.java:56)
 ~[googlecloud-2.0.0.jar:2.0.0]
        at 
org.jclouds.googlecloud.config.ListPageAdapterFactory$ListPageAdapter.read(ListPageAdapterFactory.java:36)
 ~[googlecloud-2.0.0.jar:2.0.0]
        at com.google.gson.Gson.fromJson(Gson.java:861) ~[gson-2.5.jar:?]
        at com.google.gson.Gson.fromJson(Gson.java:826) ~[gson-2.5.jar:?]
        at org.jclouds.json.internal.GsonWrapper.fromJson(GsonWrapper.java:55) 
~[jclouds-core-2.0.0.jar:2.0.0]
        at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:82) 
~[jclouds-core-2.0.0.jar:2.0.0]
        at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:76) 
~[jclouds-core-2.0.0.jar:2.0.0]
        at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:61) 
[jclouds-core-2.0.0.jar:2.0.0]
        at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:41) 
[jclouds-core-2.0.0.jar:2.0.0]
        at 
com.google.common.base.Functions$FunctionComposition.apply(Functions.java:216) 
[guava-18.0.jar:?]
        at 
org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90) 
[jclouds-core-2.0.0.jar:2.0.0]
        at 
org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73) 
[jclouds-core-2.0.0.jar:2.0.0]
        at 
org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44) 
[jclouds-core-2.0.0.jar:2.0.0]
        at 
org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
 [jclouds-core-2.0.0.jar:2.0.0]
        at 
com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87)
 [guava-18.0.jar:?]
        at com.sun.proxy.$Proxy77.list(Unknown Source) [?:?]
        at 
org.jclouds.googlecomputeengine.compute.GoogleComputeEngineServiceAdapter.listImages(GoogleComputeEngineServiceAdapter.java:209)
 [google-compute-engine-2.0.0.jar:2.0.0]
        at 
org.jclouds.compute.config.ComputeServiceAdapterContextModule$2.get(ComputeServiceAdapterContextModule.java:121)
 [jclouds-compute-2.0.0.jar:2.0.0]
        at 
org.jclouds.compute.config.ComputeServiceAdapterContextModule$2.get(ComputeServiceAdapterContextModule.java:118)
 [jclouds-compute-2.0.0.jar:2.0.0]
        at 
org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier$SetAndThrowAuthorizationExceptionSupplierBackedLoader.load(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:75)
 [jclouds-core-2.0.0.jar:2.0.0]
        at 
org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier$SetAndThrowAuthorizationExceptionSupplierBackedLoader.load(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:57)
 [jclouds-core-2.0.0.jar:2.0.0]
        at 
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)
 [guava-18.0.jar:?]
        at 
com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319) 
[guava-18.0.jar:?]
        at 
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)
 [guava-18.0.jar:?]
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197) 
[guava-18.0.jar:?]
        at com.google.common.cache.LocalCache.get(LocalCache.java:3937) 
[guava-18.0.jar:?]
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941) 
[guava-18.0.jar:?]
        at 
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824) 
[guava-18.0.jar:?]
        at 
org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.get(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:150)
 [jclouds-core-2.0.0.jar:2.0.0]
        at 
org.jclouds.compute.suppliers.ImageCacheSupplier.get(ImageCacheSupplier.java:106)
 [jclouds-compute-2.0.0.jar:2.0.0]
        at 
org.jclouds.compute.domain.internal.TemplateBuilderImpl.getImages(TemplateBuilderImpl.java:854)
 [jclouds-compute-2.0.0.jar:2.0.0]
        at 
org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:666)
 [jclouds-compute-2.0.0.jar:2.0.0]
        at 
org.apache.hive.ptest.execution.context.CloudComputeService.<init>(CloudComputeService.java:69)
 [classes/:?]
        at 
org.apache.hive.ptest.execution.context.CloudExecutionContextProvider.createGceService(CloudExecutionContextProvider.java:493)
 [classes/:?]
        at 
org.apache.hive.ptest.execution.context.CloudExecutionContextProvider.createService(CloudExecutionContextProvider.java:502)
 [classes/:?]
        at 
org.apache.hive.ptest.execution.context.CloudExecutionContextProvider.create(CloudExecutionContextProvider.java:524)
 [classes/:?]
        at 
org.apache.hive.ptest.execution.context.CloudExecutionContextProvider.access$1000(CloudExecutionContextProvider.java:57)
 [classes/:?]
        at 
org.apache.hive.ptest.execution.context.CloudExecutionContextProvider$Builder.build(CloudExecutionContextProvider.java:440)
 [classes/:?]
        at 
org.apache.hive.ptest.execution.conf.ExecutionContextConfiguration.<init>(ExecutionContextConfiguration.java:64)
 [classes/:?]
{code}


When I dug a bit deeper I found that you had create this new "test-image" which 
seem to have something missing. When Ptest server is restarted I think it 
loaded metadata of these images and the newly created image broken something. I 
had to delete the test-image file to make it work. I hope it didn't have 
anything very important. I went by the name and description of the image and 
assumed it was just for some testing purposes.

> Investigate and fix version mismatch of GCP
> -------------------------------------------
>
>                 Key: HIVE-19944
>                 URL: https://issues.apache.org/jira/browse/HIVE-19944
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Adam Szita
>            Assignee: Adam Szita
>            Priority: Major
>         Attachments: HIVE-19944.0.patch
>
>
> We've observed that adding a new image to the ptest GCP project breaks our 
> currently working infrastructure when we try to restart the hive ptest server.
> This is because upon initialization the project's images are queried and we 
> immediately get an exception for newly added images - they don't have a field 
> that our client thinks should be mandatory to have. I believe there's an 
> upgrade needed on our side for the GCP libs we depend on.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to