-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-19880 : Repl Load to return recoverable vs non-recoverable error… #374
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
Changes from all commits
aec3b8c
9f4ab1f
f975a33
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -128,6 +128,9 @@ public class HiveMetaStoreClient implements IMetaStoreClient, AutoCloseable { | |
| private long retryDelaySeconds = 0; | ||
| private final ClientCapabilities version; | ||
|
|
||
| //copied from ErrorMsg.java | ||
| private static final String REPL_EVENTS_MISSING_IN_METASTORE = "Notification events are missing in the meta store."; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need this msg same as from ErrorMsg?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as error code is hashed with error message |
||
|
|
||
| static final protected Logger LOG = LoggerFactory.getLogger(HiveMetaStoreClient.class); | ||
|
|
||
| public HiveMetaStoreClient(Configuration conf) throws MetaException { | ||
|
|
@@ -2717,7 +2720,7 @@ public NotificationEventResponse getNextNotification(long lastEventId, int maxEv | |
| + "Try setting higher value for hive.metastore.event.db.listener.timetolive. " | ||
| + "Also, bootstrap the system again to get back the consistent replicated state.", | ||
| nextEventId, e.getEventId()); | ||
| throw new IllegalStateException("Notification events are missing."); | ||
| throw new IllegalStateException(REPL_EVENTS_MISSING_IN_METASTORE); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Even this is non-recoverable error. So, shouldn't this be FatalException?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need not be .. |
||
| } | ||
| if ((filter != null) && filter.accept(e)) { | ||
| filtered.addToEvents(e); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are few return statements inside try block without throwing exception. Do we need to return error code there as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently only very few scenarios are covered ..in the followup jira need to add all other condition