Uploaded image for project: 'Apache Unomi'
  1. Apache Unomi
  2. UNOMI-519

KafkaInjector does not persists the event and doesnt trigger profile creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • unomi-1.5.7
    • None
    • unomi(-core)
    • None

    Description

      While testing kafka integration with unomi using KafkaInjector plugin, we found that the event that is read from kafka, is processed differently compared to normal workflow. In normal workflow (using cxs/eventcollector) a temporary profile is created and then if there are any rules the profiles are also merged. But in KafkaInjector plugin, the event is sent and it is not even saved, since it is missing the profile. 

      I just used a simple event body in kafka.

      {
           "eventType":"mergeProfiles",
           "itemId""email",
           "scope":"new",
           "properties" : {
                  "firstName" : "John",
                  "lastName" : "Smith",               
                  "email":"john.smith@acme.com"             
            }
      }
      

       

      Is this a bug or am I giving the wrong input?  For comparison of normal workflow, I checked the code EventsCollectorEndpoint class in org.apache.unomi.rest.endpoints package. Here doEvent method gets executed which does more than what is implemented in KafkaInjector plugin.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              schandru Chandrashekar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: