smiroslav commented on code in PR #800:
URL: https://github.com/apache/jackrabbit-oak/pull/800#discussion_r1053340481


##########
oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/TarWriter.java:
##########
@@ -183,7 +183,14 @@ void flush() throws IOException {
             }
 
             if (doFlush) {
-                archive.flush();
+                archive.flush(() -> {
+                    try {
+                        writeBinaryReferences();

Review Comment:
   I have run benchmark tests using Azure blob store (using 
"ConcurrentWriteTest" from oak-benchmark), and I haven't noticed degradation. 
   
   Changed code:
   ```
   (⎈|ethos13-prod-gbr9:ns-team-aem-cm-prd-n19203) oak-benchmarks - (OAK-10022) 
$ java -jar target/oak-benchmarks-*-SNAPSHOT.jar --azure 
"DefaultEndpointsProtocol=https;AccountName=smiljanisp;AccountKey=<account_key>;"
 ConcurrentWriteTest  Oak-Segment-Azure 
   Apache Jackrabbit Oak 1.45-SNAPSHOT
   # ConcurrentWriteTest              C     min     10%     50%     90%     max 
    N       mean 
   Oak-Segment-Azure                  1      53      60      77     494   1892  
   328     183
   Oak-Segment-Azure                  1      45      60      73     477   1562  
   359     168
   Oak-Segment-Azure                  1      53      63      76     388   1125  
   390     155
   Oak-Segment-Azure                  1      53      64     102     521   1594  
   285     211
   ```
   Trunk:
   ```
   (⎈|ethos13-prod-gbr9:ns-team-aem-cm-prd-n19203) oak-benchmarks - (trunk) $ 
java -jar target/oak-benchmarks-*-SNAPSHOT.jar benchmark  --azure 
"DefaultEndpointsProtocol=https;AccountName=smiljanisp;AccountKey=<account_key>;"
 ConcurrentWriteTest  Oak-Segment-Azure  
   Apache Jackrabbit Oak 1.45-SNAPSHOT
   # ConcurrentWriteTest              C     min     10%     50%     90%     max 
    N       mean 
   Oak-Segment-Azure                  1      56      71     107     746   1816  
   243     247
   Oak-Segment-Azure                  1      54      61      77     368   1643  
   379     159
   ```



-- 
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]

Reply via email to