yandrey321 commented on code in PR #12210:
URL: https://github.com/apache/ozone/pull/12210#discussion_r4750624055
##########
hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/signature/TestStringToSignProducer.java:
##########
@@ -58,6 +62,30 @@ public class TestStringToSignProducer {
private static final String DATETIME = StringToSignProducer.TIME_FORMATTER.
format(LocalDateTime.now(ZoneOffset.UTC));
+ @Test
+ public void testHash() throws Exception {
+ final String expectedAbc =
+ "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad";
+ final String expectedXyz =
+ "3608bca1e44ea6c4d268eb6db02260269892c0b42b86bbf1e77a6fa16c3c9282";
+
+ List<CompletableFuture<Void>> futures = new ArrayList<>();
+ for (int i = 0; i < 3; i++) {
Review Comment:
I'd rather use executor pool with 3 threads to make sure that calculations
are run concurrently.
--
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]