Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Oct 29, 2020

Due to a delay on the release of Lucene 8.7.0, this PR downgrades Elasticsearch 7.10 to the previous Lucene version. There are two main challenges: Downgrade RegExp to the previous local implementation and just the InternalEngine as it relays in new methods added in the latest version.

final long totalDocs = indexWriter.getPendingNumDocs() + inFlightDocCount.addAndGet(addingDocs);
//TODO: needs to be adapted to Lucene86?
//indexWriter.getPendingNumDocs() + inFlightDocCount.addAndGet(addingDocs);
final long totalDocs = inFlightDocCount.addAndGet(addingDocs);
Copy link
Contributor Author

@iverase iverase Oct 29, 2020

Choose a reason for hiding this comment

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

@dnhatn In case we need to perform this action, I am not sure what we need to do here?

Copy link
Member

Choose a reason for hiding this comment

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

I see two options for this: revert #63273 in 7.10 or manually keep track of the pending documents in Elasticsearch. I prefer the first option as it's error-prone to track the pending documents in Elasticsearch. @DaveCTurner WDYT?

Copy link
Contributor Author

@iverase iverase Oct 30, 2020

Choose a reason for hiding this comment

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

I revert the commit, could you please check?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 to revert, deferring this bugfix is the right thing to do IMO

@iverase
Copy link
Contributor Author

iverase commented Oct 29, 2020

@elasticmachine run elasticsearch-ci/eql-correctness

Copy link
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

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

Thanks @iverase !

@iverase iverase changed the title downgrade lucene to 8.6.2 downgrade lucene to 8.6.3 Oct 30, 2020
@matriv
Copy link
Contributor

matriv commented Oct 30, 2020

@elasticmachine run elasticsearch-ci/eql-correctness

@dnhatn
Copy link
Member

dnhatn commented Nov 3, 2020

@iverase Should we close this PR?

@iverase
Copy link
Contributor Author

iverase commented Nov 3, 2020

@dnhatn yes, I will wait until #64532 is merged.

@iverase
Copy link
Contributor Author

iverase commented Nov 3, 2020

Lucene 8.7.0 will be released on time so we can close this issue.

@iverase iverase closed this Nov 3, 2020
@iverase iverase deleted the downgrade-lucene branch November 3, 2020 15:57
@andreidan andreidan added v7.10.0 and removed v7.10.1 labels Nov 6, 2020
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.

6 participants