Failure when updating download stats

オープン
#1,412 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
azure, java
領域
backend, cloud

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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 
主要言語
Java
スター
2.1k
フォーク
362
平均マージ
1日 3時間
マージ済み PR(30日)
44

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-openvsx/openvsx のほかの issue

eclipse-openvsx/openvsx の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。