Skip to content

Remove more deprecations for 3.0#3456

Merged
ctubbsii merged 1 commit into
apache:mainfrom
ctubbsii:more-deprecation-removals
Jun 7, 2023
Merged

Remove more deprecations for 3.0#3456
ctubbsii merged 1 commit into
apache:mainfrom
ctubbsii:more-deprecation-removals

Conversation

@ctubbsii
Copy link
Copy Markdown
Member

@ctubbsii ctubbsii commented Jun 7, 2023

  • Remove references to deprecated compaction strategies that don't exist
  • Relocate unfortunately named ConfigurableCompactionStrategy, which existed solely to support the shell for user-initiated compactions, into two separate classes in accumulo-core.jar, as ShellCompactCommandConfigurer and ShellCompactCommandSelector
    1. Split into two classes to make it clear how they map to the SPI interfaces and to avoid confusing overloaded init methods with two different InitParameters classes that have the same simple name
    2. Put in accumulo-core.jar so it's on the classpath for servers that do compaction and the shell, so we can get the class name without using a String literal, which is fragile
    3. Avoid use of the "CompactionStrategy" naming, because that is the name of the deprecated, and now removed, interface
    4. Update corresponding tests
  • Remove check for deprecated accumulo-site.xml, which was replaced in 2.1. 3.x requires upgrade from at least 2.1, so that either will have already been updated in 2.1, or it will never have existed in 3.x. Also remove related config converter utilities.
  • Remove randomizeVolumes from the admin command, which was previously made a noop and deprecated
  • Remove unused accumulo-site.xml test resource
  • Remove deprecated FateCommand from the shell
  • Remove noop debug option from shell command-line that did nothing because its functionality has been replaced by the ability to dynamically configure log4j2 logging in 2.x
  • Remove deprecated gc.trash.ignore (GC_TRASH_IGNORE) property, as follow-on to Deprecate GC_TRASH_IGNORE, add tests to confirm Trash works #3436; this includes removing a test that's no longer possible to succeed, since it's no longer possible to configure Accumulo to ignore Hadoop's trash settings; some comments were cleaned up in the remaining tests

* Remove references to deprecated compaction strategies that don't exist
* Relocate unfortunately named `ConfigurableCompactionStrategy`, which
  existed solely to support the shell for user-initiated compactions,
  into two separate classes in accumulo-core.jar, as
  `ShellCompactCommandConfigurer` and `ShellCompactCommandSelector`
  1. Split into two classes to make it clear how they map to the SPI
     interfaces and to avoid confusing overloaded init methods with
     two different InitParameters classes that have the same simple name
  2. Put in accumulo-core.jar so it's on the classpath for servers
     that do compaction and the shell, so we can get the class name
     without using a String literal, which is fragile
  3. Avoid use of the "CompactionStrategy" naming, because that is the
     name of the deprecated, and now removed, interface
  4. Update corresponding tests
* Remove check for deprecated accumulo-site.xml, which was replaced in
  2.1. 3.x requires upgrade from at least 2.1, so that either will have
  already been updated in 2.1, or it will never have existed in 3.x.
  Also remove related config converter utilities.
* Remove randomizeVolumes from the admin command, which was previously
  made a noop and deprecated
* Remove unused accumulo-site.xml test resource
* Remove deprecated FateCommand from the shell
* Remove noop debug option from shell command-line that did nothing
  because its functionality has been replaced by the ability to
  dynamically configure log4j2 logging in 2.x
* Remove deprecated gc.trash.ignore (`GC_TRASH_IGNORE`) property, as
  follow-on to apache#3436; this includes removing a test that's no longer
  possible to succeed, since it's no longer possible to configure
  Accumulo to ignore Hadoop's trash settings; some comments were cleaned
  up in the remaining tests
@ctubbsii ctubbsii requested review from EdColeman and dlmarion June 7, 2023 06:33
Copy link
Copy Markdown
Contributor

@dlmarion dlmarion left a comment

Choose a reason for hiding this comment

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

The empty test feels odd, but I understand why it's there.

Copy link
Copy Markdown
Contributor

@dlmarion dlmarion left a comment

Choose a reason for hiding this comment

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

The empty test feels odd, but I understand why it's there.

@ctubbsii
Copy link
Copy Markdown
Member Author

ctubbsii commented Jun 7, 2023

The empty test feels odd, but I understand why it's there.

Yeah, I don't like that either.

@ctubbsii ctubbsii merged commit 6c4905a into apache:main Jun 7, 2023
@ctubbsii ctubbsii deleted the more-deprecation-removals branch June 7, 2023 17:45
asfgit pushed a commit that referenced this pull request Jun 7, 2023
As follow-up to #3456, remove the broken test in
`ShellServerIT.testFateCommandWithSlowCompaction()`
since the command it is testing was removed by that.
@ctubbsii ctubbsii added this to the 3.0.0 milestone Jul 12, 2024
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