vtutrinov commented on PR #6435:
URL: https://github.com/apache/ozone/pull/6435#issuecomment-2019716052
@ivandika3 I'd like to see a set of unit tests to check that the digest
message will be resetted in case of exception. An example is:
```java
ObjectEndpoint endpoint = spy(...);
try (MockedStatic staticMock = mockStatic(ObjectEndpointStreaming.class)) {
staticMock.when(() ->
ObjectEndpointStreaming.put(...)).thenThrow(IOException.class);
endpoint.put(...);
verify(endpoint.getETagProvider()).reset();
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]