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

Pmd script fails #152

Closed
RuslanGaliullin opened this issue Jan 21, 2024 · 1 comment
Closed

Pmd script fails #152

RuslanGaliullin opened this issue Jan 21, 2024 · 1 comment

Comments

@RuslanGaliullin
Copy link

Adding make install solved #145 issue for most of the files, however another problem occurred with pmd:

/usr/local/bin/pmd: line 231: 3297674 Killed                  java ${HEAPSIZE} ${PMD_JAVA_OPTS} $(jre_specific_vm_options) -cp "${classpath}" "${CLASSNAME}" "$@"
Failed to collect pmd.sh for /dataset/github/apache/camel/components/camel-resilience4j/src/main/java/org/apache/camel/component/resilience4j/ResilienceReifier_configureBulkHead_3.java
4 scripts collected 9 metrics (sum=7455.6) for ResilienceReifier_configureBulkHead_3.java (101226/613218), in 38s

ResilienceReifier_configureBulkHead_3.java:

class ResilienceReifier_configureBulkHead_3 {public BulkheadConfig configureBulkHead(Resilience4jConfigurationCommon config) {
        if (!parseBoolean(config.getBulkheadEnabled(), false)) {
            return null;
        }

        BulkheadConfig.Builder builder = BulkheadConfig.custom();
        if (config.getBulkheadMaxConcurrentCalls() != null) {
            builder.maxConcurrentCalls(parseInt(config.getBulkheadMaxConcurrentCalls()));
        }
        if (config.getBulkheadMaxWaitDuration() != null) {
            long duration = parseLong(config.getBulkheadMaxWaitDuration());
            if (duration <= 0) {
                builder.maxWaitDuration(Duration.ZERO);
            } else {
                builder.maxWaitDuration(Duration.ofMillis(duration));
            }
        }
        return builder.build();
    }}
@RuslanGaliullin
Copy link
Author

@yegor256

@RuslanGaliullin RuslanGaliullin closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2024
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

No branches or pull requests

1 participant