Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

MigrationInfo to MigrationInfoImpl throws ClassCast exception #6

@hhandoko

Description

@hhandoko

Expected Behaviour

Cassandra migration runner should complete the migration successfully.


## Actual Behaviour

Cassandra migration runner throws a ClassCast exception when iterating through pending MigrationInfo.

Caused by: java.lang.ClassCastException: [Lcom.builtamont.cassandra.migration.api.MigrationInfo; cannot be cast to [Lcom.builtamont.cassandra.migration.internal.info.MigrationInfoImpl;
    at com.builtamont.cassandra.migration.internal.command.Migrate.run(Migrate.kt:127)
    at com.builtamont.cassandra.migration.CassandraMigration$migrate$1.execute(CassandraMigration.kt:94)
    at com.builtamont.cassandra.migration.CassandraMigration$migrate$1.execute(CassandraMigration.kt:79)
    at com.builtamont.cassandra.migration.CassandraMigration.execute$cassandra_migration(CassandraMigration.kt:200)
    at com.builtamont.cassandra.migration.CassandraMigration.migrate(CassandraMigration.kt:79)
    at com.builtamont.faktur.dal.impl.cassandra.CassandraSchemaMigrator$$anonfun$1.apply(CassandraSchemaMigrator.scala:64)
    at com.builtamont.faktur.dal.impl.cassandra.CassandraSchemaMigrator$$anonfun$1.apply(CassandraSchemaMigrator.scala:46)
...

## Steps to Reproduce

More info to follow. Exception thrown when using the library in a project.

Note: All test cases passed, failing test case to demonstrate the problem TBA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions