Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

Importing Data to Primary not getting replicated to secondary

how to use $in in c++
(24 lines)
Do we have Java API wrapper for Mongo Import?
(13 lines)
Feb 8, 2012
Joseph Rodriguez
Joseph Rodriguez
I have a replication set of 2 servers and 1 arbiter. I imported a new
collection to a primary and it didn't sync it to the secondary. What
am I doing wrong? I used the mongoimport.exe and specified the primary
port number and journal flag. I do see the new collection in the
primary, but I dont see it in the secondary.





Reply
Tags: arbiterreplicationsyncservers
Messages in this thread
Importing Data to Primary not getting replicated to secondary
Can I see the times the data of secondary behind that of the primary? If it is possible ,where can I
July 20, 2011 06:22:24 AM
Can I see the times the data of secondary behind that of the primary? If it is possible ,where can I find this information?
Re: Can I see the times the data of secondary behind thatof the primary? If it is possible ,where c
July 20, 2011 06:40:52 AM
You can check db.printReplicationInfo()/printSlaveReplicationInfo() ------Original Message------ From: ?? ? Sender: mongodb-us### @googlegroups.com To: mongodb-user ReplyTo: mongodb-use### @googlegroups.com Subject: [mongodb-user] Can I see the times…
Data loss due to secondary taking over a primary that reboots?
March 21, 2011 05:40:43 PM
Hi, I am curious what people think about this possible data loss scenario. Assume a primary receives 10 records and writes all 10 to its journal; and informs the client that they were persisted. What if after this moment, but before a slave has…
Created] (HDFS-2476) More CPU efficient data structure for under-replicated/over-replicated/invalida
October 19, 2011 09:40:39 PM
More CPU efficient data structure for under-replicated/over-replicated/invalidate blocks
Automatically Mongo Primary moved to Secondary and Secondary moved to Primary
July 12, 2011 01:49:13 AM
Hi, Don't know what might be the reason but automatically our Mongo Primary Server moved to Secondary and Secondary moved to Primary. Can any one tell me what might be the reason? *General Information :-* I have three production servers with…
ReplicaSet, when secondary down, primary becomes secondary. normal?
May 5, 2011 03:11:47 PM
Hi, For testing purpose I am running a replica set on 2 (mongo00, mongo01) servers. I shutdown mongo01 (secondary). For some reason mongo00 (which was the primary) becomes automatically a secondary. And, of course, my application (java) starts…
How often the secondary sync with primary?
December 29, 2011 09:14:30 PM
hello, I have two problems about mongodb,can you help me? 1?How often the secondary sync with primary? 2?What does the column 'h' in oplog mean? Thanks.
a difference between primary and secondary
August 31, 2011 07:37:34 AM
hello,everyone, I have a problem with mongodb.Could you help me? The mongodb's version is 1.8.2 In a replica set ,there are a primary ,a secondary and a arbiter. I had thought the data in primary and secondary is same, but the info told me my…
forcing secondary to be a primary
July 18, 2011 04:50:46 PM
I have following situation: Replica set consist of two servers A, B Server A was selected as PRIMARY and B as SECONDARY. Now, server A (PRIMARY) is down, and server B can't select itself as PRIMARY. I also can't add an arbiter to replica set (i…
read from secondary, only when no primary is present?
October 25, 2011 02:45:37 PM
Hi there, can mongoDB be configured to read from a primary, when a primary is present, but allow reads from a secondary, when no primary is present? Background: We have certain reads, that should always be served by the primary, because we want…
Replica Set, Secondary Not Taking Over As Primary
April 4, 2011 04:48:56 PM
So I setup MongoDB in a replicate set with two nodes: db1 and db2. When I shut down the primary db1, db2 stays as secondary. Shouldn't db2 take over as primary? Also, in a replica set, do reads go to both servers (db1 and db2), or is it just for…
secondary can't catch up with primary when using mongorestrore
April 17, 2011 09:44:45 PM
Hi all: 1. at first i have build a replica set with three machines, one primary, two secondary. Without any data. the size of oplog is 10G 2. then I use mongorestore to the primary with 20G data. And I go home for sleep. 3. I find the two…
Telling a secondary MX about valid addresses on the primary
February 26, 2011 04:04:37 AM
This is probably really obvious... I have two MX machines, call them mx0 and mx1; mx0 is the lower-priority and does deliveries to users. As is the way of the world, mx1 gets hit by a lot of spammers with scraped addresses which will be…
Replication - Primary and Secondary Swap roles
May 4, 2011 02:17:34 AM
I have a 3 server Replication set: A,B,C The C server is an arbiter and never takes a role. The A server is never backed up. ( 2x the cpu and memory ) The B server is backed up every hour. ( 1x cpu and smaller memory ) Almost all of the time…
Sync Diff time b/w Primary and Secondary
March 1, 2011 11:02:59 AM
Hi Let me know which of the below ways are correct to find sync difference between Primary and Secondary in Replica Set? Connect to Mongo Primary and Secondary and run below command to find >use local >new…
Drastically different database sizes between primary and secondary
September 21, 2011 01:23:46 PM
Is it expected that the primary and secondary in a replica set may have drastically different database sizes (data, storage and index size)? I've got a 1.8.2 replica set where the primary is 50% larger than the secondary. Most of the collections…
Trying to setup replication, but end up with two secondary members and no primary
January 13, 2012 05:47:58 PM
Hi, I've been trying to setup a simple replication system. 1 main mongo, 1 backup, and 1 arbiter. Unfortunately, firing it up lead to main being elected SECONDARY, and the backup being elected PRIMARY (nice work arbiter). Main had a priority of…
Resync new SECONDARY fails (even after PRIMARY --repair)
December 18, 2011 03:41:31 PM
Running latest (2.0.1). My SECONDARY went down in the night, no explanation given in the logs. The oplog was stuck at a few hours ago. Wiped the secondary's data, tried a resync. Resync fails and restarts unendingly. Then took down the live site,…
Stepping down Primary shutsdown secondary and is in inconsistent state
December 16, 2011 03:23:38 PM
This is happening on production. configuration 1 primary 5 secondaries (2 of them are hidden, priority0) after issuing rs.stepDown(120) on primary all 3 secondary (which are not hidden,priority1) shutdown. so nothing is Primary restarted 3…
Can a corruption of primary (master) trickle to secondary (slave) ?
January 11, 2011 11:59:55 AM
In either the Master-Slave toplology or Replica-Set topology, is it ever possible that any kind of corruption of the primary(master) trickles to secondary(slave) ? I am talking about hardware or software corruption not a logical application level…
Sqlite importing data from a dump script - primary and foreign keys
March 9, 2011
Hi I have a (sqlite) database that makes use of foreign keys, some of which will be autoincremented values. The "core" data the system representing…
Determine primary/secondary DNS for iphone network interfaces
February 7, 2011
Previously there has been a lot of questions asked about how to obtain an IP address programmatically on an iPhone. From these and other sources…
I have a website with CMS. Can I use Drupal to build a secondary CMS without changing the primary one?
March 25, 2011
I like taxonomies in Drupal and thinking about building a CMS on it for a website that has been online for years. I'd like to leave the database AS…
Installing apache+mysql on primary hard drive or secondary?
January 24, 2011
I'm installing a fresh copy of apache and mysql on a windows 2008 server with two hard drives Primary one is naturally running the OS and more The…
How to setup geographically different primary/secondary, master/slave DNS services at domain registrar?
January 21, 2011
This is a followup question to my previous post Multiple free dns services redundant as name servers of a website? I would like to setup DNS…
Importing data from .MYD back up file
May 19, 2011
How I can load the data from myd back up file to the database table . By the way I have all 3 files frm , myd and myi Thanks for help.
Coredata importing sqlite but not saving new data
February 16, 2011
hi guys, Im importing some sqlitedb (the same that coredata generates but with some prepopulated tables) - (NSPersistentStoreCoordinator…
Importing data to sqlite from xml(remote) Android
April 18, 2011
Hi Guys i want to know how to import XML data to sqlite? In m application i want to insert my web server mysql data to android mobile sqlite... is…
Importing Jmeter testResults XML data into mysql
April 29, 2011
I have done some tests in jmeter which produces an xml report in the following format <testResults version="1.2"> <httpSample t="28786"…
SQL Error (1064) when importing data from SQL file
April 20, 2011
Hello. I have a MySQL database, which was originally set up with the default latin1 character set and latin1_swedish_ci collation. I was using the…
Importing data from HDFS to Hive table
April 22, 2011
I have my data in data/2011/01/13/0100/file in HDFS, each of thes file contain data in tab separated, say name, ip , url. I want to create a table…
Importing data from geonames.org database into MySQL DB.
March 12, 2011
Does anyone how to import a geonames.org data into my database? The one i'm trying to import is http://download.geonames.org/export/dump/DO.zip ,…
Store data in DB so primary key is known before insertion based on data to be inserted
May 18, 2011
The basic gist of what I'm trying to accomplish is setting up an image processing server. As the page code is created in Coldfusion multiple images…
Importing JSONP data from HTML page then export to CSV using r
February 10, 2011
I have JSON data, of which this is a snippet: {"sweater":"15","localtime":"7:14 PM","xcoord":-61,"desc":"John Smith SHOT on Jack…
Importing data from files to database by the users of the site
February 8, 2011
It's necessary to allow users to import their data on the site (in mysql database). Every user who logs in, can import data from a file to the…
Default value for empty integer fields when importing CSV data in MySQL
March 22, 2011
I'm importing a CSV into a MySQL table with LOAD DATA INFILE . One of the table's fields stores zip code data, which I've defined in the table…
Error encountered when importing data from csv file into sqlite table
December 24, 2010
I export the data from Excel 2011. The rows look like: 100|Agricultural Production-Crops|Agriculture&Forestry I create the table in SQLite…
Error importing MySQL data across platforms (MAMP to WIMP)
June 16, 2011
I've dumped a MySQL database I have on my local MAMP server into a .sql file. Usually, it's easy enough for me to import that file to my production…
Iphone programming- Importing an existing sql table to sqlite or core data
January 27, 2011
I have a simple table that I'm pulling from our existing sql database. Its just a 1mb Vehicle table. It contains enough information that I don't…
Sql server generated "Text File" data importing in to postgressql using copy command
February 11, 2011
Hi I have one text file generated using SQLServer 2005. While I am importing the text file into one of my PostgreSQL table using "copy" it is giving…