Skip to content

Conversation

@dlmarion
Copy link
Contributor

No description provided.

@dlmarion
Copy link
Contributor Author

I had started working on a design for a VFSClassLoader replacement a few weeks ago. My design deviates from the requirements in #27 based on my prior work on the classloader implementations in Accumulo.

Copy link
Contributor

@ddanielr ddanielr left a comment

Choose a reason for hiding this comment

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

I understand this is a draft so this feedback may not end up being implemented.

dlmarion and others added 4 commits September 25, 2025 16:51
…umulo/classloader/lcc/LocalCachingContextClassLoaderFactory.java

Co-authored-by: Daniel Roberts <ddanielr@gmail.com>
…umulo/classloaders/lcc/state/Contexts.java

Co-authored-by: Daniel Roberts <ddanielr@gmail.com>
@dlmarion
Copy link
Contributor Author

dlmarion commented Nov 17, 2025

Build is failing due to no new-line in no-arg constructors for ContextDefinition.java and Resource.java. Not sure what's happening here with the formatting plugin. @ctubbsii - any ideas?

Update: I got it working by modifying the checkstyle rules in the pom to match the rules in the main Accumulo pom for the RightCurly rule.

@dlmarion dlmarion marked this pull request as ready for review November 17, 2025 17:47
@dlmarion dlmarion requested review from ctubbsii, ddanielr, ivakegg, jschmidt10 and keith-turner and removed request for jschmidt10 November 17, 2025 17:47
@dlmarion dlmarion changed the title Initial commit for VFSClassLoader replacement VFSClassLoader alternative Nov 18, 2025
@ctubbsii
Copy link
Member

I noticed some things that weren't quite right here, with the use of URI vs. URL, and File vs. Path, with regard to the modernizer and other QA checks, and noticed that some of the QA tools weren't configured and running in this project, or weren't up-to-date. I've updated them in a separate PR, #32 that should be merged before we make any additional changes, to ensure that new additions to the repo comply with our QA checks.

Copy link
Contributor

@keith-turner keith-turner left a comment

Choose a reason for hiding this comment

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

This looks really good. Saw some things that could be potential follow ons and a few small little things that could be changed.

final URL jarCJettyLocation = jetty.getURI().resolve("TestC.jar").toURL();

// ContextDefinition with all jars
ContextDefinition allJarsDef = createContextDef("all", jarAOrigLocation, jarBHdfsLocation,
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be a follow on, would be helpful to create a little main class or script that a user could point at a dir and it spits out some json. That could be added to readme.

ContextDefinition def = parseContextDefinition(contextLocationUrl);
LocalCachingContext newCcl = new LocalCachingContext(def);
newCcl.initialize();
newlyCreated.set(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not call monitorContext here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Initially the code did have the call to monitorContext here. It presented an issue because this is in a Function where the entry is not yet in the contexts Cache. It added some complexity to monitorContext when trying to look up the entry in contexts.

dlmarion and others added 5 commits November 21, 2025 06:47
…umulo/classloader/lcc/LocalCachingContextClassLoaderFactory.java

Co-authored-by: Keith Turner <kturner@apache.org>
…umulo/classloader/lcc/cache/CacheUtils.java

Co-authored-by: Keith Turner <kturner@apache.org>
@keith-turner
Copy link
Contributor

Made a comment on a commit ea0501b#r171069412

@dlmarion
Copy link
Contributor Author

Made a comment on a commit ea0501b#r171069412

Addressed this comment in a46d8e1

@dlmarion dlmarion merged commit 14eab97 into apache:main Dec 2, 2025
1 check passed
@dlmarion dlmarion deleted the new-classloader branch December 2, 2025 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants