Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9345F200D1E for ; Wed, 18 Oct 2017 10:55:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 91CC61609EE; Wed, 18 Oct 2017 08:55:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E2182160BEA for ; Wed, 18 Oct 2017 10:55:05 +0200 (CEST) Received: (qmail 81359 invoked by uid 500); 18 Oct 2017 08:55:05 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 81345 invoked by uid 99); 18 Oct 2017 08:55:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2017 08:55:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 534B51A2C67 for ; Wed, 18 Oct 2017 08:55:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GI0OQptZcy6u for ; Wed, 18 Oct 2017 08:55:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id DAFAA5FE43 for ; Wed, 18 Oct 2017 08:55:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 27F74E1095 for ; Wed, 18 Oct 2017 08:55:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 80C892439F for ; Wed, 18 Oct 2017 08:55:00 +0000 (UTC) Date: Wed, 18 Oct 2017 08:55:00 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-11922) Persistent tail tracking picks random tail tracker from mongoDB collection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 18 Oct 2017 08:55:06 -0000 [ https://issues.apache.org/jira/browse/CAMEL-11922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-11922: -------------------------------- Fix Version/s: 2.21.0 > Persistent tail tracking picks random tail tracker from mongoDB collection > -------------------------------------------------------------------------- > > Key: CAMEL-11922 > URL: https://issues.apache.org/jira/browse/CAMEL-11922 > Project: Camel > Issue Type: Bug > Components: camel-mongodb, camel-mongodb3 > Affects Versions: 2.20.0 > Reporter: Ihor Paliichuk > Fix For: 2.20.1, 2.21.0 > > Original Estimate: 2h > Remaining Estimate: 2h > > Hello. issue partially was fixed in https://issues.apache.org/jira/browse/CAMEL-8063 > This was fixed in initialize() but still present in persistToStore() function > Bson updateObj = Updates.set(config.field, lastVal); > dbCol.updateOne(trackingObj, updateObj); > trackingObj = dbCol.find().first(); > If more then one tracker is present in one collection, after storing lastVal, each trackingObj will replaced by first one from collection. Should be > trackingObj = dbCol.find(filter).first(); > Issue present in version 2.20 in both mongodb and mongodb3 component. -- This message was sent by Atlassian JIRA (v6.4.14#64029)