-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for ES7 : Specifying types is deprecated. #1997
Conversation
I'm not sure whether this PR fixed a problem, but my node is running ES7 fine with default My ES node was installed following this guide: https://www.elastic.co/guide/en/elasticsearch/reference/7.3/deb.html The issue @HarukaMa reported was an error when
|
He later reported the issue was happening for him also in only_save( |
In conversations in the dev channel yesterday he fixed by removing the Will try ES7 myself. |
My node is |
Now thinking that, I think it is possible that is because I have templates to adjust the parameters (like suppressing refreshing during initial index, changing replica counts and some settings optimized for spinning disks), and the template itself may have implied _doc type although it’s not explicitly set.
Anyways, the type field itself is indeed deprecated.
iPhoneから送信
2019/09/22 8:32、Abit <[email protected]>のメール:
… My node is 7.3.0.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This by now is not needed. i downloaded and tested elasticsearch 7.4.0 (last stable version) without any issue. The pull can be handy in the future but not needed now. |
This is still needed. In ES8 the warning will become an error. |
Those who are interested, please check #2240 (comment) for more info. |
8b43b64
to
ae067f0
Compare
Build tests in root volume
Kudos, SonarCloud Quality Gate passed! |
Note: this PR contains breaking changes.
With this PR, the node attempts to obtain the version of ES at startup, and if it fails (for example, due to lack of permissions), the ES server is assumed to be version 7 or higher.
Before this change, in ES, we use the path pattern
bitshares-*/data/2.9.x
, wheredata
is the type. After this change, we stop specifying the type if ES is version 7 or higher, and the path pattern becomesbitshares-*/2.9.x
for newly auto-created indexes (Note:bitshares-*/_doc/2.9.x
is usable with ES7 but not ES8, see #2707 for more info). Of course, the existing data will not change by itself. The same applies to theobjects-*
indexes.bitshares-
), or install a new ES database. This may take days or weeks to complete. If the old data is not deleted, it uses around 500G of disk space.By the way, we need more disk space to store other new data due to Store some data in ES as objects instead of just as strings #2565 and etc.
Those who are interested, please check #2240 (comment) for more info.
The original OP is below.
Reported in telegram by @HarukaMa . Elasticsearch plugin is not working in ES7 as
_type
is deprecated. However this needs to be there for ES6(and probably lower versions).This pull send a query to the server, get the version string and send the type accordingly in both plugins(
elasticsearch
andes_objects
)