Content-Length: 351314 | pFad | http://github.com/apache/ignite/pull/12188

8C IGNITE-25359 BinaryStreams moved to ignite-binary-impl by nizhikov · Pull Request #12188 · apache/ignite · GitHub
Skip to content

IGNITE-25359 BinaryStreams moved to ignite-binary-impl #12188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 17, 2025

Conversation

nizhikov
Copy link
Contributor

Thank you for submitting the pull request to the Apache Ignite.

In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:

The Contribution Checklist

  • There is a single JIRA ticket related to the pull request.
  • The web-link to the pull request is attached to the JIRA ticket.
  • The JIRA ticket has the Patch Available state.
  • The pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of HOW.
  • The pull request title is treated as the final commit message.
    The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see TC.Bot: Check PR)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

import java.nio.ByteBuffer;

/**
* Utility class to provide static methods to create {@link BinaryInputStream} or {@link BinaryOutputStream} in different modes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Javadoc is incorrect, it is not a utility class with a bunch of static methods but an interface suitable for loading via ServiceLoader mechanism.

Choose a reason for hiding this comment

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

Fixed

static {
Iterator<BinaryStreamsFactory> factories = CommonUtils.loadService(BinaryStreamsFactory.class).iterator();

A.ensure(factories.hasNext(), "BinaryStreamsFactory implementation not found. Please, add ignite-binary-impl to classpath");
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest to be more specific in this error message and give a hint that we tried and failed to load a service from classpath.

How about Implementation for BinaryStreamsFactory service not found. Please add ignite-binary-impl to classpath.

Choose a reason for hiding this comment

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

Fixed

@sergey-chugunov-1985
Copy link
Contributor

I suggest to add a README.txt/README.md file to ignite-binary-impl module with a short description of what this module is about and how it is supposed to use it.

Module's name is very general and doesn't provide a lot of information though the module is rather important for developers in the community.

@ac1d0globlya
Copy link

@sergey-chugunov-1985 README.txt for both ignite-binary-api, ignite-binary-impl added.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
19 New Code Smells (required ≤ 1)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@nizhikov nizhikov merged commit e5b7951 into apache:master Jul 17, 2025
7 of 9 checks passed
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.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apache/ignite/pull/12188

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy