Skip to content

Commit

Permalink
fix bug in scheduler (apache#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrypeng authored and sijie committed Mar 4, 2018
1 parent 7370fbc commit dc8f39c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion pulsar-functions/conf/function_worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ workerPort: 6750
functionMetadataTopicName: metadata
functionMetadataSnapshotsTopicPath: snapshots
clusterCoordinationTopicName: coordinate
snapshotFreqMs: 600000
pulsarFunctionsNamespace: sample/standalone/functions
pulsarServiceUrl: pulsar://localhost:6650
pulsarWebServiceUrl: http://localhost:8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ private void invokeScheduler() {
.flatMap(stringMapEntry -> stringMapEntry.getValue().values().stream()).collect(Collectors.toList());

List<Function.Instance> needsAssignment = this.getUnassignedFunctionInstances(workerIdToAssignments, allInstances);
if (needsAssignment.isEmpty()) {
return;
}

List<Assignment> assignments = this.scheduler.schedule(
needsAssignment, currentAssignments, currentMembership);
Expand Down

0 comments on commit dc8f39c

Please sign in to comment.