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.

It is possible to store queue meta table without metadata section

See original GitHub issue

If metadata is absent, it will be read as NoMeta, which is not permitted:

java.lang.IllegalStateException: Expected SCQMeta, got class net.openhft.chronicle.queue.impl.table.Metadata$NoMeta
	at net.openhft.chronicle.queue.impl.single.SCQMeta.overrideFrom(SCQMeta.java:73)
	at net.openhft.chronicle.queue.impl.table.SingleTableBuilder.readTableStore(SingleTableBuilder.java:165)
	at net.openhft.chronicle.queue.impl.table.SingleTableBuilder.lambda$build$2(SingleTableBuilder.java:142)
	at net.openhft.chronicle.queue.impl.table.SingleTableStore.doWithLock(SingleTableStore.java:141)
	at net.openhft.chronicle.queue.impl.table.SingleTableStore.doWithExclusiveLock(SingleTableStore.java:124)
	at net.openhft.chronicle.queue.impl.table.SingleTableBuilder.build(SingleTableBuilder.java:137)
	at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueBuilder.initializeMetadata(SingleChronicleQueueBuilder.java:450)
	at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueBuilder.preBuild(SingleChronicleQueueBuilder.java:1089)
	at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueBuilder.build(SingleChronicleQueueBuilder.java:326)
	at net.openhft.chronicle.queue.impl.TableStoreTest.preCreateQueueMeta(TableStoreTest.java:111)

But turns out you can still write such table, just not read it.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alamarcommented, Oct 20, 2022

@peter-lawrey what do you think about that? Should we ignore and overwrite (absent) NoMeta with SCQMeta when it is written into Queue’s table store by some external process?

0reactions
alamarcommented, Nov 14, 2022

It seems that it is currently unfeasible. If the queue meta table file was created with incorrect metadata section, it needs to be recreated in offline mode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I query Salesforce Queue and can I do it using the ...
1 Answer 1 ... You can query queues with a normal SOQL call, no metadata/tooling API necessary. The objects related to queues are...
Read more >
Queue | Metadata API Developer Guide
Represents a holding area for items before they are processed.
Read more >
What is Mysql table metadata lock wait queue ordering
A metadata lock on a table prevents changes to the table's structure. This locking approach has the implication that a table that is...
Read more >
Tips and Recommendations for Metadata Server Tuning
General Notes. This page presents some tips and recommendations on how to improve the performance of BeeGFS metadata servers. As usual, the optimal...
Read more >
A Advanced Tuning of the Metadata
Use the Columns tab to specify metadata that describe the table columns. The tab is divided into the following: Column Definition Section. Column...
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