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.

Doubt: How to check Apicurio is correctly using the database?

See original GitHub issue

Hi guys and @EricWittmann one doubt. I have changed the source db to Postgresql by changing config in datasource and the system-properties part and also initialized with DDL and set “apicurio.hub.storage.jdbc.init” to false. Everything is running fine and apis created are stored and retrieved. But I have a doubt, when I queried the database tables it always shows “0 rows” like data is empty. I thought it is not fetching correctly so i intentionally put the wrong password in xml. I got an error while “Init” showing invalid password and there aren’t any other database related Apicurio, when queried with \l.

Looks like everything is fine… but how to check if it is correctly using the database. Thanks.

Also apart from the documentation, I changed below configuration from:

<default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:jboss/datasources/ExampleDS"

to

<default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:jboss/datasources/ApicurioDS"

because initially I faced an issue, while starting the server i got an error stating that ExampleDS is not intiated.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
EricWittmanncommented, Aug 12, 2020

I’m glad you figured it out. I was just going to ask if you’d double-checked that you were querying within the correct postgresql database. 😃 Awesome that it’s working!

0reactions
SusilRamaraocommented, Aug 12, 2020

Hi Eric,

Apologies. Since I am new to PostgreSQL. I didn’t know how to query inside the apicurio database. I queried outside the database and got 0 rows. Now I am able to see the APIs data. Very thanks for helping with other issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing Apicurio Registry content using the web console
Adding artifacts using the Apicurio Registry web console · Click Upload artifact, and specify the following: · Click Upload and view the Artifact...
Read more >
Configuring and managing Apicurio Registry deployment
Find that Deployment in the Workloads > Deployments in the left menu. Select the Deployment with the correct name, and select the Environment...
Read more >
Introduction to Apicurio Registry
Apicurio Registry is a datastore for sharing standard event schemas and API designs across API and event-driven architectures. You can use Apicurio Registry ......
Read more >
Introduction to Apicurio Registry
Validate Kafka messages using schemas and Java client serializers/ ... Pluggable registry storage options in Apache Kafka or PostgreSQL database.
Read more >
Apicurio/apicurio-studio 0.2.47.Final on GitHub
New release Apicurio/apicurio-studio version 0.2.47. ... with https://api #1250; [closed] Doubt: How to check Apicurio is correctly using the database?
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