Table isn't suddenly accepting new data because of bug
See original GitHub issueCrateDB 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:
- Created 2 years ago
- Comments:10 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Maybe the table was indeed upgraded, but when I run your query I get:
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!
It’s not totally clear how this could happen (if not done manually), as an
OBJECT(DYNAMIC)
should never map to aFULLTEXT
indexed field, but rather map all text input asTEXT
with a plain index.Be aware that you can also predefine mappings for
OBJECT(DYNAMIC)
on table creation and add mappings by usingALTER TABLE ADD COLUMN
I will close this for now, as there is not enough information to reproduce this and classify it as bug.