You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by GitBox <gi...@apache.org> on 2022/11/18 06:09:08 UTC
[GitHub] [gobblin] homatthew commented on a diff in pull request #3603: [GOBBLIN-1744] Improve handling of null value edge cases when querying Helix
homatthew commented on code in PR #3603:
URL: https://github.com/apache/gobblin/pull/3603#discussion_r1026059223
##########
gobblin-cluster/src/main/java/org/apache/gobblin/cluster/HelixAssignedParticipantCheck.java:
##########
@@ -139,16 +139,24 @@ public void execute() throws CommitStepException {
if (jobContext != null) {
String participant = jobContext.getAssignedParticipant(partitionNum);
- if (participant != null) {
- boolean isAssignedParticipant = participant.equalsIgnoreCase(helixInstanceName);
- if (!isAssignedParticipant) {
- log.info("The current helix instance is not the assigned participant. helixInstanceName={}, assignedParticipant={}",
- helixInstanceName, participant);
- }
-
- return isAssignedParticipant;
+ if (participant == null) {
Review Comment:
Please read the description to understand why these null checks are needed in the PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@gobblin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org