You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org> on 2020/09/25 01:25:54 UTC

[Impala-ASF-CR] IMPALA-9180 (part 2): Remove legacy ImpalaInternalService

Wenzhe Zhou has uploaded this change for review. ( http://gerrit.cloudera.org:8080/16506


Change subject: IMPALA-9180 (part 2): Remove legacy ImpalaInternalService
......................................................................

IMPALA-9180 (part 2): Remove legacy ImpalaInternalService

In current ExecuterBlacklist class, we've keyed maps on a
TNetworkAddress of a backend. To simply the logic in the class,
change it to key off of the UniqueIdPB backend id, eg. refactor
'executor_list_' to no longer be a map<address -> list<backend>>
and instead make it a map<backend_id, backend>.

Testing:
 - Passed test_blacklist.py and test_query_retries.py.
 - Passed core tests.

Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
---
M be/src/scheduling/executor-blacklist.cc
M be/src/scheduling/executor-blacklist.h
M be/src/util/uid-util.h
3 files changed, 75 insertions(+), 103 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/06/16506/1
-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 1
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org>.
Wenzhe Zhou has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 8:

Found following error message in tidylog.txt. It looks like flaky Jenkins issue. "01:03:32 [ERROR] Failed to execute goal on project impala-frontend: Could not resolve dependencies for project org.apache.impala:impala-frontend:jar:0.1-SNAPSHOT: Failed to collect dependencies at org.apache.ranger:ranger-plugins-common:jar:2.0.0.7.2.1.0-287 -> org.apache.ranger:ranger-plugin-classloader:jar:2.0.0.7.2.1.0-287: Failed to read artifact descriptor for org.apache.ranger:ranger-plugin-classloader:jar:2.0.0.7.2.1.0-287: Could not transfer artifact org.apache.ranger:ranger-plugin-classloader:pom:2.0.0.7.2.1.0-287 from/to impala.cdp.repo (https://native-toolchain.s3.amazonaws.com/build/cdp_components/4493826/maven): Connect to native-toolchain.s3.amazonaws.com:443 [native-toolchain.s3.amazonaws.com/52.219.112.210] failed: Connection timed out (Connection timed out) -> [Help 1]".


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 8
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Oct 2020 06:36:40 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 9: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 9
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Oct 2020 16:10:57 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 7:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/7334/ : 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/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 7
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Oct 2020 17:58:40 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

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/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................

IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist

In current ExecuterBlacklist class, we've keyed maps on a
TNetworkAddress of a backend. To simply the logic for the class,
changes it to key off of the UniqueIdPB backend-id, eg. refactor
'executor_list_' to no longer be a map<address -> list<backend>>
and instead makes it a map<backend_id, backend>.
Also fixes a minor bug with the calculation of elapsed time when
a backend that was on probation is re-blacklisted.

Testing:
 - Passed test_blacklist.py and test_query_retries.py.
 - Passed exhaustive tests.

Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Reviewed-on: http://gerrit.cloudera.org:8080/16506
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M be/src/scheduling/executor-blacklist.cc
M be/src/scheduling/executor-blacklist.h
2 files changed, 69 insertions(+), 103 deletions(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved; Verified

-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 10
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 9: Verified+1


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 9
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Oct 2020 21:25:55 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Qifan Chen (Code Review)" <ge...@cloudera.org>.
Qifan Chen has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 5:

(4 comments)

Sorry I was not able to finish the review before Thomas' +2.

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.h
File be/src/scheduling/executor-blacklist.h:

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.h@136
PS5, Line 136: executor
nit. executor->'executor entry'


http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.h@137
PS5, Line 137: blacklisted
             :   /// and ones that are on probation
nit: either blacklisted or on probation.


http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc
File be/src/scheduling/executor-blacklist.cc:

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc@51
PS5, Line 51:   int64_t elapsed = MonotonicMillis() - entry.blacklist_time_ms;
            :       entry.state = State::BLACKLISTED;
            :       entry.blacklist_time_ms = MonotonicMillis();
            :       entry.cause = cause;
Should MonotonicMillis() be called only once? That is, in a single time point, we update the entry. I think it would make things clear logically.


http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc@164
PS5, Line 164: "on probation")
Should we also check on NOT_BLACKLISTED here?



-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 5
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Wed, 30 Sep 2020 18:51:03 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org>.
Wenzhe Zhou has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/16506/2/be/src/scheduling/executor-blacklist.cc
File be/src/scheduling/executor-blacklist.cc:

http://gerrit.cloudera.org:8080/#/c/16506/2/be/src/scheduling/executor-blacklist.cc@52
PS2, Line 52: entry.state = State::BLACKLISTED;
            :       entry.blacklist_time_ms = MonotonicMillis();
            :       entry.cause = cause;
> Could you also briefly mention this change in the commit message for clarit
Done.


http://gerrit.cloudera.org:8080/#/c/16506/2/be/src/util/uid-util.h
File be/src/util/uid-util.h:

http://gerrit.cloudera.org:8080/#/c/16506/2/be/src/util/uid-util.h@133
PS2, Line 133: struct UniqueIdPBEqual {
             :   bool operator()(const UniqueIdPB& l_uid, const UniqueIdPB& r_uid) const {
             :     return l_uid.lo() == r_uid.lo() && l_uid.hi() == r_uid.hi();
             :   }
             : };
> I think you can just use what's already defined in container-util.h
Did not find the equivalent structure for UniqueIdPB in container-util.h. Moved this structure to container-util.h.



-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Wed, 30 Sep 2020 01:59:05 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org>.
Wenzhe Zhou has uploaded a new patch set (#5). ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................

IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist

In current ExecuterBlacklist class, we've keyed maps on a
TNetworkAddress of a backend. To simply the logic for the class,
changes it to key off of the UniqueIdPB backend-id, eg. refactor
'executor_list_' to no longer be a map<address -> list<backend>>
and instead makes it a map<backend_id, backend>.
Also fixes a minor bug with the calculation of elapsed time when
a backend that was on probation is re-blacklisted.

Testing:
 - Passed test_blacklist.py and test_query_retries.py.
 - Passed exhaustive tests.

Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
---
M be/src/scheduling/executor-blacklist.cc
M be/src/scheduling/executor-blacklist.h
2 files changed, 67 insertions(+), 103 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/06/16506/5
-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 5
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 6:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/7328/ : 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/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 6
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Wed, 30 Sep 2020 22:00:48 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 8:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/6515/ DRY_RUN=false


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 8
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Oct 2020 00:41:43 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 8: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 8
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Mon, 05 Oct 2020 18:31:30 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org>.
Wenzhe Zhou has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 5:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.h
File be/src/scheduling/executor-blacklist.h:

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.h@136
PS5, Line 136: executor
> nit. executor->'executor entry'
done


http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.h@137
PS5, Line 137: blacklisted
             :   /// and ones that are on probation
> nit: either blacklisted or on probation.
done


http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc
File be/src/scheduling/executor-blacklist.cc:

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc@51
PS5, Line 51:   int64_t elapsed = MonotonicMillis() - entry.blacklist_time_ms;
            :       entry.state = State::BLACKLISTED;
            :       entry.blacklist_time_ms = MonotonicMillis();
            :       entry.cause = cause;
> Should MonotonicMillis() be called only once? That is, in a single time poi
done


http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc@164
PS5, Line 164: "on probation")
> Should we also check on NOT_BLACKLISTED here?
No, don't need.



-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 5
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Wed, 30 Sep 2020 21:36:09 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org>.
Wenzhe Zhou has uploaded a new patch set (#7). ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................

IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist

In current ExecuterBlacklist class, we've keyed maps on a
TNetworkAddress of a backend. To simply the logic for the class,
changes it to key off of the UniqueIdPB backend-id, eg. refactor
'executor_list_' to no longer be a map<address -> list<backend>>
and instead makes it a map<backend_id, backend>.
Also fixes a minor bug with the calculation of elapsed time when
a backend that was on probation is re-blacklisted.

Testing:
 - Passed test_blacklist.py and test_query_retries.py.
 - Passed exhaustive tests.

Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
---
M be/src/scheduling/executor-blacklist.cc
M be/src/scheduling/executor-blacklist.h
2 files changed, 69 insertions(+), 103 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/06/16506/7
-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 7
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>

[Impala-ASF-CR] IMPALA-9180 (part 2): Remove legacy ImpalaInternalService

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Remove legacy ImpalaInternalService
......................................................................


Patch Set 1:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/7283/ : 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/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 1
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Fri, 25 Sep 2020 01:47:38 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 9:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/6520/ DRY_RUN=false


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 9
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Oct 2020 16:10:58 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 8:

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/6515/


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 8
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Oct 2020 06:10:40 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org>.
Wenzhe Zhou has uploaded a new patch set (#2). ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................

IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist

In current ExecuterBlacklist class, we've keyed maps on a
TNetworkAddress of a backend. To simply the logic for the class,
change it to key off of the UniqueIdPB backend-id, eg. refactor
'executor_list_' to no longer be a map<address -> list<backend>>
and instead make it a map<backend_id, backend>.

Testing:
 - Passed test_blacklist.py and test_query_retries.py.
 - Passed exhaustive tests.

Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
---
M be/src/scheduling/executor-blacklist.cc
M be/src/scheduling/executor-blacklist.h
M be/src/util/uid-util.h
3 files changed, 75 insertions(+), 103 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/06/16506/2
-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Thomas Tauber-Marshall (Code Review)" <ge...@cloudera.org>.
Thomas Tauber-Marshall has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 4:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/16506/4/be/src/scheduling/executor-blacklist.h
File be/src/scheduling/executor-blacklist.h:

http://gerrit.cloudera.org:8080/#/c/16506/4/be/src/scheduling/executor-blacklist.h@139
PS4, Line 139: std::hash<UniqueIdPB>
nit: I think this is unnecessary



-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 4
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Wed, 30 Sep 2020 17:28:19 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Qifan Chen (Code Review)" <ge...@cloudera.org>.
Qifan Chen has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 7: Code-Review+1

(1 comment)

Thanks a lot!

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc
File be/src/scheduling/executor-blacklist.cc:

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc@164
PS5, Line 164: ON_PROBATION);
> Added a DCHECK here
Done



-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 7
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Mon, 05 Oct 2020 17:40:07 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Thomas Tauber-Marshall (Code Review)" <ge...@cloudera.org>.
Thomas Tauber-Marshall has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 5: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 5
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Wed, 30 Sep 2020 18:22:31 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 4:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/7318/ : 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/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 4
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Wed, 30 Sep 2020 04:48:05 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org>.
Wenzhe Zhou has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 8:

Checked log. The build failure was caused by IMPALA-9923 and IMPALA-9049 (TestDdlStatements.test_sync_ddl_drop is flaky).


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 8
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Tue, 06 Oct 2020 00:37:42 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org>.
Wenzhe Zhou has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 6:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc
File be/src/scheduling/executor-blacklist.cc:

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc@164
PS5, Line 164: 
> Yes, looks like the check is not needed since no entries in the list will b
Added a DCHECK here



-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 6
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Oct 2020 17:36:39 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Thomas Tauber-Marshall (Code Review)" <ge...@cloudera.org>.
Thomas Tauber-Marshall has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 7: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 7
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Mon, 05 Oct 2020 18:31:16 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 5:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/7325/ : 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/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 5
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Wed, 30 Sep 2020 18:20:25 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 8:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/6509/ DRY_RUN=false


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 8
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Mon, 05 Oct 2020 18:31:31 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Qifan Chen (Code Review)" <ge...@cloudera.org>.
Qifan Chen has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 6:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc
File be/src/scheduling/executor-blacklist.cc:

http://gerrit.cloudera.org:8080/#/c/16506/5/be/src/scheduling/executor-blacklist.cc@164
PS5, Line 164: 
> No, don't need.
Yes, looks like the check is not needed since no entries in the list will be set to a state of NOT_BLACKLISTED. However, we may change this in the future, say by adding a new state enum or allowing an entry to be NOT_BLACKLISTED.



-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 6
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Thu, 01 Oct 2020 13:44:41 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Thomas Tauber-Marshall (Code Review)" <ge...@cloudera.org>.
Thomas Tauber-Marshall has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/16506/2/be/src/scheduling/executor-blacklist.cc
File be/src/scheduling/executor-blacklist.cc:

http://gerrit.cloudera.org:8080/#/c/16506/2/be/src/scheduling/executor-blacklist.cc@52
PS2, Line 52: entry.state = State::BLACKLISTED;
            :       entry.blacklist_time_ms = MonotonicMillis();
            :       entry.cause = cause;
Could you also briefly mention this change in the commit message for clarity, i.e. something like "Also fixes a minor bug with the calculation of elapsed time when a backend that was on probation is re-blacklisted"


http://gerrit.cloudera.org:8080/#/c/16506/2/be/src/util/uid-util.h
File be/src/util/uid-util.h:

http://gerrit.cloudera.org:8080/#/c/16506/2/be/src/util/uid-util.h@133
PS2, Line 133: struct UniqueIdPBEqual {
             :   bool operator()(const UniqueIdPB& l_uid, const UniqueIdPB& r_uid) const {
             :     return l_uid.lo() == r_uid.lo() && l_uid.hi() == r_uid.hi();
             :   }
             : };
I think you can just use what's already defined in container-util.h



-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Comment-Date: Tue, 29 Sep 2020 22:51:21 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 2:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/7284/ : 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/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Comment-Date: Fri, 25 Sep 2020 19:57:56 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org>.
Wenzhe Zhou has uploaded a new patch set (#6). ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................

IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist

In current ExecuterBlacklist class, we've keyed maps on a
TNetworkAddress of a backend. To simply the logic for the class,
changes it to key off of the UniqueIdPB backend-id, eg. refactor
'executor_list_' to no longer be a map<address -> list<backend>>
and instead makes it a map<backend_id, backend>.
Also fixes a minor bug with the calculation of elapsed time when
a backend that was on probation is re-blacklisted.

Testing:
 - Passed test_blacklist.py and test_query_retries.py.
 - Passed exhaustive tests.

Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
---
M be/src/scheduling/executor-blacklist.cc
M be/src/scheduling/executor-blacklist.h
2 files changed, 68 insertions(+), 103 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/06/16506/6
-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 6
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................


Patch Set 8: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/6509/


-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 8
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Qifan Chen <qc...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Comment-Date: Mon, 05 Oct 2020 23:56:24 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-9180 (part 2): Refactor executor list map of ExecuterBlacklist

Posted by "Wenzhe Zhou (Code Review)" <ge...@cloudera.org>.
Wenzhe Zhou has uploaded a new patch set (#4). ( http://gerrit.cloudera.org:8080/16506 )

Change subject: IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist
......................................................................

IMPALA-9180 (part 2): Refactor executor_list_ map of ExecuterBlacklist

In current ExecuterBlacklist class, we've keyed maps on a
TNetworkAddress of a backend. To simply the logic for the class,
changes it to key off of the UniqueIdPB backend-id, eg. refactor
'executor_list_' to no longer be a map<address -> list<backend>>
and instead makes it a map<backend_id, backend>.
Also fixes a minor bug with the calculation of elapsed time when
a backend that was on probation is re-blacklisted.

Testing:
 - Passed test_blacklist.py and test_query_retries.py.
 - Passed exhaustive tests.

Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
---
M be/src/scheduling/executor-blacklist.cc
M be/src/scheduling/executor-blacklist.h
2 files changed, 67 insertions(+), 103 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/06/16506/4
-- 
To view, visit http://gerrit.cloudera.org:8080/16506
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib1ae082d0e080088756af91b5b770752ca8b3aa1
Gerrit-Change-Number: 16506
Gerrit-PatchSet: 4
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tm...@cloudera.com>
Gerrit-Reviewer: Wenzhe Zhou <wz...@cloudera.com>