Giter Site home page Giter Site logo

mr-course-assignments's People

Contributors

alexyinhan avatar littletiger123 avatar newnius avatar trafalgarzzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mr-course-assignments's Issues

[ERROR] Java 8 migration: replace anonymous type with lambda in alluxio.web.WebInterfaceWorkerMetricsServlet#populateValues #326

助教您好,我的作业是326,其中有一段,需要将
Map<String, Counter> counters = mr.getCounters(new MetricFilter() {
@OverRide
public boolean matches(String name, Metric metric) {
return !(name.endsWith("Ops"));
}
});
替换为
Map<String, Counter> counters = mr.getCounters((name, metric) -> !(name.endsWith("Ops")));
但是总是编译失败,报错。
我是直接将代码复制粘贴的,还是一直报错。
用源码编译的时候就success,助教,这部分代码替换成这样真的没问题吗?因为我真的不知道怎么改了啊。。。麻烦解答了。。。谢谢。。。

Error in validating the code style

Error after executing the following command:
mvn clean install -DskipTests

Error details:
[ERROR] GC overhead limit exceeded -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError

I have added
export MAVEN_OPTS="-Xms4096m -Xmx4096m -XX:PermSize=1024m -XX:MaxPermSize=1024m"
to the file .bash_profile, but it doesn't work.

How can I solve this problem?
Thank you!

Merged build finished. Test FAILed.

MG1833001

Alluxio/Community#332

任务是:
Replace

      Ordering.natural().onResultOf(new Function<UIFileInfo, Comparable<String>>() {
        @Override
        public Comparable<String> apply(UIFileInfo input) {
          return input.mAbsolutePath;
        }
      });

with

      Ordering.natural().onResultOf((Function<UIFileInfo, Comparable<String>>) input -> input.mAbsolutePath);

问题是:
Merged build finished. Test FAILed.
看之前的 issue 有提到每行代码的最大长度的问题,也尝试了多换几行,但是还是出现同样的问题。

PR 地址:
Alluxio/alluxio#8002

build success ,Test failed

助教:
您好!
MF1833098
Alluxio/alluxio#7981
任务是:
Replace

  if (part1 == part2) {
    return 0;
  }
  if (part1 < part2) {
    return -1;
  }
  return 1;

with

  return Long.compare(part1, part2);

在本地测试的时候是build success,提交之后的结果为test failed

{{https://github.com/Alluxio/alluxio/pull/7980}}

助教你好,我的任务是:
Replace

  MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_TOTAL),
      new Gauge<Long>() {
        @Override
        public Long getValue() {
          return blockWorker.getStoreMeta().getCapacityBytes();
        }
      });

  MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_USED),
      new Gauge<Long>() {
        @Override
        public Long getValue() {
          return blockWorker.getStoreMeta().getUsedBytes();
        }
      });

  MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_FREE),
      new Gauge<Long>() {
        @Override
        public Long getValue() {
          return blockWorker.getStoreMeta().getCapacityBytes() - blockWorker.getStoreMeta()
              .getUsedBytes();
        }
      });

with

  MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_TOTAL),
          () -> blockWorker.getStoreMeta().getCapacityBytes());

  MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_USED),
          () -> blockWorker.getStoreMeta().getUsedBytes());

  MetricsSystem.registerGaugeIfAbsent(MetricsSystem.getMetricName(CAPACITY_FREE),
          () -> blockWorker.getStoreMeta().getCapacityBytes() - blockWorker.getStoreMeta()
              .getUsedBytes());

提交之后,Merged build finished. Test PASSed.但是最后给的回复是:Thanks for contributing! It looks like this change has already been made by another pull request。请问一下这是什么情况呀?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.