Skip to content

PageIterator StackoverflowException on large dataset #16

@runningdavid

Description

@runningdavid

Please provide the following (and please check them off the list with [x]) before submitting this issue:

Expected behavior

PageIterator should run problem free on large dataset (large # of pages). I'm using the Microsoft corporate data from Graph.

Actual behavior

PageIterator causes Stackoverflow exception after running 45 mins.

Steps to reproduce the behavior

Perform an initial delta sync on all users in the Microsoft corporation (tenant), using the latest PageIterator from the Core library.

Reading into the source code it could be caused by a mutual recursion between InterpageIterateAsync() and IterateAsync() which throws stackoverflow exception when operate on a large number of pages. Changing the code to use a loop should resolve this issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions