questdb / questdb/questdb

Flaky LineTcpReceiverTest.testMetaDataSizeToHitExactly16K test

Open
#3,464 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Schrödinger's bug
Dominant language
Java
Stars
17.3k
Forks
1.6k
Avg merge
5d 10h
Merged PRs (30d)
28

Description

Describe the bug

Test failed in mac-other.
It often takes 5+ minutes to finish in CI .

2023-06-09T15:16:03.4356750Z 2023-06-09T15:16:03.434991Z I i.q.c.p.WriterPool << [table=метеорологично_време~1, thread=1020]
2023-06-09T15:16:03.4359220Z 2023-06-09T15:16:03.435247Z I i.q.c.p.ReaderPool open 'метеорологично_време1' [at=0:0]
2023-06-09T15:16:03.4374550Z 2023-06-09T15:16:03.437216Z I i.q.t.AbstractCairoTest Tearing down test LineTcpReceiverTest#testMetaDataSizeToHitExactly16K[WITH_WAL]
2023-06-09T15:16:03.4378780Z 2023-06-09T15:16:03.437470Z I i.q.c.p.ReaderPool closed 'метеорологично_време
1' [at=0:0, reason=POOL_CLOSED]
2023-06-09T15:16:04.6920460Z 2023-06-09T15:16:04.691161Z I i.q.c.TableWriter closed 'метеорологично_време'
2023-06-09T15:16:04.6931740Z 2023-06-09T15:16:04.691166Z I i.q.c.p.WriterPool closed [table=метеорологично_време~1, reason=POOL_CLOSED, by=1020]
2023-06-09T15:16:04.6932990Z 2023-06-09T15:16:04.691517Z I i.q.c.w.s.TableSequencerAPI releasing idle table sequencer [tableDir=метеорологично_време~1]
2023-06-09T15:16:08.5748090Z 2023-06-09T15:16:07.833570Z E i.q.t.TestListener ***** Test Failed *****io.questdb.test.cutlass.line.tcp.LineTcpReceiverTest.testMetaDataSizeToHitExactly16K[WITH_WAL] duration_ms=107297 :
2023-06-09T15:16:08.5749310Z java.lang.AssertionError: expected:<256> but was:<213>
2023-06-09T15:16:08.5749910Z at org.junit.Assert.fail(Assert.java:89)
2023-06-09T15:16:08.5750530Z at org.junit.Assert.failNotEquals(Assert.java:835)
2023-06-09T15:16:08.5751160Z at org.junit.Assert.assertEquals(Assert.java:647)
2023-06-09T15:16:08.5751760Z at org.junit.Assert.assertEquals(Assert.java:633)
2023-06-09T15:16:08.5752440Z at io.questdb.test.cutlass.line.tcp.LineTcpReceiverTest.testMetaDataSizeToHitExactly16K(LineTcpReceiverTest.java:594)
2023-06-09T15:16:08.5753130Z at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-06-09T15:16:08.5753800Z at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2023-06-09T15:16:08.5754510Z at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-06-09T15:16:08.5755180Z at java.lang.reflect.Method.invoke(Method.java:566)
2023-06-09T15:16:08.5755790Z at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
2023-06-09T15:16:08.5757150Z at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
2023-06-09T15:16:08.5757850Z at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
2023-06-09T15:16:08.5758530Z at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
2023-06-09T15:16:08.5759210Z at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
2023-06-09T15:16:08.5759860Z at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
2023-06-09T15:16:08.5760530Z at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61)
2023-06-09T15:16:08.5761220Z at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
2023-06-09T15:16:08.5761930Z at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
2023-06-09T15:16:08.5762600Z at java.util.concurrent.FutureTask.run(FutureTask.java:264)
2023-06-09T15:16:08.5763200Z at java.lang.Thread.run(Thread.java:829)
2023-06-09T15:16:08.5764060Z 2023-06-09T15:16:07.833667Z I i.q.t.TestListener <<<< io.questdb.test.cutlass.line.tcp.LineTcpReceiverTest.testMetaDataSizeToHitExactly16K[WITH_WAL] duration_ms=107297

To reproduce

No response

Expected Behavior

No response

Environment
- **QuestDB version**: latest master
- **OS**: mac
- **Browser**:
Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with LineTcpReceiverTest.testMetaDataSizeToHitExactly16K at LineTcpReceiverTest.java:594 and review the reported assertion failure, where 256 was expected but 213 was observed. Run this test on the affected mac environment and investigate why it can take over five minutes or fail intermittently. Done means the test reliably passes and no longer causes the reported CI delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.