autumnust commented on a change in pull request #2960: GOBBLIN-1120:
Reinitialize HelixManager when Helix participant check …
URL: https://github.com/apache/incubator-gobblin/pull/2960#discussion_r409839825
##########
File path:
gobblin-cluster/src/main/java/org/apache/gobblin/cluster/HelixAssignedParticipantCheck.java
##########
@@ -104,20 +122,23 @@ public boolean isCompleted()
*/
@Override
public void execute() throws CommitStepException {
- if (!helixManager.isConnected()) {
- try {
- helixManager.connect();
- } catch (Exception e) {
- throw new CommitStepException(String.format("Helix instance %s unable
to connect to Helix/ZK", helixInstanceName));
- }
- }
- TaskDriver taskDriver = new TaskDriver(helixManager);
log.info(String.format("HelixParticipantCheck step called for Helix
Instance: %s, Helix job: %s, Helix partition: %d",
this.helixInstanceName, this.helixJob, this.partitionNum));
//Query Helix to get the currently assigned participant for the Helix
partitionNum
Callable callable = () -> {
- JobContext jobContext = taskDriver.getJobContext(helixJob);
+ JobContext jobContext;
+ try {
+ TaskDriver taskDriver = new TaskDriver(helixManager);
+ jobContext = taskDriver.getJobContext(helixJob);
+ } catch (Exception e) {
Review comment:
What's the exact type of exception here? Shall we only catch that type
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services