[SERVER-3328] local.slaves never cleaned out Created: 24/Jun/11  Updated: 12/Jul/16  Resolved: 24/Jun/11

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 1.9.1

Type: Bug Priority: Minor - P4
Reporter: Greg Studer Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

... stale data can prevent new data from being inserted. Symptoms are steadily increasing uassert count with no indication in logs ( from the upsert in the SlaveTracker failing ). Will cause issues for certain writeconcerns.



 Comments   
Comment by auto [ 24/Jun/11 ]

Author:

{u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

Message: store host in local.me SERVER-3328
Branch: master
https://github.com/mongodb/mongo/commit/d53566233a7028449600f66283e3860cadb6422f

Comment by auto [ 24/Jun/11 ]

Author:

{u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

Message: Revert "generate local.me on startup SERVER-3328"

This reverts commit 72a7bc38676780e398321aaeb1e2f537d48b457c.
Branch: master
https://github.com/mongodb/mongo/commit/f5d76c6a9e7d60b7530db4cfd607dd37f0a2723d

Comment by Kristina Chodorow (Inactive) [ 24/Jun/11 ]

Sounds good.

Comment by Eliot Horowitz (Inactive) [ 24/Jun/11 ]

You can put hostname in local.me
So when you startup, you see if the hostname is different than last time it was generated.

Comment by Kristina Chodorow (Inactive) [ 24/Jun/11 ]

Kept track of by who? The problem is that the primary ends up with two servers with the same _id so you get duplicate key exceptions.

This comes up with fastsync, too.

Comment by Eliot Horowitz (Inactive) [ 24/Jun/11 ]

I don't think this is actually what we want.
We don't want it to change just on a restart.

Maybe only change if hostname has changed.

Comment by auto [ 24/Jun/11 ]

Author:

{u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

Message: generate local.me on startup SERVER-3328
Branch: master
https://github.com/mongodb/mongo/commit/72a7bc38676780e398321aaeb1e2f537d48b457c

Generated at Thu Feb 08 03:02:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.