Skip to content

CASSSIDECAR-443: Support column types not parseable by Java 3.x driver#340

Open
lukasz-antoniak wants to merge 1 commit intoapache:trunkfrom
lukasz-antoniak:CASSSIDECAR-443
Open

CASSSIDECAR-443: Support column types not parseable by Java 3.x driver#340
lukasz-antoniak wants to merge 1 commit intoapache:trunkfrom
lukasz-antoniak:CASSSIDECAR-443

Conversation

@lukasz-antoniak
Copy link
Copy Markdown
Member

logger.error(message);
return Future.failedFuture(wrapHttpException(HttpResponseStatus.BAD_REQUEST, message));
// check for tables that are not parseable by Java driver's metadata feature
boolean tableExists = driverUnsupportedSchemaCache.getTableSchema(request.keyspace(), request.table(), false) != null;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not refresh if table schema is not present in cache (prevent blocking due to CQL query).

{
tableExists = driverUnsupportedSchemaCache.getTableSchema(new Name(keyspaceMetadata.getName()),
new Name(table),
false) != null;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not refresh if table schema is not present in cache (prevent blocking due to CQL query).

* TODO: Remove after upgrade to Java driver 4.x (CASSSIDECAR-421).
*/
@Singleton
public class DriverUnsupportedSchemaCache implements PeriodicTask
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could not come up with a better class name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant