trinodb / trino

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)
https://trino.io
Apache License 2.0
10.15k stars 2.93k forks source link

TestKafkaDistributed.init fails on Apple Silicon #18502

Open elonazoulay opened 1 year ago

elonazoulay commented 1 year ago

The TestKafkaDistributed.init method fails with the following message on apple silicon. I tried increasing the following kafka producer properties with no luck:

I then tried this same branch on a linux ec2 instance (default amazon ami) and the test passes repeatedly when run in isolation with the above arguments: 3g heap, skip test container architecture check. The test also passes in ci.

[ERROR] Failures: 
[ERROR]   TestKafkaDistributed>AbstractTestQueryFramework.init:104->createQueryRunner:30 » QueryFailed Actual written bytes: '374374' not equal to expected written bytes: '375837'

One hypothesis is that the advertised listeners are not set correctly but I am still investigating. Using apple m1 with docker desktop v24.0.2 and virtualization framework + experimental feature to use rosetta enabled.

elonazoulay commented 1 year ago

For context, I was testing #18485 and #16828.

elonazoulay commented 1 year ago

The init method fails when trying to insert from the tpch.tiny.customers table.