This is an automated email from the ASF dual-hosted git repository.

laskoviymishka pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-go.git


The following commit(s) were added to refs/heads/main by this push:
     new c4d5b993c test(encryption): give the concurrent ReadAt timing test 
more headroom (#2640)
c4d5b993c is described below

commit c4d5b993c934ad6d82d5b075ff364d6bab522c5b
Author: Andrei Tserakhau <[email protected]>
AuthorDate: Fri Nov 20 20:11:10 2026 +0100

    test(encryption): give the concurrent ReadAt timing test more headroom 
(#2640)
    
    TestStandardEncryptionManager_ConcurrentReadAtOverlaps runs 8 concurrent
    ReadAt calls over a file with a simulated per-read delay and requires them
    to finish within half of the serial time. With a 20 ms delay that bound is
    80 ms, which leaves about 60 ms for scheduler jitter. Under -race on the
    macOS runner that was not enough: the test took 85.8 ms on #2637 and
    failed the same way on #2602.
    
    Raise the delay to 100 ms and keep the bound at half the serial time
    (400 ms). Concurrent reads still take about one delay, and a serialized
    implementation takes about 800 ms and still fails.
    
    Signed-off-by: laskoviymishka <[email protected]>
---
 encryption/standard_manager_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/encryption/standard_manager_test.go 
b/encryption/standard_manager_test.go
index 49942809a..683ec6c4e 100644
--- a/encryption/standard_manager_test.go
+++ b/encryption/standard_manager_test.go
@@ -917,7 +917,7 @@ func (f *slowReadFile) ReadAt(p []byte, off int64) (int, 
error) {
 func TestStandardEncryptionManager_ConcurrentReadAtOverlaps(t *testing.T) {
        const (
                numBlocks = 8
-               delay     = 20 * time.Millisecond
+               delay     = 100 * time.Millisecond
        )
        mgr := newTestManager()
        ciphertext, keyMetadata := encryptAll(t, mgr, 
testData(numBlocks*plainBlockSize))

Reply via email to