Why do I only get 100 documents when syncing shadow bucket through sync_gateway

Can you verify whether all the docs appear to exist in the Sync Gateway database? You can use the Sync Gateway REST API (for example, /db/_all_docs) to check.

What versions of Sync Gateway and Couchbase Lite are you using?