GetTable or GetTables methods throws an InvalidOperationException even though the Keyspace and Table exists

Description

GetTable or GetTables methods of Cluster.Metadata class throws an InvalidOperationException with message "Operation is not valid due to the current state of the object." even though the key space and table exists. Note the attached C# code segment calls a select against the table with success before calling the GetTable method.

I have attached a sample C# code segment and output for reference to this issue.

Environment

Windows 7 x64, .Net framework 4.5, C* DSE 2.0.8

Activity

Show:
Jorge Bay Gondra
October 28, 2014, 9:35 AM

Metadata.GetTable() method is case sensitive but you don't have to include the double quotes.
It should be something like:

Let me know if that solved it.
In any case, the exception thrown is not helpful...

Jorge Bay Gondra
October 30, 2014, 9:14 AM

I will mark it as Fixed as the only issue I see from the driver is that the exception was really confusing.

On the 2.1 branch, to be released in 2.1.4, there are some improvements on how the metadata is retrieved and in the case that a column family or keyspace is not found, the method will return a null value.

Feel free to reopen it if you don't consider it fixed.

Fixed

Assignee

Jorge Bay Gondra

Reporter

Richard Andersen

Labels

None

Reproduced in

None

PM Priority

None

Fix versions

External issue ID

None

Doc Impact

None

Reviewer

None

Pull Request

None

Epic Link

None

Sprint

None

Pull Requests

None

Size

None

Components

Affects versions

Priority

Major
Configure