Skip to content

[BUG] StorageInputStream::reset function throw Stream mark expired. when invoking reset method #43180

Open
@ihudedi

Description

@ihudedi

Hi
I am using azure storage version 12.28.1 (azure storage common version 12.27.1)
When try to use inputstream used by blobClient.openInputStream we got inputstream from type StorageInputStream
Calling to reset of this stream throw "Stream mark expired"
Attached content of the reset method.
public synchronized void reset() {
if (this.markedPosition + this.markExpiry < this.currentAbsoluteReadPosition) {
throw LOGGER.logExceptionAsError(new RuntimeException(MARK_EXPIRED));
}
this.reposition(this.markedPosition);
}

Could you please let me know what needs to be done that reset should be work.
I am using another code that invoke the reset method
Thanks,
Itay

Metadata

Metadata

Assignees

Labels

StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-more-infoIssue needs more information to triageneeds-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions