mirror of https://github.com/apache/kafka.git
KAFKA-12832 remove deprecated methods in RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapter (#16813)
Reviewers: Josep Prat <josep.prat@aiven.io>
This commit is contained in:
parent
ed0e1086a9
commit
1ff7cf3d36
|
@ -321,12 +321,6 @@ public class RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapter extends
|
|||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public int maxBackgroundCompactions() {
|
||||
return dbOptions.maxBackgroundCompactions();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Options setStatistics(final Statistics statistics) {
|
||||
dbOptions.setStatistics(statistics);
|
||||
|
@ -338,16 +332,6 @@ public class RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapter extends
|
|||
return dbOptions.statistics();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setBaseBackgroundCompactions(final int baseBackgroundCompactions) {
|
||||
final String message = "This method has been removed from the underlying RocksDB. " +
|
||||
"It was not affecting compaction even in earlier versions. " +
|
||||
"It is currently a no-op method. " +
|
||||
"RocksDB decides the number of background compactions based on the maxBackgroundJobs(...) method";
|
||||
log.warn(message);
|
||||
// no-op
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public int baseBackgroundCompactions() {
|
||||
final String message = "This method has been removed from the underlying RocksDB. " +
|
||||
|
@ -356,13 +340,6 @@ public class RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapter extends
|
|||
return -1;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public Options setMaxBackgroundCompactions(final int maxBackgroundCompactions) {
|
||||
dbOptions.setMaxBackgroundCompactions(maxBackgroundCompactions);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Options setMaxSubcompactions(final int maxSubcompactions) {
|
||||
dbOptions.setMaxSubcompactions(maxSubcompactions);
|
||||
|
@ -374,19 +351,6 @@ public class RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapter extends
|
|||
return dbOptions.maxSubcompactions();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public int maxBackgroundFlushes() {
|
||||
return dbOptions.maxBackgroundFlushes();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public Options setMaxBackgroundFlushes(final int maxBackgroundFlushes) {
|
||||
dbOptions.setMaxBackgroundFlushes(maxBackgroundFlushes);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int maxBackgroundJobs() {
|
||||
return dbOptions.maxBackgroundJobs();
|
||||
|
|
Loading…
Reference in New Issue