Forum Discussion

neeraj_sharma's avatar
neeraj_sharma
New Contributor II
4 years ago
Solved

Kafka consumer Skip messages when fail

Hi , We pull the data from Kafka and put it and the database, but we realized the Kafka consumer skips the data/offsets if the pipeline fails. for example: in a run Kafka consumer is supposed to ...
  • Aleksandar_A's avatar
    3 years ago

    Hi @manohar.

    In the example you have listed, If i understand correctly don’t we also need to include the filename: Coupa_Supplier_SB_Tax_Cert_PO_4501888888? Because it exists in the docname array?

    If yes, then you can use the following expressions:

    $docname.filter((x,ind,arr) => $filename.indexOf(x) != -1)
    $docid.filter((x,ind) => $filename.indexOf($docname[ind]) != -1)
    $docext.filter((x,ind) => $filename.indexOf($docname[ind]) != -1)
    

    Let me know if this helps.

    BR,
    Aleksandar.