Skip to content
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 deprecated properties #3106

Merged
merged 8 commits into from
Dec 16, 2022
Merged

Remove deprecated properties #3106

merged 8 commits into from
Dec 16, 2022

Conversation

cshannon
Copy link
Contributor

@cshannon cshannon commented Dec 3, 2022

Clean up and remove several deprecated properties for the 3.0.0 release

This closes #3105

Clean up and remove several deprecated properties for the 3.0.0 release

This closes apache#3105
@cshannon
Copy link
Contributor Author

cshannon commented Dec 3, 2022

I'd like a couple people to take a look to make sure I didn't screw anything up when I was removing deprecated properties. I ran through the sunny tests and they passed but we should also kick off a full IT if it looks good. As I noted in #3105, this is the first pass to remove most of the properties that were easy to clean up. Follow on issues will be done for more in depth changes for things like compaction strategy.

@cshannon cshannon added this to In progress in 3.0.0 via automation Dec 3, 2022
@cshannon cshannon self-assigned this Dec 3, 2022
The updated test now uses two existing properties that are not
deprecated and uses relfection to temporarily mark as deprecated just
for testing that resolve() works as the previous properties were removed.
@SuppressWarnings("deprecation")
String path = siteConf.get(Property.TRACE_ZK_PATH);
try {
zapDirectory(zoo, path, opts);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to remove this as a final step in the upgrade from 2.1 -> 3.0? I didn't look to see if this is already done.

Copy link
Member

Choose a reason for hiding this comment

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

Do we need to remove this as a final step in the upgrade from 2.1 -> 3.0? I didn't look to see if this is already done.

This should already be done in 2.1. We don't need to keep this for 3.0 upgrade, but we could suggest users remove the /tracer directory themselves, or run the ZooZap util with the property still set (which may be done already on bin/accumulo-cluster stop already.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ctubbsii - Is there a good place to log a warning for this? I don't see an Upgrader class yet for 3.0 so is that something we should create in another PR?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need a warning for this. I meant suggest it in the release notes. Accumulo no longer has to care about the existence of this directory. It should have attempted removal on upgrading to 2.1, and if it missed it, it's not a big deal.

@SuppressWarnings("deprecation")
String path = siteConf.get(Property.TRACE_ZK_PATH);
try {
zapDirectory(zoo, path, opts);
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to remove this as a final step in the upgrade from 2.1 -> 3.0? I didn't look to see if this is already done.

This should already be done in 2.1. We don't need to keep this for 3.0 upgrade, but we could suggest users remove the /tracer directory themselves, or run the ZooZap util with the property still set (which may be done already on bin/accumulo-cluster stop already.

@cshannon
Copy link
Contributor Author

cshannon commented Dec 9, 2022

Ok I updated again with the latest feedback, I think I finally got rid of all the places using resolve where it's no longer necessary.

@cshannon
Copy link
Contributor Author

cshannon commented Dec 9, 2022

I updated to remove the deprecated HadoopLogCloser class as well as it was moved to a new location and the deprecated property is removed as part of this PR

@cshannon
Copy link
Contributor Author

@ctubbsii - I forgot this PR was still open as well but I will have to fix the merge conflicts, probably Friday.

@cshannon
Copy link
Contributor Author

Ok I fixed the merge conflicts so it should be ready to go.

@cshannon cshannon merged commit 14186ad into apache:main Dec 16, 2022
3.0.0 automation moved this from In progress to Done Dec 16, 2022
cshannon added a commit to cshannon/accumulo that referenced this pull request Dec 17, 2022
This fixes the test that was broken by apache#3106 and also restores the
ability to rename legacy master prefixed properties to manager
cshannon added a commit to cshannon/accumulo that referenced this pull request Dec 17, 2022
test

This fixes the test that was broken by apache#3106 by adding back in the
master to manager property renamer for just the test. Even though the
old master prefixed properties were removed and upgrade isn't needed
there are no other renamers that currently exist so adding back in the
renamer just for the test will at least verify the functionality still
works.
cshannon added a commit to cshannon/accumulo that referenced this pull request Dec 17, 2022
test

This fixes the test that was broken by apache#3106 by adding back in the
master to manager property renamer for just the test. Even though the
old master prefixed properties were removed and upgrade isn't needed
there are no other renamers that currently exist so adding back in the
renamer just for the test will at least verify the functionality still
works.
@cshannon cshannon deleted the accumulo-3105 branch March 17, 2023 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
3.0.0
  
Done
Development

Successfully merging this pull request may close these issues.

Remove old deprecated properties
3 participants