-
Notifications
You must be signed in to change notification settings - Fork 445
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
Remove AvailabilityForTablet from public API #4706
Comments
I don't think Pair is public API either. |
I can look into this. |
Correct, Pair is not public API. Currently this class is only used by test code. The class could be moved out of public API into a test package. Or the class could be deleted and replaced with something more generic because it only has two fields. |
Thanks @keith-turner . I think I misunderstood the ticket to mean that the public API needed to use Pair or Map.Entry. I now understand you meant that the test code that's using it could do that instead of this class. |
Yeah and I am uncertain about what is best for the test code because I only took a quick glance at it. Not sure of the details of how the test code is using the class. So the suggestion to use Pair or Entry may not be a good one. |
- Delete AvailabiltyForTablet class. It is only being used in 2 tests: ImportExportIT and TableOperationsIT. - In both ImportExportIT and TableOperationsIT, replace List<AvailabilityForTablet> objects with Map<TabletId, TabletAvailability>. - Fix typo in TableOperationsIT: verifyTabletAvailabilites -> verifyTabletAvailabilities. Resolves: apache#4706 "Remove AvailabilityForTablet from public API"
- Delete AvailabiltyForTablet class. It is only being used in 2 tests: ImportExportIT and TableOperationsIT. - In both ImportExportIT and TableOperationsIT, replace List<AvailabilityForTablet> objects with Map<TabletId, TabletAvailability>. - Fix typo in TableOperationsIT: verifyTabletAvailabilites -> verifyTabletAvailabilities. Resolves: apache#4706 "Remove AvailabilityForTablet from public API"
- Streamline verifyTabletAvailabilities method in TableOperationsIT class by comparing two Maps instead of a Map and a List. Cut previous two Assertions down to one Assertion. Resolves: apache#4706 "Remove AvailabilityForTablet from public API"
- Correct formatting in TableOperationsIT which was previously causing workflow build to fail. Resolves: apache#4706 "Remove AvailabilityForTablet from public API"
- Delete AvailabiltyForTablet class. It is only being used in 2 tests: ImportExportIT and TableOperationsIT. - In both ImportExportIT and TableOperationsIT, replace List<AvailabilityForTablet> objects with Map<TabletId, TabletAvailability>. - Fix typo in TableOperationsIT: verifyTabletAvailabilites -> verifyTabletAvailabilities. Resolves: #4706 "Remove AvailabilityForTablet from public API"
Completed by #4728 |
AvailabilityForTablet is a type in the public API that is currently only used by test code. At one point other parts of the API referenced this, but no longer do. The type should be removed from the public API. The type could possibly be replaced with Pair or Map.Entry.
The text was updated successfully, but these errors were encountered: