question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No way to disable JDBC offset table creation

See original GitHub issue

The documentation for RDBMS read-side support says:

Lagom will store the offsets in a table that it will automatically create itself if it doesn’t exist. If you would prefer that Lagom didn’t automatically create this table for you, you can turn off this feature by setting lagom.persistence.jdbc.create-tables.auto=false in application.conf.

Lagom does not currently check this setting when creating the offsets table; it is created unconditionally (if it doesn’t already exist).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
TimMoorecommented, Feb 19, 2017

Thanks, @jousby. By the way, this issue was fixed in 1.3.0-RC2 (released a couple of days ago), so you should be able to disable creation if you update.

0reactions
jousbycommented, Feb 19, 2017

@TimMoore So I believe was hitting the issue you highlighted above at some point:

@jousby OK I’ve got it now… it’s actually the MySQL emulation causing the issue. Specifically, “Meta data calls return identifiers in lower case” (from H2 > Features > Compatibility). This means it’s returning “public” as the schema name, when the schema is actually stored as “PUBLIC”.

Lagom is comparing both the schema name and the table name when searching for an existing table, and the query it is using to detect the current schema returns it as stored, in uppercase, while the metadata query it is using to get the list of tables returns it in lowercase when running in this mode.

I’ll see if there’s a way we can query for the current schema in a different way that takes this mode into account.

However there is a second issue I was also bumping into while trying to use schema’s other than PUBLIC. I’ve created an issue for this here https://github.com/lagom/lagom/issues/498.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Offset in a relational DB with JDBC • Akka Projection
The database schema for the offset storage table: PostgreSQL: copy source CREATE TABLE IF NOT EXISTS akka_projection_offset_store ( projection_name VARCHAR ...
Read more >
Prevent Kafka JDBC Sink from recording __connect_partition ...
Though I've got mode=upsert set on the connector, it still adds a unique row in the sink database for each value because it's...
Read more >
JDBC Query Consumer - StreamSets Documentation
JDBC Query Consumer uses an offset column and initial offset value to determine where to start reading data within a table. Include both...
Read more >
JDBC Source Connector Configuration Properties
If the tables don't, JDBC connector will fail to start. Setting this to false will disable these checks. Type: boolean; Default: true; Importance:...
Read more >
Spring Data JDBC - Reference Documentation
In this case, the additional metadata required to build the actual Page instance is not created (which, in turn, means that the additional...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found