Skip to content

Commit

Permalink
Use Time.SYSTEM for initializing system time
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng committed Jan 9, 2025
1 parent a9c36c5 commit 6e39fb7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.util.Objects;
import java.util.Set;

import org.apache.kafka.common.utils.SystemTime;
import org.apache.kafka.common.utils.Time;
import org.apache.kafka.connect.errors.ConnectException;
import org.apache.kafka.connect.sink.SinkRecord;

Expand Down Expand Up @@ -92,7 +92,7 @@ public class ElasticsearchWriter {
this.behaviorOnMalformedDoc = behaviorOnMalformedDoc;

bulkProcessor = new BulkProcessor<>(
new SystemTime(),
Time.SYSTEM,
new BulkIndexingClient(client),
maxBufferedRecords,
maxInFlightRequests,
Expand Down

0 comments on commit 6e39fb7

Please sign in to comment.