You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2020/08/12 20:58:14 UTC

[maven-resolver] branch redisson updated (d4dc80b -> 5f00128)

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a change to branch redisson
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git.


 discard d4dc80b  Add Class Loader output
     new 5f00128  Add Class Loader output

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (d4dc80b)
            \
             N -- N -- N   refs/heads/redisson (5f00128)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


[maven-resolver] 01/01: Add Class Loader output

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch redisson
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git

commit 5f001288b036d1e161976bc4450865b5a535f311
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Wed Aug 12 22:42:31 2020 +0200

    Add Class Loader output
---
 .../aether/internal/impl/DefaultSyncContextFactory.java     | 13 +++++++++++++
 .../aether/synccontext/RedissonSyncContextFactory.java      |  9 +++++++++
 2 files changed, 22 insertions(+)

diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultSyncContextFactory.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultSyncContextFactory.java
index 01c861f..a09475a 100644
--- a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultSyncContextFactory.java
+++ b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultSyncContextFactory.java
@@ -29,6 +29,8 @@ import org.eclipse.aether.SyncContext;
 import org.eclipse.aether.artifact.Artifact;
 import org.eclipse.aether.impl.SyncContextFactory;
 import org.eclipse.aether.metadata.Metadata;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * A factory to create synchronization contexts. This default implementation actually does not provide any real
@@ -40,8 +42,19 @@ public class DefaultSyncContextFactory
     implements SyncContextFactory
 {
 
+    private static final Logger LOGGER = LoggerFactory.getLogger( DefaultSyncContextFactory.class );
+
+    public DefaultSyncContextFactory()
+    {
+        LOGGER.trace( "TCCL '{}', id '{}'", Thread.currentThread().getContextClassLoader(),
+                      System.identityHashCode( Thread.currentThread().getContextClassLoader() ) );
+        LOGGER.trace( "CCL '{}', id '{}'", getClass().getClassLoader(),
+                      System.identityHashCode( getClass().getClassLoader() ) );
+    }
+
     public SyncContext newInstance( RepositorySystemSession session, boolean shared )
     {
+        LOGGER.trace( "Instance: {}, identity: {}", this, System.identityHashCode( getClass() ) );
         return new DefaultSyncContext();
     }
 
diff --git a/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java b/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java
index e3cd170..c53da91 100644
--- a/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java
+++ b/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java
@@ -82,6 +82,14 @@ public class RedissonSyncContextFactory
     private static RedissonClient redissonClient = createRedissonClient();
     private static String localhostDiscriminator = createLocalhostDiscriminator();
 
+    public RedissonSyncContextFactory()
+    {
+        LOGGER.trace( "TCCL '{}', id '{}'", Thread.currentThread().getContextClassLoader(),
+                      System.identityHashCode( Thread.currentThread().getContextClassLoader() ) );
+        LOGGER.trace( "CCL '{}', id '{}'", getClass().getClassLoader(),
+                      System.identityHashCode( getClass().getClassLoader() ) );
+    }
+
     private static RedissonClient createRedissonClient()
     {
         Path configFilePath = null;
@@ -154,6 +162,7 @@ public class RedissonSyncContextFactory
 
     public SyncContext newInstance( RepositorySystemSession session, boolean shared )
     {
+        LOGGER.trace( "Instance: {}, identity: {}", this, System.identityHashCode( getClass() ) );
         return new RedissonSyncContext( session, localhostDiscriminator, redissonClient, shared );
     }