提交 dc8f39c7 编写于 作者: B Boyang Jerry Peng 提交者: Sijie Guo

fix bug in scheduler (#260)

上级 7370fbc9
......@@ -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
......
......@@ -132,9 +132,6 @@ public class SchedulerManager implements AutoCloseable {
.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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册