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.

Table isn't suddenly accepting new data because of bug

See original GitHub issue

CrateDB version

4.6.7

CrateDB setup information

I have a 3 node cluster with 3 gb memory and 2gb heap size setup.

Steps to Reproduce

I can’t reproduce it, I did made a new table with the query SHOW CREATE TABLE and made a new table and directly new data is showing up. So it looks like the old table got corrupt or something.

Expected Result

When I add new data to a staging cluster it is working, but on the identical production cluster it is not. I has been accepting data until 23:59 last night. After that it is giving me the following error:

[2022-02-01 06:36:51] [CRATE] Error inserting for vehicle v77!
[2022-02-01 06:36:51] { message: 'MapperParsingException[Failed to parse mapping: Mapping definition for [date_field] has unsupported parameters:  [fields : {keyword={ignore_above=256, type=keyword}}]]',
  code: 4000 }```

Actual Result

Even when not adding the specific field in the insert the table won’t accept the new data.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rjbaatcommented, Feb 3, 2022

Maybe the table was indeed upgraded, but when I run your query I get:

version['created'] | version['upgraded']
-- | --
t1 | 4.6.7 | NULL

Anyway the table responded differently on a certain insert where the mentioned field was inserted in the new version 4.6.7 of crate. On the new table t2 with the analyser spec it was going good. Either way the table schema needed a change on our end, because the field was a timestamp and not a text field. So we changed the object from DYNAMIC to STRICT and set the field to a TIMESTAMP field and it looks good now. I think the object schema got auto extended where we didn’t want that to happen anyway.

Thnx for the quick responses!

0reactions
proddatacommented, Feb 3, 2022

It’s not totally clear how this could happen (if not done manually), as an OBJECT(DYNAMIC) should never map to a FULLTEXT indexed field, but rather map all text input as TEXT with a plain index.

Be aware that you can also predefine mappings for OBJECT(DYNAMIC) on table creation and add mappings by using ALTER TABLE ADD COLUMN

"raw_meta_data" OBJECT(DYNAMIC) AS (
    "date_field" TIMESTAMP,
    ...)

I will close this for now, as there is not enough information to reproduce this and classify it as bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot errors when updating data in query or form - Office
When the query includes a linked ODBC table with no unique index or a Paradox table without a primary key, you cannot update...
Read more >
How to Fix It When Mobile Data Is Not Working - Lifewire
Mobile data not working on an iPhone or Android can be caused by a damaged SIM card, software or hardware glitches, or a...
Read more >
Top 3 Excel Pivot Table Issues Resolved - MyExcelOnline
Well, there are three reasons why Pivot Table not counting correctly: 1. There are blank cells in your values column within your data...
Read more >
Datetime field does not accept default NOW() - MySQL Bugs
Just like ondelete/onupdate dropped when the table altered to add new field and also this issue - running a new() (or else) function...
Read more >
6 Reasons Why Your VLOOKUP is Not Working - Ablebits
Yes, this could well be a formatting issue. They need to be the same data type. It may be that you have one...
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