[BUG] DataLakeFileSystemAsyncClient.createIfNotExists returns true when the file system already exists
メンテナーはふだん 1 日以内に返信
@browndav-msft がすでに取り組んでいます。
2026年11月6日 から。
評価
この issue はまだ評価されていません。
説明
Describe the bug
DataLakeFileSystemAsyncClient.createIfNotExists() emits true when the file system already exists (409). The sync DataLakeFileSystemClient.createIfNotExists() correctly returns false, and so does BlobContainerAsyncClient.createIfNotExists().
Root cause
In azure-storage-file-datalake 12.26.4, DataLakeFileSystemAsyncClient.createIfNotExistsWithResponse(Map, PublicAccessType) maps the result of BlobContainerAsyncClient.createIfNotExistsWithResponse(...) with a lambda equivalent to:
response -> new SimpleResponse<>(response, true)
So the value is always true. The status code of the wrapped response is still 409 when the file system already exists.
To Reproduce
Point the async DataLake client at a server that answers every request with 409 and call createIfNotExists().
Code Snippet
HttpServer server = HttpServer.create(new InetSocketAddress("127.0.0.1", 0), 0);
server.createContext("/", exchange -> { exchange.sendResponseHeaders(409, -1); exchange.close(); });
server.start();
DataLakeServiceClientBuilder builder = new DataLakeServiceClientBuilder()
.endpoint("http://127.0.0.1:" + server.getAddress().getPort() + "/devstoreaccount1")
.credential(new StorageSharedKeyCredential("devstoreaccount1",
"Eby8vdM02xNOcqCfGfP/mkP3+rZTt5tF5If1fMvj08QzZLOiT4E5lZaz0smU4wFwbIsrpPoIQx=="));
System.out.println(builder.buildClient().getFileSystemClient("fs").createIfNotExists()); // false
System.out.println(builder.buildAsyncClient().getFileSystemAsyncClient("fs").createIfNotExists().block()); // true
Expected behavior
The async client returns false when the file system already exists, matching the sync client and BlobContainerAsyncClient.
Workaround
Call createIfNotExistsWithResponse(null, null) and check getStatusCode() != 409.
Setup
- OS: Ubuntu 20.04 (x86_64)
- Library/Libraries: azure-storage-file-datalake 12.26.4, azure-storage-blob 12.36.0
- Java version: 25 (GraalVM 25.0.4)
- Frameworks: none
Information Checklist
- Bug Description Added
- Repro Steps Added
- Setup information Added
- 主要言語
- Java
- スター
- 2.6k
- フォーク
- 2.2k
- 平均マージ
- 2日 2時間
- マージ済み PR(30日)
- 257
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/azure-sdk-for-java のほかの issue
-
[Spring Cloud Azure] Improve Javadoc and startup guidance for allowed-group-names vs allowed-group-ids in AadAuthenticationProperties対応中かも @himanchalkaushale が 7 日前に担当しました。 オープンazure-spring azure-spring-aad Client
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Azure/azure-sdk-for-java#51046 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
mgmt, in track 1 migration guide, call out that file-based authentication method is not recommended再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンAzure.Identity
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
Azure/azure-sdk-for-java#48894 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] RequestRetryOptions tryTimeout has no effect on synchronous Storage clients対応中かも @browndav-msft が今日担当しました。 オープンClient customer-reported needs-team-attention question Service Attention Storage
Azure/azure-sdk-for-java#51144 · コメント 2 件 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
Client Cosmos
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
Azure/azure-sdk-for-java#51134 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Client Cosmos
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
Azure/azure-sdk-for-java#51133 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
Azure/azure-sdk-for-java の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
googleads/googleads-mobile-flutter#1541 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Julow/Unexpected-Keyboard#1490 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
Vakore/ZappierGames#275 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
unitycatalog/unitycatalog#2148 ·
メンテナーはふだん 2 日以内に返信
-
enhancement priority: low
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
Riptide-Labs/riptide#1060 ·
メンテナーはふだん 1 日以内に返信