This is an automated email from the ASF dual-hosted git repository.
kfaraz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 58a35bf07e Deprecate EntryExistsException in Druid 27 and remove in
Druid 28 (#14554)
58a35bf07e is described below
commit 58a35bf07e6ec20427bd1dbcd5e1ca37d4c7c757
Author: Kashif Faraz <[email protected]>
AuthorDate: Sat Jul 8 15:40:14 2023 +0530
Deprecate EntryExistsException in Druid 27 and remove in Druid 28 (#14554)
Also deprecate UnknownSegmentIdsException.
---
.../src/main/java/org/apache/druid/metadata/EntryExistsException.java | 4 ++++
.../java/org/apache/druid/metadata/UnknownSegmentIdsException.java | 4 ++++
2 files changed, 8 insertions(+)
diff --git
a/processing/src/main/java/org/apache/druid/metadata/EntryExistsException.java
b/processing/src/main/java/org/apache/druid/metadata/EntryExistsException.java
index f8a7d860d5..445ad7ad7b 100644
---
a/processing/src/main/java/org/apache/druid/metadata/EntryExistsException.java
+++
b/processing/src/main/java/org/apache/druid/metadata/EntryExistsException.java
@@ -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
{
diff --git
a/server/src/main/java/org/apache/druid/metadata/UnknownSegmentIdsException.java
b/server/src/main/java/org/apache/druid/metadata/UnknownSegmentIdsException.java
index e3d1cc32c5..2c7e3996cb 100644
---
a/server/src/main/java/org/apache/druid/metadata/UnknownSegmentIdsException.java
+++
b/server/src/main/java/org/apache/druid/metadata/UnknownSegmentIdsException.java
@@ -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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]