Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure storage blob upgrade causes failed jobs #554

Open
Bdegraaf1234 opened this issue Apr 4, 2024 · 3 comments
Open

Azure storage blob upgrade causes failed jobs #554

Bdegraaf1234 opened this issue Apr 4, 2024 · 3 comments

Comments

@Bdegraaf1234
Copy link

After updating azure-storage-blob to 12.22.1 jobs start failing with the following error

2024-04-03 20:30:35 ERROR - Failed to run job restructure (Job:37)
java.lang.NullPointerException: Cannot invoke "com.azure.storage.blob.implementation.models.BlobItemPropertiesInternal.getLastModified()" because "this.internalProperties" is null
        at com.azure.storage.blob.models.BlobItemProperties.getLastModified(BlobItemProperties.java:81) ~[azure-storage-blob-12.22.1.jar:12.22.1]
        at org.radarbase.output.source.AzureSourceStorage$list$2.invokeSuspend(AzureSourceStorage.kt:37) ~[radar-output-restructure-2.3.3.jar:2.3.3]
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[kotlin-stdlib-1.9.22.jar:1.9.22-release-704]
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) ~[kotlinx-coroutines-core-jvm-1.7.3.jar:?]
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) ~[kotlinx-coroutines-core-jvm-1.7.3.jar:?]
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) ~[kotlinx-coroutines-core-jvm-1.7.3.jar:?]
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) ~[kotlinx-coroutines-core-jvm-1.7.3.jar:?]
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684) ~[kotlinx-coroutines-core-jvm-1.7.3.jar:?]
@Bdegraaf1234
Copy link
Author

Bdegraaf1234 commented Apr 4, 2024

Looks like the issue is caused by a change in how "prefix" items are handled (these are directories?)

Azure/azure-sdk-for-java#38168

Where you used to get a null if you called getLastmodified() on a prefix item, you now get an error.

@Bdegraaf1234
Copy link
Author

Bdegraaf1234 added a commit that referenced this issue Apr 4, 2024
Bdegraaf1234 added a commit that referenced this issue Apr 4, 2024
Bdegraaf1234 added a commit that referenced this issue Apr 4, 2024
Bdegraaf1234 added a commit that referenced this issue Apr 4, 2024
Bdegraaf1234 added a commit that referenced this issue Apr 4, 2024
@Bdegraaf1234
Copy link
Author

Bdegraaf1234 commented Apr 4, 2024

Seems to only be an issue for v2 as directories are handled differently after that. merging into branch v2 in #555

Bdegraaf1234 added a commit that referenced this issue Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant