summaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/metadata-store-cassandra/src/main
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-03-26 06:29:55 +0000
committerOlivier Lamy <olamy@apache.org>2014-03-26 06:29:55 +0000
commit24de9b28fb2843b80a35143f76d57373eab592e6 (patch)
treeab58cfde543ce22bb41ab38fa544d01687e1d1ab /archiva-modules/plugins/metadata-store-cassandra/src/main
parentfb2d2afe08d4e0d4bda15edca5f40920dc096b34 (diff)
downloadarchiva-24de9b28fb2843b80a35143f76d57373eab592e6.tar.gz
archiva-24de9b28fb2843b80a35143f76d57373eab592e6.zip
add a test to ensure dependant are cleanup up
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1581705 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins/metadata-store-cassandra/src/main')
-rw-r--r--archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java b/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java
index 143f49d85..e46675472 100644
--- a/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java
+++ b/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java
@@ -1941,6 +1941,9 @@ public class CassandraMetadataRepository
for ( Row<String, String, String> row : result.get().getList() )
{
this.projectVersionMetadataTemplate.deleteRow( row.getKey() );
+ removeMailingList( row.getKey() );
+ removeLicenses( row.getKey() );
+ removeDependencies( row.getKey() );
}
RangeSlicesQuery<String, String, String> query = HFactory //
@@ -1958,8 +1961,8 @@ public class CassandraMetadataRepository
for ( Row<String, String, String> row : result.get() )
{
this.artifactMetadataTemplate.deleteRow( row.getKey() );
- }
+ }
}
@Override