Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG CDC data checksums inconsistent #14998

Closed
xuefengze opened this issue Feb 5, 2024 · 3 comments
Closed

PG CDC data checksums inconsistent #14998

xuefengze opened this issue Feb 5, 2024 · 3 comments
Assignees
Labels
found-by-chaos-mesh help wanted Issues that need help from contributors priority/high type/bug Something isn't working
Milestone

Comments

@xuefengze
Copy link
Contributor

xuefengze commented Feb 5, 2024

https://buildkite.com/risingwave-test/chaos-mesh/builds/484, data verification failed with q16.

rw version: nightly-20240204
TESTBED: medium-arm-all-affinity
Grafana Logs: https://grafana.test.risingwave-cloud.xyz/d/liz0yRCZz1/log-search-dashboard?orgId=1&from=now-3h&to=now&var-data_source=PE59595AED52CF917&var-namespace=longcmkf-20240205-025235&var-pod=benchmark-risingwave-compute-c-0&var-search=

step:

  • start ch_benchmark_pg_cdc
  • inject network faults to risingwave
  • after a few minutes, check to see if the data is consistent between RW and PG
image

chaos-mesh:

  • loss between compute and frontend
  • corrupt between compute and meta
  • delay between meta and frontend
  • set bandwidth limit to compute
image
@github-actions github-actions bot added this to the release-1.7 milestone Feb 5, 2024
@xuefengze xuefengze added the type/bug Something isn't working label Feb 5, 2024
@xuefengze
Copy link
Contributor Author

q16 failed without chaos-mesh.
https://buildkite.com/risingwave-test/ch-benchmark-pg-cdc/builds/200

@cyliu0
Copy link
Collaborator

cyliu0 commented Feb 6, 2024

Reproduced in ch-benchmark-pg-cdc-20240206-040048. The source tables are synced completed. Something wrong with the query.

https://buildkite.com/risingwave-test/ch-benchmark-pg-cdc/builds/203#018d7c92-00f0-4993-81ee-26288f847171

bin/qa consistency compare --upstream-driver postgres --upstream-port 54321 --upstream-user postgres --upstream-password postgres --upstream-database-name postgres --downstream-port 45678 --downstream-user root --downstream-password "" --downstream-database-name dev -t ch_benchmark_q16
{
    "consistent": false,
    "table-compare-results": [
        {
            "consistent": false,
            "table-checksums": [
                {
                    "url": "postgres://postgres:postgres@localhost:54321/postgres",
                    "table-name": "ch_benchmark_q16",
                    "table-checksum": 7521164819788754079,
                    "table-rows": 99977
                },
                {
                    "url": "postgres://root:@localhost:45678/dev",
                    "table-name": "ch_benchmark_q16",
                    "table-checksum": -7032245099579614466,
                    "table-rows": 99977
                }
            ]
        }
    ]
}

bin/qa consistency compare --upstream-driver postgres --upstream-port 54321 --upstream-user postgres --upstream-password postgres --upstream-database-name postgres --downstream-port 45678 --downstream-user root --downstream-password "" --downstream-database-name dev -t stock,item                                                         
{
    "consistent": true,
    "table-compare-results": [
        {
            "consistent": true,
            "table-checksums": [
                {
                    "url": "postgres://postgres:postgres@localhost:54321/postgres",
                    "table-name": "stock",
                    "table-checksum": 3121076962066288589,
                    "table-rows": 100000
                },
                {
                    "url": "postgres://root:@localhost:45678/dev",
                    "table-name": "stock",
                    "table-checksum": 3121076962066288589,
                    "table-rows": 100000
                }
            ]
        },
        {
            "consistent": true,
            "table-checksums": [
                {
                    "url": "postgres://postgres:postgres@localhost:54321/postgres",
                    "table-name": "item",
                    "table-checksum": -7200303760742608541,
                    "table-rows": 100000
                },
                {
                    "url": "postgres://root:@localhost:45678/dev",
                    "table-name": "item",
                    "table-checksum": -7200303760742608541,
                    "table-rows": 100000
                }
            ]
        }
    ]
}

@fuyufjh
Copy link
Member

fuyufjh commented Mar 6, 2024

Might be the same reason of #15057. Feel free to reopen if it recurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
found-by-chaos-mesh help wanted Issues that need help from contributors priority/high type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants