mynameborat commented on code in PR #1667:
URL: https://github.com/apache/samza/pull/1667#discussion_r1227325820
##########
samza-core/src/main/java/org/apache/samza/operators/impl/OperatorImpl.java:
##########
@@ -134,7 +136,8 @@ public final void init(InternalTaskContext
internalTaskContext) {
this.taskModel = taskContext.getTaskModel();
this.callbackScheduler = taskContext.getCallbackScheduler();
handleInit(context);
- this.elasticityFactor = new
JobConfig(context.getJobContext().getConfig()).getElasticityFactor();
+ this.elasticityFactor = new JobConfig(config).getElasticityFactor();
+ this.operatorThreadPool = context.getTaskContext().getOperatorExecutor();
Review Comment:
I do have a TODO in `StreamOperatorTask` to tackle this.
My initial take on doing that refactor too also resulted in fixing a bunch
of tests and hence resorted to tackling it separately and keep the scope of
this PR to `OperatorImpl`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]