Skip to content

Commit

Permalink
Fix Log message level and minor PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Dinu John <[email protected]>
  • Loading branch information
dinujoh committed May 9, 2024
1 parent 28d500a commit 50b940b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ private void bufferWriteAndCheckpointStream() {
LOG.debug("Perform regular checkpoint for resume token {} at record count {}", lastLocalCheckpoint, lastLocalRecordCount);
partitionCheckpoint.checkpoint(lastLocalCheckpoint, lastLocalRecordCount);
} catch (Exception e) {
LOG.error("Exception checkpointing the current state. New thread should start the stream from previous checkpoint.", e);
LOG.warn("Exception checkpointing the current state. New thread should start the stream from previous checkpoint.", e);
stop();
} finally {
lock.unlock();;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,8 @@ void test_processStream_checkPointIntervalSuccess() {
verify(cursor).close();
verify(cursor, times(4)).hasNext();
verify(mockPartitionCheckpoint).getGlobalS3FolderCreationStatus(collection);
//verify(mockPartitionCheckpoint, atLeast(1)).checkpoint(resumeToken3, 3);
verify(mockPartitionCheckpoint, atLeast(1)).checkpoint(resumeToken3, 3);
verify(successItemsCounter).increment(1);
//verify(mockPartitionCheckpoint, atLeast(1)).checkpoint(resumeToken2, 2);
verify(mockRecordBufferWriter, times(2)).writeToBuffer(eq(null), any());
verify(successItemsCounter).increment(2);
verify(failureItemsCounter, never()).increment();
Expand Down

0 comments on commit 50b940b

Please sign in to comment.