DockerToActivationFileLogStore.scala contains code derived from Akka Sink.combine without attribution
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- scala
调研方向
从 build/openwhisk/common/scala/src/main/scala/org/apache/openwhisk/core/containerpool/logging/DockerToActivationFileLogStore.scala 和顶层 LICENSE 开始。将 OwSink.combine 与 Akka 2.6.12 Sink.combine 进行比较,并检查 #260 中的相关上下文。当派生代码已使用适用的 notice 文本正确标注来源,或复制的实现和注释已被独立替换时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
build/openwhisk/common/scala/src/main/scala/org/apache/openwhisk/core/containerpool/logging/DockerToActivationFileLogStore.scala (vendored from Apache OpenWhisk, shipped in the 0.9.0-incubating-RC7 source release) contains code that its own comment says was copied from Akka:
object OwSink {
/**
* Combines two sinks into one sink using the given strategy. The materialized value is a Tuple2 of the materialized
* values of either sink. Code basically copied from {@code Sink.combine}
*/
def combine[T, U, M1, M2](first: Sink[U, M1], second: Sink[U, M2])(
strategy: Int => Graph[UniformFanOutShape[T, U], NotUsed]): Sink[T, (M1, M2)] = {
Sink.fromGraph(GraphDSL.create(first, second)((_, _)) { implicit b => (s1, s2) =>
import GraphDSL.Implicits._
val d = b.add(strategy(2))
d ~> s1
d ~> s2
SinkShape(d.in)
})
}
}
It is adapted from Sink.combine in Akka 2.6.12 (the version OpenWhisk builds against), akka-stream/src/main/scala/akka/stream/scaladsl/Sink.scala lines 315-330, Copyright (C) 2014-2021 Lightbend Inc.
Akka 2.6.x was released under the Apache License 2.0 (Akka moved to the BSL from 2.7.0), so there is no licence conflict, but the derived code is not attributed: the file only carries the ASF header, and the top-level LICENSE does not mention Akka.
Suggested fix, either:
- Add a
LICENSEentry noting thatOwSink.combinein this file is derived from Akka 2.6.12Sink.combine(Apache-2.0, Copyright Lightbend Inc.), and carry any applicable AkkaNOTICEtext; or - Rewrite
OwSink.combineindependently and drop the "copied from" comment. It is a smallGraphDSLgraph; alternatively, Apache Pekko (the ASF fork of Akka 2.6) has the sameSink.combine, and deriving from Pekko would make this ASF-to-ASF.
The same code is in upstream Apache OpenWhisk. Related: #260.
- 主要语言
- Python
- 星标
- 576
- 派生
- 29
- 平均合并
- 3 小时 26 分钟
- 30 天内合并 PR
- 12
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/openserverless 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
apache/openserverless#269 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
apache/openserverless#267 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
apache/openserverless#266 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
apache/openserverless#264 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
apache/openserverless#262 ·
维护者通常 1 天内回复
查看 apache/openserverless 的全部 Issue
相似的 Issue
-
needs triage
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
json_params_matcher fails on falsy top-level JSON primitives (0, False, "")可能已有人在做 @mayureshsonawane17 今天认领。 未关闭Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
ayghri/i-have-adhd#249 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
modelscope/FunASR#3762 ·
维护者通常 1 天内回复