You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Quanlong Huang (Code Review)" <ge...@cloudera.org> on 2022/05/18 09:00:43 UTC
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Quanlong Huang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/18537
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
TestLocalCatalogRetries.test_replan_limit runs REFRESH and SELECT
queries concurrently on a table, and expects one of the query hits
inconsistent metadata.
This patches increases the chance of inconsistent metadata by injecting
a latency (500ms) between catalog fetches. So it's more likely that a
REFRESH finishes between two catalog fetches and causes inconsistent
metadata.
Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
---
M tests/custom_cluster/test_local_catalog.py
1 file changed, 5 insertions(+), 2 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/37/18537/1
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
Patch Set 2:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/10614/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 23 May 2022 06:47:17 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
Patch Set 3: Verified-1
Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/8141/
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 23 May 2022 14:25:33 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Quanlong Huang (Code Review)" <ge...@cloudera.org>.
Hello Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/18537
to look at the new patch set (#2).
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
TestLocalCatalogRetries.test_replan_limit runs REFRESH and SELECT
queries concurrently on a table, and expects one of the query hits
inconsistent metadata.
This patch increases the chance of inconsistent metadata by injecting
a latency (500ms) before each catalog fetch. So it's more likely that a
request is fetching stale metadata. Also bump up the timeout of
thread.join() so we can try out all the attempts.
Test
- Run test_replan_limit 1000 times without any error.
- Run all tests of TestLocalCatalogRetries 100 times without any error.
Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
---
M be/src/exec/catalog-op-executor.cc
M tests/custom_cluster/test_local_catalog.py
2 files changed, 13 insertions(+), 4 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/37/18537/2
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
Patch Set 3:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/8145/ DRY_RUN=false
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 23 May 2022 14:37:45 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Quanlong Huang (Code Review)" <ge...@cloudera.org>.
Quanlong Huang has posted comments on this change. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
Patch Set 1: Code-Review-1
Still see it fails
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Sat, 21 May 2022 23:37:30 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
Patch Set 2:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/18537/2/tests/custom_cluster/test_local_catalog.py
File tests/custom_cluster/test_local_catalog.py:
http://gerrit.cloudera.org:8080/#/c/18537/2/tests/custom_cluster/test_local_catalog.py@276
PS2, Line 276: print 'Attempt', attempt, 'client', str(client)
Is this intentional, or just debug code?
http://gerrit.cloudera.org:8080/#/c/18537/2/tests/custom_cluster/test_local_catalog.py@292
PS2, Line 292: t.join(600)
Will we usually need this much time? 10 mins looks a lot, especially if the test is serialized
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 23 May 2022 07:04:24 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
TestLocalCatalogRetries.test_replan_limit runs REFRESH and SELECT
queries concurrently on a table, and expects one of the query hits
inconsistent metadata.
This patch increases the chance of inconsistent metadata by injecting
a latency (500ms) before each catalog fetch. So it's more likely that a
request is fetching stale metadata. Also bump up the timeout of
thread.join() so we can try out all the attempts.
Test
- Run test_replan_limit 1000 times without any error.
- Run all tests of TestLocalCatalogRetries 100 times without any error.
Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Reviewed-on: http://gerrit.cloudera.org:8080/18537
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M be/src/exec/catalog-op-executor.cc
M tests/custom_cluster/test_local_catalog.py
2 files changed, 13 insertions(+), 4 deletions(-)
Approvals:
Impala Public Jenkins: Looks good to me, approved; Verified
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 4
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Quanlong Huang (Code Review)" <ge...@cloudera.org>.
Quanlong Huang has posted comments on this change. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
Patch Set 2:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/18537/2/tests/custom_cluster/test_local_catalog.py
File tests/custom_cluster/test_local_catalog.py:
http://gerrit.cloudera.org:8080/#/c/18537/2/tests/custom_cluster/test_local_catalog.py@276
PS2, Line 276: print 'Attempt', attempt, 'client', str(client)
> Is this intentional, or just debug code?
I add them intentionally so it's easy to know how many attempts have been tried in a thread. Before this patch, the timeout is 30s so neither thread can try 200 attempts. It took me a while to realize this. So I think adding this will be helpful. Also it's not that verbose since we already log the query string for each attempt.
http://gerrit.cloudera.org:8080/#/c/18537/2/tests/custom_cluster/test_local_catalog.py@292
PS2, Line 292: t.join(600)
> Will we usually need this much time? 10 mins looks a lot, especially if the
It's just a safe guard in case the threads hang. Normally they will exit after trying at most 200 attempts, and usually they don't need that much attempts.
In my tests, the whole run of TestLocalCatalogRetries took 1 min 27 sec. Here are the time of the 4 tests:
Test name Duration Status
test_fetch_metadata_retry 13 sec Passed
test_invalidation_races 26 sec Passed
test_replan_limit 34 sec Passed
test_replan_on_stale_metadata 12 sec Passed
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 23 May 2022 08:54:29 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
Patch Set 2: Code-Review+2
Thanks for the explanations, lgtm!
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 2
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 23 May 2022 09:09:15 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
Patch Set 1:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/10592/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 18 May 2022 09:22:00 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
Patch Set 3: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 23 May 2022 19:04:23 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
Patch Set 3: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 23 May 2022 10:00:32 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-7864: (Addendum) Deflake test replan limit by postponing catalog fetches
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/18537 )
Change subject: IMPALA-7864: (Addendum) Deflake test_replan_limit by postponing catalog fetches
......................................................................
Patch Set 3:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/8141/ DRY_RUN=false
--
To view, visit http://gerrit.cloudera.org:8080/18537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia5bdca7402039f1f24b7bf19595c2541fa32d0ad
Gerrit-Change-Number: 18537
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Comment-Date: Mon, 23 May 2022 10:00:33 +0000
Gerrit-HasComments: No