Failure when updating download stats

Abierto
#1,412 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
azure, java
Área
backend, cloud

Línea de trabajo

Start with AzureDownloadCountService.downloadBlobItem at line 226, then trace how processBlobItem handles the blob before updateDownloadCounts runs. The report shows Azure returning status 412 while downloading a blob; investigate that failure path and verify download statistics can be updated without the error.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

We see this error when calculating the download stats when using Azure as storage provider:

 o.e.o.storage.AzureDownloadCountService  : Failed to process BlobItem: resourceId=/subscriptions/xxx/resourceGroups/open-vsx.org/providers/Microsoft.Storage/storageAccounts/openvsxorg/blobServices/default/y=2025/m=11/d=14/h=07/m=00/PT1H.json 
  
 com.azure.storage.blob.models.BlobStorageException: Status code 412, "<?xml version="1.0" encoding="utf-8"?><Error><Code>ConditionNotMet</Code><Message>The condition specified using HTTP conditional header(s) is not met. 
 RequestId:650bfbd6-301e-002e-1b35-555c79000000 
 Time:2025-11-14T07:12:11.4629107Z</Message></Error>" 
 	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732) 
 	at com.azure.core.implementation.http.rest.ResponseExceptionConstructorCache.invoke(ResponseExceptionConstructorCache.java:56) 
 	at com.azure.core.implementation.http.rest.RestProxyBase.instantiateUnexpectedException(RestProxyBase.java:356) 
 	at com.azure.core.implementation.http.rest.AsyncRestProxy.lambda$ensureExpectedStatus$1(AsyncRestProxy.java:127) 
 	at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:106) 
 	at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onNext(FluxDoFinally.java:113) 
 	at reactor.core.publisher.FluxHandle$HandleSubscriber.onNext(FluxHandle.java:129) 
 	at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onNext(FluxMap.java:224) 
 	at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onNext(FluxDoFinally.java:113) 
 	at reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.onNext(FluxHandleFuseable.java:194) 
 	at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext(FluxContextWrite.java:107) 
 	at reactor.core.publisher.Operators$BaseFluxToMonoOperator.completePossiblyEmpty(Operators.java:2096) 
 	at reactor.core.publisher.MonoCollectList$MonoCollectListSubscriber.onComplete(MonoCollectList.java:118) 
 	at reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete(FluxPeek.java:260) 
 	at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:144) 
 	at reactor.netty.channel.FluxReceive.onInboundComplete(FluxReceive.java:413) 
 	at reactor.netty.channel.ChannelOperations.onInboundComplete(ChannelOperations.java:455) 
 	at reactor.netty.channel.ChannelOperations.terminate(ChannelOperations.java:509) 
 	at reactor.netty.http.client.HttpClientOperations.onInboundNext(HttpClientOperations.java:847) 
 	at reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:115) 
 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) 
 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) 
 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) 
 	at com.azure.core.http.netty.implementation.AzureSdkHandler.channelRead(AzureSdkHandler.java:222) 
 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) 
 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) 
 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) 
 	at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436) 
 	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346) 
 	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318) 
 	at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251) 
 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) 
 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) 
 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) 
 	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1519) 
 	at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1377) 
 	at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1428) 
 	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:530) 
 	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:469) 
 	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) 
 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) 
 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) 
 	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) 
 	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1357) 
 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) 
 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) 
 	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:868) 
 	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:799) 
 	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:501) 
 	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:399) 
 	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:998) 
 	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) 
 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) 
 	at java.base/java.lang.Thread.run(Thread.java:833) 
 	Suppressed: java.lang.Exception: #block terminated with an error 
 		at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:104) 
 		at reactor.core.publisher.Mono.block(Mono.java:1779) 
 		at com.azure.storage.common.implementation.StorageImplUtils.blockWithOptionalTimeout(StorageImplUtils.java:146) 
 		at com.azure.storage.blob.specialized.BlobClientBase.downloadToFileWithResponse(BlobClientBase.java:1208) 
 		at com.azure.storage.blob.specialized.BlobClientBase.downloadToFileWithResponse(BlobClientBase.java:1169) 
 		at com.azure.storage.blob.specialized.BlobClientBase.downloadToFile(BlobClientBase.java:1078) 
 		at org.eclipse.openvsx.storage.AzureDownloadCountService.downloadBlobItem(AzureDownloadCountService.java:226) 
 		at org.eclipse.openvsx.storage.AzureDownloadCountService.processBlobItem(AzureDownloadCountService.java:184) 
 		at org.eclipse.openvsx.storage.AzureDownloadCountService.processResponse(AzureDownloadCountService.java:148) 
 		at org.eclipse.openvsx.storage.AzureDownloadCountService.updateDownloadCounts(AzureDownloadCountService.java:121) 
 		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
 		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) 
 		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
 		at java.base/java.lang.reflect.Method.invoke(Method.java:568) 
 		at org.jobrunr.server.runner.AbstractBackgroundJobRunner$BackgroundJobWorker.invokeJobMethod(AbstractBackgroundJobRunner.java:65) 
 		at org.jobrunr.server.runner.AbstractBackgroundJobRunner$BackgroundJobWorker.run(AbstractBackgroundJobRunner.java:39) 
 		at org.jobrunr.server.runner.AbstractBackgroundJobRunner.run(AbstractBackgroundJobRunner.java:21) 
 		at org.jobrunr.server.BackgroundJobPerformer.runActualJob(BackgroundJobPerformer.java:95) 
 		at org.jobrunr.server.BackgroundJobPerformer.performJob(BackgroundJobPerformer.java:68) 
 		at org.jobrunr.server.BackgroundJobPerformer.run(BackgroundJobPerformer.java:46) 
 		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) 
 		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 
 		at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) 
 		at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 
 		at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 
 		... 1 common frames omitted 
  
 o.e.o.storage.AzureDownloadCountService  : << updateDownloadCounts 
Lenguaje dominante
Java
Estrellas
2.1k
Forks
362
Merge medio
1 d 3 h
PR fusionados (30 d)
44

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de eclipse-openvsx/openvsx

Todos los issues de eclipse-openvsx/openvsx

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.