[BUG] DataLakeFileSystemAsyncClient.createIfNotExists returns true when the file system already exists
Los mantenedores suelen responder en 1 día
@browndav-msft ya está trabajando en esto.
Desde el 6/11/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- Java
- Estrellas
- 2.6k
- Forks
- 2.2k
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 257
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/azure-sdk-for-java
-
[Spring Cloud Azure] Improve Javadoc and startup guidance for allowed-group-names vs allowed-group-ids in AadAuthenticationPropertiesPosiblemente ocupada @himanchalkaushale la tomó hace 7 días. Abiertoazure-spring azure-spring-aad Client
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Azure/azure-sdk-for-java#51046 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
mgmt, in track 1 migration guide, call out that file-based authentication method is not recommendedQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. AbiertoAzure.Identity
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
Azure/azure-sdk-for-java#48894 ·
Los mantenedores suelen responder en 1 día
-
[BUG] RequestRetryOptions tryTimeout has no effect on synchronous Storage clientsPosiblemente ocupada @browndav-msft la tomó hoy. AbiertoClient customer-reported needs-team-attention question Service Attention Storage
Azure/azure-sdk-for-java#51144 · 2 comentarios · 1 reacción · 2 asignados ·
Los mantenedores suelen responder en 1 día
-
Client Cosmos
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Azure/azure-sdk-for-java#51134 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Client Cosmos
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Azure/azure-sdk-for-java#51133 · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de Azure/azure-sdk-for-java
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
googleads/googleads-mobile-flutter#1541 ·
Los mantenedores suelen responder en 4 días
-
Keyboard crashes Chrome tabsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Julow/Unexpected-Keyboard#1490 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Vakore/ZappierGames#275 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
unitycatalog/unitycatalog#2148 ·
Los mantenedores suelen responder en 2 días
-
enhancement priority: low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Riptide-Labs/riptide#1060 ·
Los mantenedores suelen responder en 1 día