Skip to content

Conversation

@Falltrades
Copy link
Contributor

@Falltrades Falltrades commented Dec 10, 2025

Issues liées

Issues numéro:


Quel est le comportement actuel ?

When deleting a project using Nexus Maven plugin, we are facing the following error.

error:"{"message":"Request failed with status code 500","name":"AxiosError","stack":"AxiosError: Request failed with status code 500\n at settle (file:///app/node_modules/.pnpm/axios@1.12.2/node_modules/axios/lib/core/settle.js:19:12)\n at IncomingMessage.handleStreamEnd (file:///app/node_modules/.pnpm/axios@1.12.2/node_modules/axios/lib/adapters/http.js:617:11)\n at IncomingMessage.emit (node:events:530:35)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (file:///app/node_modules/.pnpm/axios@1.12.2/node_modules/axios/lib/core/Axios.js:45:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Promise.all (index 4)\n at async Object.deleteNexusProject [as nexus] (file:///app/node_modules/.pnpm/@cpn-console+nexus-plugin@file++++app+plugins+nexus/node_modules/@cpn-console/nexus-plugin/dist/project.js:12:9)\n at async file:///app/node_modules/.pnpm/@cpn-console+hooks@file++++app+packages+hooks/node_modules/@cpn-console/hooks/dist/hooks/hook.js:29:26\n at async Promise.all (index 3)\n at async executeStep (file:///app/node_modules/.pnpm/@cpn-console+hooks@file++++app+packages+hooks/node_modules/@cpn-console/hooks/dist/hooks/hook.js:33:21)\n at async Object.execute (file:///app/node_modules/.pnpm/@cpn-console+hooks@file++++app+packages+hooks/node_modules/@cpn-console/hooks/dist/hooks/hook.js:72:23)\n at async Object.delete (file:///app/dist/utils/hook-wrapper.js:47:25)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http","fetch"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":"MASKED","baseURL":"http://nexus.dso-nexus.svc.cluster.local:8081/service/rest/v1/","auth":{"username":"MASKED","password":"MASKED"},"method":"delete","url":"/repositories/socleprojecttest-repository-release","allowAbsoluteUrls":true},"code":"ERR_BAD_RESPONSE","status":500}"

Nexus logs show java.util.ConcurrentModificationException.

2025-12-10 11:24:53,143+0000 WARN [qtp1899061171-30] admin org.sonatype.nexus.siesta.internal.UnexpectedExceptionMapper - (ID fe4befbf-19ef-4082-9e72-a3a38e998848) Response: [500] 'ERROR: (ID fe4befbf-19ef-4082-9e72-a3a38e998848) java.util.ConcurrentModificationException'; mapped from: java.util.ConcurrentModificationException 2025-12-10 11:24:53,148+0000 INFO [qtp1899061171-30] *SYSTEM org.eclipse.jetty.server.RequestLog - 100.64.9.35 - admin [10/Dec/2025:11:24:53 +0000] "DELETE /service/rest/v1/repositories/socleprojecttest-repository-release HTTP/1.1" 500 - 90 58 "axios/1.12.2" [qtp1899061171-30]

Quel est le nouveau comportement ?

Avoid concurrent modification exception by sequentializing deletion.

Cette PR introduit-elle un breaking change ?

No.

Autres informations

No.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

🤖 Hey !

The @cpn-console/nexus-plugin (v2.3.1) package already exists on npm but the source code has changed, you should consider updating the package version.

The version update warning should be ignored in the case of modifications that do not affect the code once it has been built, such as code formatting, etc...

@github-actions github-actions bot added the built label Dec 10, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

🤖 Hey !

The security scan report for the current pull request is available here.

@Falltrades Falltrades added the preview Deploy preview app with Argo-cd label Dec 10, 2025
@Falltrades Falltrades self-assigned this Dec 10, 2025
@Falltrades Falltrades added this to the MCO milestone Dec 10, 2025
@github-actions
Copy link
Contributor

🤖 Hey !

A preview of the application is available at : https://console-pr-1809.sdid-hp.cpin.numerique-interieur.com

Please be patient, deployment may take a few minutes.

Copy link
Collaborator

@StephaneTrebel StephaneTrebel left a comment

Choose a reason for hiding this comment

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

Une question qui relève plus du nitpick pour être honnête, donc à toi de voir.
Dans l'ensemble LGTM

To avoid ConcurrentModificationException
@Falltrades Falltrades force-pushed the fix/sequential-deletion-for-nexus branch from 4bd41dc to 297706b Compare December 10, 2025 14:48
@cloud-pi-native-sonarqube
Copy link

@Falltrades Falltrades merged commit 30f7e47 into main Dec 10, 2025
33 checks passed
@Falltrades Falltrades deleted the fix/sequential-deletion-for-nexus branch December 10, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

built preview Deploy preview app with Argo-cd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants