Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-3527

Container.getWorkerUser() should check if the user name is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2.0
    • None

    Description

      Sometimes supervisor got terminated/died during writing username to workers-users file. And when it happens, the file could be empty. And when supervisor recovers after, it wouldn't be able to get the correct username because the workers-users file is present but empty. So supervisor would never be able to clean up this worker and you could see in supervisor log file:

      2019-10-21 18:26:48.272 o.a.s.u.LocalState timer [WARN] LocalState file '/home/y/var/storm/workers/a9290217-f83f-4c16-ac54-781aca150d7f/heartbeats/1571508791911' contained no data, resetting state
      2019-10-21 18:26:49.282 o.a.s.u.LocalState timer [WARN] LocalState file '/home/y/var/storm/workers/94967b6b-c666-4020-9d2c-363551d1229b/heartbeats/1571508791904' contained no data, resetting state
      2019-10-21 18:26:49.282 o.a.s.u.LocalState timer [WARN] LocalState file '/home/y/var/storm/workers/5aa891f0-9b9c-4914-8745-c55e99537ba1/heartbeats/1569158099433' contained no data, resetting state
      2019-10-21 18:26:49.283 o.a.s.u.LocalState timer [WARN] LocalState file '/home/y/var/storm/workers/060056f4-9589-4473-b6d0-9ab5fdc278e2/heartbeats/1561524903510' contained no data, resetting state
      2019-10-21 18:26:49.283 o.a.s.u.LocalState timer [WARN] LocalState file '/home/y/var/storm/workers/bb189497-eb21-48c4-ba62-48ee02acde94/heartbeats/1571508791741' contained no data, resetting state
      

      Attachments

        Issue Links

          Activity

            People

              ethanli Ethan Li
              ethanli Ethan Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m