8000 Bug fix 3.5/internal issue #651 by gnusi · Pull Request #10388 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Bug fix 3.5/internal issue #651 #10388

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

Merged
merged 24 commits into from
Nov 12, 2019
Merged

Bug fix 3.5/internal issue #651 #10388

merged 24 commits into from
Nov 12, 2019

Conversation

gnusi
Copy link
Contributor
@gnusi gnusi commented Nov 8, 2019

PR fixes issues with custom analyzers in a cluster environment

@gnusi
Copy link
Contributor Author
gnusi commented Nov 8, 2019

@gnusi
Copy link
Contributor Author
gnusi commented Nov 8, 2019

@gnusi
Copy link
Contributor Author
gnusi commented Nov 8, 2019

@gnusi
Copy link
Contributor Author
gnusi commented Nov 11, 2019

@KVS85 KVS85 added the 9 WIP label Nov 11, 2019
@gnusi
Copy link
Contributor Author
gnusi commented Nov 11, 2019

@gnusi
Copy link
Contributor Author
gnusi commented Nov 11, 2019

@gnusi gnusi marked this pull request as ready for review November 11, 2019 21:23
@gnusi gnusi requested review from KVS85 and Dronplane November 11, 2019 21:23
8000
}
arangodb::Result res;
for (auto const& coord : coords) {
res = {};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there is no need to reinit res on each iteration. It will be overwritten by timeout error or by resultVisitor without current res value check.

for (auto& request: requests) {
if (TRI_ERROR_ARANGO_DATA_SOURCE_NOT_FOUND == request.result.errorCode) {
continue; // treat missing collection as if there are no analyzers
if (TRI_ERROR_CLUSTER_TIMEOUT == request.result.errorCode) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check for TRI_ERROR_ARANGO_DATA_SOURCE_NOT_FOUND here same way as in non DBServer branch below ?

/// @param defaultVocbase fallback vocbase for analyzer name normalization
/// nullptr == do not normalize
/// @param usedAnalyzers add to this map analyzers used in meta,
/// @param values to ignore always
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// @param values to ignore always
/// @param mask values to ignore always

@gnusi
Copy link
Contributor Author
gnusi commented Nov 12, 2019

@gnusi gnusi requested a review from Dronplane November 12, 2019 10:20
@gnusi gnusi removed the 9 WIP label Nov 12, 2019
@gnusi
Copy link
Contributor Author
gnusi commented Nov 12, 2019

@KVS85
Copy link
Contributor
KVS85 commented Nov 12, 2019

Tests blue.

@KVS85 KVS85 merged commit 3a0ed2f into 3.5 Nov 12, 2019
@KVS85 KVS85 deleted the bug-fix-3.5/internal-issue-#651 branch November 12, 2019 15:26
gnusi added a commit that referenced this pull request Nov 13, 2019
* extract recursive part of IResearchLinkMeta

* avoid saving analyzer definition during link meta initialization

* add tests to check cluster deadlock

* cleanup

* code cleanup

* add moar tests

* mooooaaar checks

* make jslint happy

* backport fix for cluster startup from 3.5.2 branch

* backport changes from 3.5.2

* fix tests

* fix tests

* moar fixes

* refactor analyzer definitions tracking

* add some tests

* extend dump tests

* add tests for replication

* fix tests

* more fixes

* address jslint errors

* address review comments

* address test failures

* reflect changes in changelog

# Conflicts:
#	arangod/IResearch/IResearchAnalyzerFeature.cpp
#	arangod/IResearch/IResearchFilterFactory.cpp
#	arangod/IResearch/IResearchLink.cpp
#	arangod/IResearch/IResearchLinkMeta.cpp
#	tests/IResearch/IResearchAnalyzerFeature-test.cpp
#	tests/IResearch/IResearchDocument-test.cpp
#	tests/IResearch/IResearchFilterBoolean-test.cpp
#	tests/IResearch/IResearchFilterCompare-test.cpp
#	tests/IResearch/IResearchFilterFunction-test.cpp
#	tests/IResearch/IResearchFilterIn-test.cpp
#	tests/IResearch/IResearchLinkHelper-test.cpp
#	tests/IResearch/IResearchLinkMeta-test.cpp
#	tests/IResearch/IResearchView-test.cpp
#	tests/V8Server/v8-analyzers-test.cpp
gnusi added a commit that referenced this pull request Nov 13, 2019
* Bug fix 3.5/internal issue #651 (#10388)

* extract recursive part of IResearchLinkMeta

* avoid saving analyzer definition during link meta initialization

* add tests to check cluster deadlock

* cleanup

* code cleanup

* add moar tests

* mooooaaar checks

* make jslint happy

* backport fix for cluster startup from 3.5.2 branch

* backport changes from 3.5.2

* fix tests

* fix tests

* moar fixes

* refactor analyzer definitions tracking

* add some tests

* extend dump tests

* add tests for replication

* fix tests

* more fixes

* address jslint errors

* address review comments

* address test failures

* reflect changes in changelog

# Conflicts:
#	arangod/IResearch/IResearchAnalyzerFeature.cpp
#	arangod/IResearch/IResearchFilterFactory.cpp
#	arangod/IResearch/IResearchLink.cpp
#	arangod/IResearch/IResearchLinkMeta.cpp
#	tests/IResearch/IResearchAnalyzerFeature-test.cpp
#	tests/IResearch/IResearchDocument-test.cpp
#	tests/IResearch/IResearchFilterBoolean-test.cpp
#	tests/IResearch/IResearchFilterCompare-test.cpp
#	tests/IResearch/IResearchFilterFunction-test.cpp
#	tests/IResearch/IResearchFilterIn-test.cpp
#	tests/IResearch/IResearchLinkHelper-test.cpp
#	tests/IResearch/IResearchLinkMeta-test.cpp
#	tests/IResearch/IResearchView-test.cpp
#	tests/V8Server/v8-analyzers-test.cpp

* fix tests

* fix tests

* Fix tests

* fix replication tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0