Skip to content

Conversation

@ptupitsyn
Copy link
Contributor

@ptupitsyn ptupitsyn commented Jun 21, 2024

  • Add ReceiverDescriptor parameter object to Data Streamer similar to JobDescriptor in Compute API.
  • Unlike Compute, DataStreamerOptions are not included in ReceiverDescriptor, because semantically they are not related: options affect client-side streaming logic, and do not affect the receiver.

https://issues.apache.org/jira/browse/IGNITE-22441

* @return This builder.
*/
public Builder units(List<DeploymentUnit> units) {
this.units = units;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we copy List?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't copy in JobDescriptor. Also, units() property exposes a mutable List, so we would need to copy there as well for full protection. I don't think it's worth it, let's keep as is for now.

@ptupitsyn ptupitsyn merged commit c662935 into apache:main Jun 21, 2024
@ptupitsyn ptupitsyn deleted the ignite-22441 branch June 21, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants