Skip to content

Commit

Permalink
added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
¨Claude committed Dec 24, 2024
1 parent a67f7cb commit 16117af
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ protected OffsetManager(final SourceTaskContext context,
* @return the entry.
*/
public Optional<E> getEntry(final OffsetManagerKey key, final Function<Map<String, Object>, E> creator) {
LOGGER.info("getEntry: {}", key.getPartitionMap());
final Map<String, Object> data = offsets.compute(key.getPartitionMap(), (k, v) -> {
if (v == null) {
final Map<String, Object> kafkaData = context.offsetStorageReader().offset(key.getPartitionMap());
Expand All @@ -97,6 +98,7 @@ public Optional<E> getEntry(final OffsetManagerKey key, final Function<Map<Strin
* the entry to update.
*/
public void updateCurrentOffsets(final E entry) {
LOGGER.debug("updating current offsets: {}", entry.getManagerKey().getPartitionMap());
offsets.compute(entry.getManagerKey().getPartitionMap(), (k, v) -> {
if (v == null) {
return new HashMap<>(entry.getProperties());
Expand Down

0 comments on commit 16117af

Please sign in to comment.