Azure / Azure/Azurite

The value of property accessTierChangeTime is set when upload blob on block blob in Azurite

Open
#820 2 comments 0 reactions 1 assignee Claimed by @blueww View on GitHub
alignment blob-storage stale
Dominant language
TypeScript
Stars
2.3k
Forks
393
Avg merge
1d 20h
Merged PRs (30d)
36

Description

**Error Description:**
In Azure, property `accessTierChangeTime` is null when upload blob on block blob.
But in Azurite, property `accessTierChangeTime` has a value in this case.

**To Reproduce:**
Please run the demo code as following:
```Typescript
import { BlobServiceClient, StorageSharedKeyCredential } from "@azure/storage-blob";
import { assert } from "chai";

async function main() {
const blobServiceClient = new BlobServiceClient("", new StorageSharedKeyCredential("", ""));
const containerClient = blobServiceClient.getContainerClient("");
await containerClient.create();
const blockBlobClient = containerClient.getBlockBlobClient("");
const content = "Hello World";
await blockBlobClient.upload(content, content.length);

const properties = await blockBlobClient.getProperties();
assert.ok(!properties.accessTierChangedOn);
}

main();
```

**Error Track:**
[https://github.com/Azure/Azurite/blob/master/src/blob/handlers/BlockBlobHandler.ts#L119](https://github.com/Azure/Azurite/blob/master/src/blob/handlers/BlockBlobHandler.ts#L119)
![Screenshot 2021-06-08 163234](https://user-images.githubusercontent.com/20970631/121151739-36bdbd80-c877-11eb-9001-3120e271e401.png)
In Azurite, the value of property `accessTierChangeTime` is set when upload blob on block blob.

**Expected Behavior:**
In Azurite, property `accessTierChangeTime` is null when upload blob on block blob.

@jongio for notification.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.