Skip to content

Add integration test for NotionDatabaseItemReader restartability#210

Open
hig1002 wants to merge 1 commit intospring-projects:mainfrom
hig1002:test/notion-reader-restartability
Open

Add integration test for NotionDatabaseItemReader restartability#210
hig1002 wants to merge 1 commit intospring-projects:mainfrom
hig1002:test/notion-reader-restartability

Conversation

@hig1002
Copy link
Copy Markdown

@hig1002 hig1002 commented Mar 28, 2026

Closes #150

Summary

This PR adds an integration test for NotionDatabaseItemReader restartability.

The test verifies that when a failure occurs after the first committed chunk, the restarted execution resumes from the last committed chunk without reprocessing already committed items.

What is covered

  • the first execution fails after the first committed chunk
  • the restarted execution resumes from the last committed position
  • already committed items are not reprocessed

Test scenario

  • the first page returns 2 items
  • the second page returns 1 item
  • the writer fails once when processing the second page item
  • after restart, the job completes and only the remaining item is processed

Notes

To make restartability observable in the integration test, this test uses a JDBC-based JobRepository so that the execution context is persisted across restart.

@hig1002 hig1002 force-pushed the test/notion-reader-restartability branch from 6515dbd to a7262e1 Compare March 30, 2026 00:17
Signed-off-by: Hwang In Gyu <hig7463@naver.com>

Add restartability integration test for NotionDatabaseItemReader

Signed-off-by: Hwang In Gyu <hig7463@naver.com>
@hig1002 hig1002 force-pushed the test/notion-reader-restartability branch from a7262e1 to 55fead2 Compare March 30, 2026 00:20
@hig1002 hig1002 marked this pull request as ready for review March 30, 2026 00:22
@hig1002 hig1002 requested a review from scordio as a code owner March 30, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add integration tests for NotionDatabaseItemReader restartability

1 participant