Deprecate EntryExistsException in Druid 27 and remove in Druid 28 (#14554)

Also deprecate UnknownSegmentIdsException.
This commit is contained in:
Kashif Faraz 2023-07-08 15:40:14 +05:30 committed by GitHub
parent 63ee69b4e8
commit 58a35bf07e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -25,7 +25,11 @@ import org.apache.druid.java.util.common.StringUtils;
/**
* A non-transient Druid metadata exception thrown when trying to insert a
* duplicate entry in the metadata.
*
* @deprecated Usages of this exception will be replaced by the new
* {@link org.apache.druid.error.DruidException} in a future release.
*/
@Deprecated
public class EntryExistsException extends DruidException
{

View File

@ -23,7 +23,11 @@ import java.util.Collection;
/**
* Exception thrown by {@link SegmentsMetadataManager} when a segment id is unknown.
*
* @deprecated Usages of this exception will be replaced by the new
* {@link org.apache.druid.error.DruidException} in a future release.
*/
@Deprecated
public class UnknownSegmentIdsException extends Exception
{
private final Collection<String> unknownSegmentIds;