You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/12/09 06:52:11 UTC

[GitHub] [camel-kamelets] cwtrex opened a new issue #615: Elasticsearch index sink indexId random generator for null

cwtrex opened a new issue #615:
URL: https://github.com/apache/camel-kamelets/issues/615


   For events that do not include the header indexId, the existing v0.5.0 of elasticsearch index sink causes document_id "camel-k-index-es" to be generated, but then constantly overwritten by future events that also do not have that header.
   
   I found a past version of the sink had something similar (although not the same) in the following:
   ```
   when:
   - simple: "${header[indexId]} == null || ${header[indexId]} == 'NONE'"
      steps:
      - set-header:
          name: "indexId"
          simple: "${header[kafka.TIMESTAMP]}${header[kafka.PARTITION]}${header[kafka.OFFSET]}"
   ```
   The above should either be officially documented as a solution for the above situation or included in the existing sink.
   It makes more sense to me that events without the header generate their own rather than generate a single event and then continue to overwrite the same event again and again.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kamelets] oscerd commented on issue #615: Elasticsearch index sink indexId random generator for null

Posted by GitBox <gi...@apache.org>.
oscerd commented on issue #615:
URL: https://github.com/apache/camel-kamelets/issues/615#issuecomment-989567403


   To me it's wrong to have everything related to kafka headers, because you could have a source which is not kafka at all. By the way I'll take some time to find a different solution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kamelets] oscerd closed issue #615: Elasticsearch index sink indexId random generator for null

Posted by GitBox <gi...@apache.org>.
oscerd closed issue #615:
URL: https://github.com/apache/camel-kamelets/issues/615


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kamelets] oscerd commented on issue #615: Elasticsearch index sink indexId random generator for null

Posted by GitBox <gi...@apache.org>.
oscerd commented on issue #615:
URL: https://github.com/apache/camel-kamelets/issues/615#issuecomment-989569738


   We could generate a random uuid just in case instead of that stuff.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org