Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9773

Openshift Express: ApplicationLogReader keeps repeating same log if server log has no new entries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M4
    • 3.3.0.M4
    • openshift
    • None
    • Hide

      The following steps may be reproduced by running ApplicationLogReaderIntegrationTest (or code it by hand):

      1. ASSERT: have an openshift application running
      2. EXECUTE: call Application#getLog
      3. EXECUTE: read from the ApplicationLogReader you were given
      4. ASSERT: Do not restart the application
      5. EXECUTE: keep on reading from the ApplicationReader

      Result:
      you will notice that you keep reading the same log content.

      Show
      The following steps may be reproduced by running ApplicationLogReaderIntegrationTest (or code it by hand): ASSERT: have an openshift application running EXECUTE: call Application#getLog EXECUTE: read from the ApplicationLogReader you were given ASSERT: Do not restart the application EXECUTE: keep on reading from the ApplicationReader Result: you will notice that you keep reading the same log content.

      To read the application log (rhc-tools pendant: rhc-tail-files) you call Application#getLog and get a reader that allows you to stream the log.

      The current implementation will keep returning the same log content if no new log entry is present on the log.

            adietish@redhat.com André Dietisheim
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: