This change introduces some basic clean up and refactoring for forthcoming commits related to the revised fetch code for the consumer threading refactor project.
Reviewers: Christo Lolov <lolovc@amazon.com>, Jun Rao <junrao@gmail.com>
// validate deserializer configuration, if the passed deserializer instance is null, the user must explicitly set a valid deserializer configuration value
@ -53,7 +53,8 @@ public class CommitRequestManager implements RequestManager {
@@ -53,7 +53,8 @@ public class CommitRequestManager implements RequestManager {
// TODO: current in ConsumerConfig but inaccessible in the internal package.
@ -66,11 +67,12 @@ public class CommitRequestManager implements RequestManager {
@@ -66,11 +67,12 @@ public class CommitRequestManager implements RequestManager {
@ -82,7 +84,7 @@ public class CommitRequestManager implements RequestManager {
@@ -82,7 +84,7 @@ public class CommitRequestManager implements RequestManager {
@ -99,7 +101,7 @@ public class CommitRequestManager implements RequestManager {
@@ -99,7 +101,7 @@ public class CommitRequestManager implements RequestManager {
@ -167,9 +169,9 @@ public class CommitRequestManager implements RequestManager {
@@ -167,9 +169,9 @@ public class CommitRequestManager implements RequestManager {
})
.exceptionally(t->{
if(tinstanceofRetriableCommitFailedException){
log.debug("Asynchronous auto-commit of offsets {} failed due to retriable error: {}",allConsumedOffsets,t);
log.debug("Asynchronous auto-commit of offsets {} failed due to retriable error: {}",allConsumedOffsets,t.getMessage());
}else{
log.warn("Asynchronous auto-commit of offsets {} failed: {}",allConsumedOffsets,t.getMessage());
log.warn("Asynchronous auto-commit of offsets {} failed",allConsumedOffsets,t);
}
returnnull;
});
@ -241,7 +243,7 @@ public class CommitRequestManager implements RequestManager {
@@ -241,7 +243,7 @@ public class CommitRequestManager implements RequestManager {
@ -366,6 +368,16 @@ public class CommitRequestManager implements RequestManager {
@@ -366,6 +368,16 @@ public class CommitRequestManager implements RequestManager {
@ -558,7 +559,7 @@ public class ConsumerNetworkClient implements Closeable {
@@ -558,7 +559,7 @@ public class ConsumerNetworkClient implements Closeable {
@ -570,9 +571,7 @@ public class ConsumerNetworkClient implements Closeable {
@@ -570,9 +571,7 @@ public class ConsumerNetworkClient implements Closeable {
@ -70,7 +70,12 @@ public class CoordinatorRequestManager implements RequestManager {
@@ -70,7 +70,12 @@ public class CoordinatorRequestManager implements RequestManager {
@ -218,5 +223,4 @@ public class CoordinatorRequestManager implements RequestManager {
@@ -218,5 +223,4 @@ public class CoordinatorRequestManager implements RequestManager {