Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17338

kameletBinding GoogleSheetsSource delay parameter malfunctioning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • camel-k-1.6.6
    • Camel-K-GA
    • Camel-K
    • None
    • False
    • False
    • % %
    • Todo
    • Hide

      install the 'google-sheets-source.kamelet.yaml' definition.

      install the 'log-sink.kamelet.yaml' definition

      Use the following KameletBinding definition (with your own access details) for the test:

       

      apiVersion: camel.apache.org/v1alpha1
      kind: KameletBinding
      metadata:
        name: stage-1-sheets2log
        namespace: demo-camelk
      spec:
        source:
          ref:
            kind: Kamelet
            apiVersion: camel.apache.org/v1alpha1
            name: google-sheets-source
          properties:
            accessToken:     ""
            applicationName: ""
            clientId:        ""
            clientSecret:    ""
            index: "sheet1"
            refreshToken:    ""
            spreadsheetId:   ""
            range: "B5:D7"
            delay: 50000000
        sink:
          ref:
            kind: Kamelet
            apiVersion: camel.apache.org/v1alpha1
            name: log-sink
      

       

      The output should result in continuous reads.

       

      Show
      install the 'google-sheets-source.kamelet.yaml' definition. install the 'log-sink.kamelet.yaml' definition Use the following KameletBinding definition (with your own access details) for the test:   apiVersion: camel.apache.org/v1alpha1 kind: KameletBinding metadata: name: stage-1-sheets2log namespace: demo-camelk spec: source: ref: kind: Kamelet apiVersion: camel.apache.org/v1alpha1 name: google-sheets-source properties: accessToken: "" applicationName: "" clientId: "" clientSecret: "" index: "sheet1" refreshToken: "" spreadsheetId: "" range: "B5:D7" delay: 50000000 sink: ref: kind: Kamelet apiVersion: camel.apache.org/v1alpha1 name: log-sink   The output should result in continuous reads.  

      Problem found in Camel K 1.4 GA

      The definition of a KameletBinding that uses the Google Sheets Source kamelet finds a malfunctioning behaviour depending on the value of the 'delay' parameter.

      A value of 5000 (ms) will trigger a read every 5 secs.

      However a value of 50000000 will trigger continuous reads from the source document, instead of waiting for the long period between each read.

      Note: this misbehaviour was not detected using the Camel DSL in a normal Camel K source file using the component 'google-sheets-stream'. This problem seems to only happen within a KameletBinding.

              acosenti Andrea Cosentino
              bmesegue@redhat.com Bruno Meseguer
              Andrej Vano Andrej Vano
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: