Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-59929

New "undeployed" message triggers subsequent log display

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 7.2.2
    • eventing
    • None
    • Untriaged
    • 0
    • Yes

    Description

      The new "undeployed" message triggers subsequent log display when function emits no logs on the next deployment.

      The addtion of the "undeploy" message and any future lifecycle messages (like for OnDeploy) should not trigger the display of a user application logs (if there were no user application logs messages emitted in the current deployment) we should instead have the pop-up 

      Function log - <<function name>>
      No activity logged. Function has not called log() recently.
      

      Somehow message like these seem to allow us to view all the old app log messages.

      2023-12-01T11:41:55.097-08:00 [INFO] Function: test undeployed, reason: Function: test enabled, settings change requesting undeployment

      We do see the correct pop-up at first but a Function that is silent will in about 20 seconds show the OLD logs.

       

      To reproduce make the following function on travel-sample.inventory.hotel
       

      function OnUpdate(doc, meta) {
           log("Doc created/updated", meta.id); 
      }

      deploy and undeploy
      then modify the function to
       

      function OnUpdate(doc, meta) {
           var a = 1;
           if (a === 0) {
               log("should never happen");     
           }
      }

      deploy and then check the logs over and over it will be correct at first with the pop-up but then eventually you will see all the prior logs.
       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            abhishek.jindal Abhishek Jindal
            jon.strabala Jon Strabala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty