Bug 961361 - Cassandra Migration - delete-only and delete-data options are being ignored during migration
Summary: Cassandra Migration - delete-only and delete-data options are being ignored d...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Installer
Version: JON 3.2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ER01
: JON 3.2.0
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 951619
TreeView+ depends on / blocked
 
Reported: 2013-05-09 13:22 UTC by Armine Hovsepyan
Modified: 2015-09-03 00:01 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-02 20:36:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
migration_delete-only.png (94.10 KB, image/png)
2013-05-09 13:22 UTC, Armine Hovsepyan
no flags Details

Description Armine Hovsepyan 2013-05-09 13:22:56 UTC
Created attachment 745660 [details]
migration_delete-only.png

Description of problem:
Cassandra Migration - delete-only and delete-data options are being ignored during migration

Version-Release number of selected component (if applicable):
jenkins build 198

How reproducible:
always

Steps to Reproduce:
1. run migrator jar with the following options :
java -jar  data-migrator-oracle-4.7.0-SNAPSHOT.jar  --cassandra-hosts=migrperfpostgres.bc.jonqe.lab.eng.bos.redhat.com --cassandra-user=rhqadmin --cassandra-password=rhqadmin --cassandra-port=9142 --estimate-only=false --delete-data=true -X  --disable-6h-migration=true -X --delete-only=true

2. run migrator jar with the following options:
java -jar  data-migrator-oracle-4.7.0-SNAPSHOT.jar  --cassandra-hosts=migrperfpostgres.bc.jonqe.lab.eng.bos.redhat.com --cassandra-user=rhqadmin --cassandra-password=rhqadmin --cassandra-port=9142 --estimate-only=false --delete-data=true -X  --disable-6h-migration=true -X 
  
Actual results:
for both cases-  no data is being removed from sql db
for case 1 - migration process starts having --delete-only=true

Expected results:
for both cases data from sql should be removed
for case 1 - no migration should be started


Additional info:

Comment 1 Stefan Negrea 2013-06-28 20:37:34 UTC
Updated the list of arguments for the command also improved the logic for detecting that a delete only was requested. 

Please retest.

Comment 2 Armine Hovsepyan 2013-07-01 16:55:50 UTC
verified.

thank you.


Note You need to log in before you can comment on or make changes to this bug.