Test failure in Singapore timezone [DBZ-4479]
- Dominant language
- HTML
- Stars
- 6
- Forks
- 9
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 1
Description
Migrated from [DBZ-4479](https://issues.redhat.com/browse/DBZ-4479)
The following is the error.
{code:java}
Test set: io.debezium.connector.postgresql.RecordsSnapshotProducerIT
-------------------------------------------------------------------------------
Tests run: 29, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 52.757 s <<< FAILURE! - in io.debezium.connector.postgresql.RecordsSnapshotProducerIT
io.debezium.connector.postgresql.RecordsSnapshotProducerIT.shouldSnapshotTimeArrayTypesAsKnownTypes Time elapsed: 1.967 s <<< FAILURE!
java.lang.AssertionError: Values don't match for timetza expected:<[11:51:02Z, 12:51:03Z]> but was:<[11:21:02Z, 12:21:03Z]>
at io.debezium.connector.postgresql.RecordsSnapshotProducerIT.assertReadRecord(RecordsSnapshotProducerIT.java:319)
at io.debezium.connector.postgresql.RecordsSnapshotProducerIT.lambda$shouldSnapshotTimeArrayTypesAsKnownTypes$23(RecordsSnapshotProducerIT.java:927)
at io.debezium.connector.postgresql.RecordsSnapshotProducerIT.shouldSnapshotTimeArrayTypesAsKnownTypes(RecordsSnapshotProducerIT.java:927)
{code}
More system info:
OS: Ubuntu 20.04 focal
Kernel: x86_64 Linux 5.11.0-43-generic
Shell: bash 5.0.17
CPU: Intel Core i7-10700K
GPU: AMD DIMGREY_CAVEFISH (DRM 3.40.0, 5.11.0-43-generic, LLVM 12.0.0)
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)
Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739)
Client: Docker Engine - Community
Version: 20.10.12
API version: 1.41
Go version: go1.16.12
Git commit: e91ed57
Built: Mon Dec 13 11:45:33 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.12
API version: 1.41 (minimum version 1.12)
Go version: go1.16.12
Git commit: 459d0df
Built: Mon Dec 13 11:43:42 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.12
GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Contributor guide
Research direction
Start by reproducing io.debezium.connector.postgresql.RecordsSnapshotProducerIT.shouldSnapshotTimeArrayTypesAsKnownTypes in the reported Singapore timezone and inspect RecordsSnapshotProducerIT.assertReadRecord at line 319. Compare the expected and actual timetza values and trace the timezone handling involved. Done means the test passes consistently in that environment without breaking the reported timestamp expectations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java, postgresql
- Domain
- databases, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100