-
Notifications
You must be signed in to change notification settings - Fork 119
IndexingMerger: lessen work and retry by default #3732
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
base: main
Are you sure you want to change the base?
Changes from all commits
aade484
06ff451
168a312
7633735
7b25720
0c27c3f
a1afad4
692f23a
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 |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| /* | ||
| * RecordCoreTimeoutException.java | ||
| * | ||
| * This source file is part of the FoundationDB open source project | ||
| * | ||
| * Copyright 2015-2025 Apple Inc. and the FoundationDB project authors | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package com.apple.foundationdb.record; | ||
|
|
||
| import com.apple.foundationdb.annotation.API; | ||
|
|
||
| import javax.annotation.Nonnull; | ||
| import javax.annotation.Nullable; | ||
|
|
||
| /** | ||
| * This exception extends {@link RecordCoreException} and is specifically used to indicate | ||
| * timeout-related failures. | ||
| */ | ||
| @API(API.Status.UNSTABLE) | ||
| @SuppressWarnings("serial") | ||
|
Check warning on line 33 in fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/RecordCoreTimeoutException.java
|
||
| public class RecordCoreTimeoutException extends RecordCoreException { | ||
| public RecordCoreTimeoutException(@Nonnull String msg, @Nullable Object ... keyValues) { | ||
| super(msg, keyValues); | ||
| } | ||
|
Check warning on line 37 in fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/RecordCoreTimeoutException.java
|
||
|
|
||
| public RecordCoreTimeoutException(Throwable cause) { | ||
| super(cause); | ||
| } | ||
|
Check warning on line 41 in fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/RecordCoreTimeoutException.java
|
||
|
|
||
| public RecordCoreTimeoutException(@Nonnull String msg, @Nullable Throwable cause) { | ||
| super(msg, cause); | ||
| } | ||
|
|
||
| public RecordCoreTimeoutException(@Nonnull String msg) { | ||
| super(msg); | ||
| } | ||
|
|
||
| protected RecordCoreTimeoutException(String message, Throwable cause, | ||
| boolean enableSuppression, | ||
| boolean writableStackTrace) { | ||
| super(message, cause, enableSuppression, writableStackTrace); | ||
| } | ||
|
Check warning on line 55 in fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/RecordCoreTimeoutException.java
|
||
| } | ||
|
Check warning on line 56 in fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/RecordCoreTimeoutException.java
|
||
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.
Looking at the error codes
It seems like probably the following should not be retried:
batch_transaction_throttled-- this indicates the cluster is overloaded and trying not to do batch-level work. Retrying increases the loadtag_throttled-- Similar, but for a tag (I'm not sure if record layer supports tags, but if we don't know, we may in the future)There's definitely a long list of errors in there that would be pointless to retry, which is why the original code had a list of error codes where it should lessen work, rather than a list where it shouldn't.
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.
√