Hi,
We normally use a single data center, but when switching from one to another we 
will temporarily have two. The applications works with the local DC part of the 
cluster.
Normally the configuration of the driver would contain (the commented lines 
absent):

.withLoadBalancingPolicy(DCAwareRoundRobinPolicy.builder()
        .withLocalDc(localDataCenter)
//          .withUsedHostsPerRemoteDc(3)
//          .allowRemoteDCsForLocalConsistencyLevel()
        .build())

However, the queries returned empty. Uncommenting the lines, the queries 
returned data. Multiple runs on multiple apps in multiple locations/dcs, gave 
data with lines commented/absent.

All these apps connect to a cassandra cluster within a single data center 
currently. We are not clear why the empty results happened. Do you have any 
idea what might have caused this?
Having the commented lines uncommented is dangerous in the context of how the 
data center migration is planned, since the queries would be able to reach the 
remote nodes which are not having all the data initially.

Please advise,
Thanks,
Nicu Marasoiu
Geschäftsanschrift/Business address: METRO SYSTEMS GmbH, Metro-Straße 12, 40235 
Düsseldorf, Germany
Aufsichtsrat/Supervisory Board: Heiko Hutmacher (Vorsitzender/ Chairman)
Geschäftsführung/Management Board: Dr. Dirk Toepfer (Vorsitzender/CEO), Wim van 
Herwijnen
Sitz Düsseldorf, Amtsgericht Düsseldorf, HRB 18232/Registered Office 
Düsseldorf, Commercial Register of the Düsseldorf Local Court, HRB 18232

Betreffend Mails von *@metrosystems.net
Die in dieser E-Mail enthaltenen Nachrichten und Anhänge sind ausschließlich 
für den bezeichneten Adressaten bestimmt. Sie können rechtlich geschützte, 
vertrauliche Informationen enthalten. Falls Sie nicht der bezeichnete Empfänger 
oder zum Empfang dieser E-Mail nicht berechtigt sind, ist die Verwendung, 
Vervielfältigung oder Weitergabe der Nachrichten und Anhänge untersagt. Falls 
Sie diese E-Mail irrtümlich erhalten haben, informieren Sie bitte unverzüglich 
den Absender und vernichten Sie die E-Mail.

Regarding mails from *@metrosystems.net
This e-mail message and any attachment are intended exclusively for the named 
addressee. They may contain confidential information which may also be 
protected by professional secrecy. Unless you are the named addressee (or 
authorised to receive for the addressee) you may not copy or use this message 
or any attachment or disclose the contents to anyone else. If this e-mail was 
sent to you by mistake please notify the sender immediately and delete this 
e-mail.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
For additional commands, e-mail: user-h...@cassandra.apache.org

Reply via email to