Clone
Abdullah Alamoudi <bamousaa@gmail.com>
committed
on 21 Aug 17
[ASTERIXDB-2049][ING] Fix hang in Start Feed
- user model changes: no
- storage format changes: no
- interface changes: no

details:
- The h… Show more
[ASTERIXDB-2049][ING] Fix hang in Start Feed

- user model changes: no

- storage format changes: no

- interface changes: no

details:

- The hang is caused by one runtime finishing and unregistering

 before another runtime registers. When that happens, the number

 of registered runtimes never reaches the total number of runtimes

 and so the start feed statement doesn't complete.

- To avoid the situation described above, we use different counters

 for registration and deregistration. Since deregistration count

 is now kept in another variable, the registrations will either

 reach the expected count or a failure will happen and both

 cases completes the start feed request.

Change-Id: I0019f5634009bf924fb37acc78eb796842eef492

Reviewed-on: https://asterix-gerrit.ics.uci.edu/1953

Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Contrib: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Till Westmann <tillw@apache.org>

Show less

master + 4 more