marcuslinke opened a new issue, #480:
URL: https://github.com/apache/maven-build-cache-extension/issues/480

   ### Affected version
   
   1.2.2
   
   ### Bug description
   
   While using the Maven Build Cache Extension locally (without remote caching 
configured), builds are delayed by multiples of ~30 seconds in environments 
where host name resolution is not available/reliable (e.g. corporate laptop 
without reachable DNS server, no mDNS response).
   
   The delay appears to come from host name resolution in:
   
   
https://github.com/apache/maven-build-cache-extension/blob/master/src/main/java/org/apache/maven/buildcache/xml/Build.java#L64
   
   `org.apache.maven.buildcache.xml.Build`  
   `InetAddress.getLocalHost().getHostName()` (around line 64)
   
   This call is synchronous and can block until resolver timeout.
   
   ## Reproduction
   Environment:
   - macOS (corporate-managed laptop)
   - no sudo/admin rights (cannot edit `/etc/hosts` or resolver settings)
   - Maven build cache extension enabled
   
   Observed resolver behavior:
   - `time nslookup $(hostname)` -> timeout (~18s)
   - `time dns-sd -G v4 $(hostname).local` -> hangs / does not return


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to