int minorFragmentId = fragmentStatus.getHandle().getMinorFragmentId();
fragmentDataMap.get(majorFragmentId).get(minorFragmentId).setStatus(fragmentStatus);
}
public void updateQueryStateInStore() {
QueryState queryState = foreman.getQueryState();
switch (queryState) {
case PENDING:
// only foreman will put one node for "pending" query into PStore. This is to avoid concurrency issue when multiple threads fail and
// call this method.
profilePStore.put(queryId, getAsProfile(false));