You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
indexMergeProcessWorker. indexMergeProcessWorker.fetchLoop use partialWorkerCnt-- to check whether all the partialWorkers finishing their work. We can use a WaitGroup to synchronize the work between all the partial workers, and start a goroutine which waits for the WaitGroup, and close the fetchCh when all the partialWorkers exit. When indexMergeProcessWorker fails to fetch data from fetchCh, it knows all the partialWorkers exit. Refer this.
The text was updated successfully, but these errors were encountered:
indexMergeProcessWorker
.indexMergeProcessWorker.fetchLoop
usepartialWorkerCnt--
to check whether all thepartialWorker
s finishing their work. We can use aWaitGroup
to synchronize the work between all the partial workers, and start a goroutine which waits for the WaitGroup, and close thefetchCh
when all thepartialWorker
s exit. WhenindexMergeProcessWorker
fails to fetch data fromfetchCh
, it knows all thepartialWorker
s exit. Refer this.The text was updated successfully, but these errors were encountered: