-
Notifications
You must be signed in to change notification settings - Fork 116
Add support for MDC context passing into the throttled iterator #3740
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?
Conversation
...e/foundationdb/record/provider/foundationdb/runners/throttled/ThrottledRetryingIterator.java
Outdated
Show resolved
Hide resolved
...apple/foundationdb/record/provider/foundationdb/runners/throttled/ThrottledIteratorTest.java
Show resolved
Hide resolved
...apple/foundationdb/record/provider/foundationdb/runners/throttled/ThrottledIteratorTest.java
Show resolved
Hide resolved
… and placed configuration insode build()
… and placed configuration insode build()
| * @return the newly minted iterator | ||
| */ | ||
| public ThrottledRetryingIterator<T> build() { | ||
| this.transactionalRunner = new TransactionalRunner(database, contextConfigBuilder); |
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.
If the constructor that takes a TransactionalRunner is called, the one provided will not be used here.
That call does not appear to be used, maybe worth just deleting.
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.
Yeah, deleted (should have been deleted earlier).
| this.contextConfigBuilder = contextConfigBuilder; | ||
| this.cursorCreator = cursorCreator; | ||
| this.singleItemHandler = singleItemHandler; | ||
| // set defaults |
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.
I suggest below that you remove the other constructor, but if not, perhaps worth settings these ones in the field declaration, and remove the duplication.
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.
Yes, the other constructor should have been deleted
Add MDC context to the throttled iterator:
Resolves #3739