Skip to content
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

Bump up C++ version in JNI from c++11 to c++17. #2259

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

0ctopus13prime
Copy link
Contributor

Description

This PR bumped up C++ version in JNI from c++11 to c++17.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]
#2251

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@@ -197,7 +197,7 @@ public void testGetTrainingSize() throws ExecutionException {

nativeMemoryCacheManager.get(trainingDataEntryContext, true);

assertEquals((float) allocationEntryWeight, nativeMemoryCacheManager.getTrainingSizeInKilobytes(), 0.001);
assertEquals(allocationEntryWeight, nativeMemoryCacheManager.getTrainingSizeInKilobytes(), 1e-3);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed this flaky testing where it fails the testing by one.

(float) allocationEntryWeight == 2.1430328E7
nativeMemoryCacheManager.getTrainingSizeInKilobytes() == 21430329

Copy link
Member

Choose a reason for hiding this comment

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

good catch

@0ctopus13prime
Copy link
Contributor Author

Failed rolling update will be fixed in here - #2260

@0ctopus13prime
Copy link
Contributor Author

0ctopus13prime commented Nov 8, 2024

Failure in Build and Test k-NN / Build and Test k-NN Plugin on MacOS (21) (pull_request) is a flaky test - #1522

Signed-off-by: Dooyong Kim <kdooyong@amazon.com>
@0ctopus13prime
Copy link
Contributor Author

Rolling upgrade 2.11 to 3.00 is failing due to the network error:

fatal: unable to access 'https://github.com/facebookresearch/faiss.git/': Failed to connect to github.com port 443 after 134231 ms: Connection timed out

@navneet1v navneet1v added Infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc. backport 2.x labels Nov 8, 2024
@navneet1v navneet1v merged commit a07bad1 into opensearch-project:main Nov 8, 2024
37 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 8, 2024
Signed-off-by: Dooyong Kim <kdooyong@amazon.com>
Co-authored-by: Dooyong Kim <kdooyong@amazon.com>
(cherry picked from commit a07bad1)
navneet1v pushed a commit that referenced this pull request Nov 8, 2024
Signed-off-by: Dooyong Kim <kdooyong@amazon.com>
Co-authored-by: Dooyong Kim <kdooyong@amazon.com>
(cherry picked from commit a07bad1)

Co-authored-by: Doo Yong Kim <0ctopus13prime@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants