Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-9914

SubjectId for TaskEvents is incorrect for remote clients

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.8
    • Component/s: clients
    • Labels:
      None

      Description

      In case if the task was initialized from the remote client as web console then taskEvent.subjectId() will return the incorrect value. 

      It will contain the subject id for the node where this task was deployed.

      Ignite already have the thread local store for subject id but looks like we have a problem in GridTaskProcessor:

      UUID subjId = getThreadContext(TC_SUBJ_ID);

      But it always is null because of the correct value for TC_SUBJ_ID stored in 

      Map<GridTaskThreadContextKey, Object> map = thCtx.get();

      So it should be changed to 

      UUID subjId = (UUID)map.get(TC_SUBJ_ID);

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aealeksandrov Andrey Aleksandrov
                Reporter:
                aealeksandrov Andrey Aleksandrov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: