Cloud storage load balancing
wzhzhu / load-balancing Goto Github PK
View Code? Open in Web Editor NEWCloud storage load balancing
Cloud storage load balancing
在编译corfudb中protoc-jar-maven-plugin:3.7.0.1:run (default)时,出现如下错误:
maven-metadata.xml:6:3: The element type "hr" must be terminated by the matching end-tag "</hr>".
查看该文件(/tmp/protocjar.webcache/com/google/protobuf/protoc/maven-metadata.xml),内容如下:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
显示文件已永久转移。按他提示的加上仍然有错。
文件内容正常应如下:
<?xml version="1.0" encoding="UTF-8"?>
<metadata modelVersion="1.1.0">
<groupId>com.google.protobuf</groupId>
<artifactId>protoc</artifactId>
<versioning>
<latest>3.11.0-rc-2</latest>
<release>3.11.0-rc-2</release>
<versions>
<version>2.5.0</version>
<version>2.6.1</version>
<version>2.6.1-build2</version>
<version>3.0.0-alpha-2</version>
<version>3.0.0-alpha-3</version>
<version>3.0.0-alpha-3.1</version>
<version>3.0.0-beta-1</version>
<version>3.0.0-beta-2</version>
<version>3.0.0-beta-3</version>
<version>3.0.0-beta-4</version>
<version>3.0.0</version>
<version>3.0.2</version>
<version>3.1.0</version>
<version>3.1.0-build2</version>
<version>3.2.0-rc.1</version>
<version>3.2.0rc2</version>
<version>3.2.0</version>
<version>3.3.0</version>
<version>3.4.0</version>
<version>3.5.0</version>
<version>3.5.1</version>
<version>3.5.1-1</version>
<version>3.6.0</version>
<version>3.6.1</version>
<version>3.7.0-rc1</version>
<version>3.7.0-rc-2</version>
<version>3.7.0-rc-3</version>
<version>3.7.0</version>
<version>3.7.1</version>
<version>3.8.0-rc-1</version>
<version>3.8.0</version>
<version>3.9.0-rc-1</version>
<version>3.9.0</version>
<version>3.9.1</version>
<version>3.9.2</version>
<version>3.10.0-rc-1</version>
<version>3.10.0</version>
<version>3.10.1</version>
<version>3.11.0-rc-1</version>
<version>3.11.0-rc-2</version>
</versions>
<lastUpdated>20191122211810</lastUpdated>
</versioning>
</metadata>
在使用junit、aliyun等镜像时,均出现上述错误,将所有镜像注释掉之后,使用官方镜像,错误消失。
PS:使用镜像时,虽然命令行下载内容不正常,但是用浏览器输入命令行显示的url,下载到的文件内容却是正常的(并没有发生转发),不知道为什么。
[ERROR] testDataStoreEviction Time elapsed: 121.035 s <<< ERROR!
java.util.concurrent.CompletionException: java.util.concurrent.TimeoutException
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
at java.util.concurrent.CompletableFuture.orApply(CompletableFuture.java:1371)
at java.util.concurrent.CompletableFuture$OrApply.tryFire(CompletableFuture.java:1350)
at java.util.concurrent.CompletableFuture$CoCompletion.tryFire(CompletableFuture.java:1020)
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
at org.corfudb.util.CFUtils.lambda$failAfter$0(CFUtils.java:113)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.TimeoutException
at org.corfudb.util.CFUtils.<clinit>(CFUtils.java:31)
at org.corfudb.AbstractCorfuTest$1$1.evaluate(AbstractCorfuTest.java:119)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:40)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:80)
at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:71)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:220)
at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:188)
at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:142)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:109)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
This bug may appear on Ubuntu 16.04LTS.
It can be ignored by using mvn clean install -DskipTests
command.
In the last section of the CorfuDB tutorial, it goes:
<dependency>
<groupId>org.corfudb</groupId>
<artifactId>runtime</artifactId>
<version>0.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
Directly using this setup incurs an error when launching the app,
causing the server unable to deserialize the corfumsg, such as follows:
io.netty.handler.codec.DecoderException: java.lang.RuntimeException: Attempt to deserialize a message which is not a CorfuMsg, Marker = 0 but expected 0xC0FC0FC0
According to a PR of this issue #2119 , the version should be changed to 0.3.0-SNAPSHOT. However, this solution incurs a new error.
Could not transfer artifact io.netty:netty-tcnative:jar:${os.detected.classifier}:2.0.25.Final from/to corfu-mvn-repo (https://raw.github.com/CorfuDB/Corfu-Repos/mvn-repo/): raw.github.com: Unknown host raw.github.com
After using proxies, the new error still occurs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.