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

opensearch-x-content-2.7.0.jar missing many classes #7728

Closed
kesiju opened this issue May 24, 2023 · 5 comments
Closed

opensearch-x-content-2.7.0.jar missing many classes #7728

kesiju opened this issue May 24, 2023 · 5 comments

Comments

@kesiju
Copy link

kesiju commented May 24, 2023

Hi,
I am getting multiple class not found exceptions trying to compile a plugin with 2.7.0 release.

error: cannot find symbol
import org.opensearch.common.xcontent.XContentBuilder;
import org.opensearch.common.xcontent.XContentParser;
import org.opensearch.common.xcontent.NamedXContentRegistry;

This jar is coming from the tar ball at https://artifacts.opensearch.org/releases/bundle/opensearch/2.7.0/opensearch-2.7.0-linux-x64.tar.gz .

Checking the jar I saw it has very few classes compared to previous releases.

jar tvf ../lib/opensearch-x-content-2.7.0.jar

     0 Fri Feb 01 00:00:00 EST 1980 META-INF/
   667 Fri Feb 01 00:00:00 EST 1980 META-INF/MANIFEST.MF
 11358 Fri Feb 01 00:00:00 EST 1980 META-INF/LICENSE.txt
   369 Fri Feb 01 00:00:00 EST 1980 META-INF/NOTICE.txt
     0 Fri Feb 01 00:00:00 EST 1980 org/
     0 Fri Feb 01 00:00:00 EST 1980 org/opensearch/
     0 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/
     0 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/
  7417 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/XContentFactory.class
  1044 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/XContentType$1.class
   943 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/XContentType$2.class
   936 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/XContentType$3.class
   936 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/XContentType$4.class
  3778 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/XContentType.class
  2196 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/XContentUtils.class
     0 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/cbor/
  5650 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/cbor/CborXContent.class
  1451 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/cbor/CborXContentGenerator.class
  1118 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/cbor/CborXContentParser.class
     0 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/json/
  5484 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/json/JsonXContent.class
   944 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/json/JsonXContentGenerator$1.class
 15182 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/json/JsonXContentGenerator.class
  1984 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/json/JsonXContentParser$1.class
  8189 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/json/JsonXContentParser.class
     0 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/smile/
  5911 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/smile/SmileXContent.class
  1457 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/smile/SmileXContentGenerator.class
  1124 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/smile/SmileXContentParser.class
     0 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/yaml/
  5027 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/yaml/YamlXContent.class
  1451 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/yaml/YamlXContentGenerator.class
  1118 Fri Feb 01 00:00:00 EST 1980 org/opensearch/common/xcontent/yaml/YamlXContentParser.class

TIA for any help.
Siju

@dblock
Copy link
Member

dblock commented May 29, 2023

I believe this is caused by #6470, which is by design. cc: @nknize

Btw, what does your plugin do @kesiju?

@andrross
Copy link
Member

@kesiju Some internal classes changed packages. You should be able to resolve this by updating the imports in your plugin code to reflect the new package location (org.opensearch.core.xcontent).

@anasalkouz
Copy link
Member

Hey @kesiju, closing this for now, since we you should have path forward. please feel free to comment to re-open the issue if needed.

@kesiju
Copy link
Author

kesiju commented Jun 8, 2023

Thank you @dblock for the response. The plugin runs some custom rollup jobs.

@dblock
Copy link
Member

dblock commented Jun 12, 2023

I presume it's not open-source @kesiju? Could it be?

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

No branches or pull requests

4 participants