Uploaded image for project: 'Chukwa'
  1. Chukwa
  2. CHUKWA-498

Agent logs incorrect number of chunks sent

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The agent logs information like this:

      2010-07-20 16:31:17,640 INFO HTTP post thread ChukwaHttpSender - collected 70 chunks for post_92
      2010-07-20 16:31:17,641 INFO HTTP post thread ChukwaHttpSender - >>>>>> HTTP post_92 to http://some.collector.com:8787/ length = 20606
      2010-07-20 16:31:17,653 INFO HTTP post thread ChukwaHttpSender - >>>>>> HTTP Got success back from http://some.collector.com:8787/chukwa; response length 5250
      2010-07-20 16:31:17,653 INFO HTTP post thread ChukwaHttpSender - post_92 sent 0 chunks, got back 70 acks
      

      Notice the last line where it says sent 0 chunks, got back 70 acks. This is a bug. Instead it should report that it sent 70 chunks.

        Activity

        Hide
        asrabkin Ari Rabkin added a comment -

        Shows how carefully the rest of us read logs. I just committed this. Thanks, Bill!

        Show
        asrabkin Ari Rabkin added a comment - Shows how carefully the rest of us read logs. I just committed this. Thanks, Bill!
        Hide
        billgraham Bill Graham added a comment -

        Attaching patch. Bug is that toSend.clear() is called before logging toSend.size().

        Show
        billgraham Bill Graham added a comment - Attaching patch. Bug is that toSend.clear() is called before logging toSend.size() .

          People

          • Assignee:
            billgraham Bill Graham
            Reporter:
            billgraham Bill Graham
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development