instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
apache__rocketmq__7665
apache/rocketmq
7,665
defect
a376fbcdb82e818cfa239da677669f1118e4c40f
1d6ba21f00708ccba66dac9a37b212332b80dba2
[ISSUE #7543] only call a single type of retry topic in pop
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. --> ### Which Issue(s) This PR Fixes <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your...
diff --git a/broker/src/main/java/org/apache/rocketmq/broker/processor/PopMessageProcessor.java b/broker/src/main/java/org/apache/rocketmq/broker/processor/PopMessageProcessor.java index 58baecc05ac..a8cc16e5ed5 100644 --- a/broker/src/main/java/org/apache/rocketmq/broker/processor/PopMessageProcessor.java +++ b/broker...
1
1
0
[{"id": "G0", "claim": "The topic name already determined by selectTopicConfig() before calling popMsgFromQueue should be passed in directly, so the method would no longer need to distinguish retry-topic v1 from v2 and would avoid one string concatenation, making the logic more convergent and slightly faster.", "catego...
null
apache__rocketmq__7734
apache/rocketmq
7,734
defect
6fce427e109d905530b17e64aa5dc9bc19795c5d
d91213df78ccaee8e85ac804836707f1f9f815b6
[ISSUE #7543] Add enableRetryTopicV2 brokerConfig
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. --> ### Which Issue(s) This PR Fixes <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your...
diff --git a/broker/src/main/java/org/apache/rocketmq/broker/metrics/ConsumerLagCalculator.java b/broker/src/main/java/org/apache/rocketmq/broker/metrics/ConsumerLagCalculator.java index d1f3fffde7e..1930d0dfcb6 100644 --- a/broker/src/main/java/org/apache/rocketmq/broker/metrics/ConsumerLagCalculator.java +++ b/broker...
1
1
1
[{"id": "G0", "claim": "deleteTopic should pass true to KeyBuilder.buildPopRetryTopic so the v2 pop retry topic is deleted regardless of the enableRetryTopicV2 switch, matching the pre-change behaviour of deleting both v1 and v2 retry topics; otherwise, with the switch off, v2 retry topics are left behind as stale data...
null
apache__rocketmq__7823
apache/rocketmq
7,823
defect
d9526e7ab2d7d1a01fc7456ee57dc655710e9c46
23a16b51ddaf3558fc87f9a4d1a55ff5d4c96bfb
[ISSUE #7822] fix NettyRemotingClient can't connect to IPv6 address.
### Which Issue(s) This PR Fixes Fixes #7822 ### Brief Description update getHostAndPort method in NettyRemotingClient. ### How Did You Test This Change? code covered
diff --git a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java b/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java index 9f151913067..f5157d03049 100644 --- a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java +++ b/remoti...
1
1
1
[{"id": "G0", "claim": "RongtongJin asks that a unit test be added for the changed address handling in getHostAndPort.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__rocketmq__7838
apache/rocketmq
7,838
defect
7dc0e5aed83f738f5554cb5f00e0da5dabc06e04
66856e698736a5bfda19ecd7d197f7b88c8c4fbb
Fix start() and shutdown() of DefaultMessagingProcessor
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. --> ### Which Issue(s) This PR Fixes <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your...
diff --git a/proxy/src/main/java/org/apache/rocketmq/proxy/processor/DefaultMessagingProcessor.java b/proxy/src/main/java/org/apache/rocketmq/proxy/processor/DefaultMessagingProcessor.java index ba150051bc0..d3343d8db38 100644 --- a/proxy/src/main/java/org/apache/rocketmq/proxy/processor/DefaultMessagingProcessor.java ...
1
1
1
[{"id": "G0", "claim": "It seems unnecessary to start the other processors (producerProcessor, consumerProcessor, transactionProcessor, clientProcessor, requestBrokerProcessor) in DefaultMessagingProcessor.init() because this issue is only related to the receipt handle manager, so only the receipt-handle-related proces...
null
apache__rocketmq__9071
apache/rocketmq
9,071
defect
16b6e53263477794125a49d9f31a994a510970b7
6fd33fbdb6a7ab861f24d5ed5622e09843e83fc5
[ISSUE #9069] Fix the IndexFile ConcurrentModificationException in tiered storage
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. --> ### Which Issue(s) This PR Fixes <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your...
diff --git a/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/common/GroupCommitContext.java b/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/common/GroupCommitContext.java new file mode 100644 index 00000000000..f677e7c934e --- /dev/null +++ b/tieredstore/src/main/java/org/apache/rocketmq/tieredsto...
2
2
0
[{"id": "G0", "claim": "The log statements should use a consistent style, with the error description placed before the topic and queueId parameters.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Some test cases should be added to cover the new ...
null
apache__rocketmq__9114
apache/rocketmq
9,114
defect
9ce83452a62f3fb910454bab92c092c83d561bdb
3f846a01d6e67c7579ce22c931669b8d5b8b1e8b
[ISSUE #9111] Support export broker RocksDB Config to json file
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. --> ### Which Issue(s) This PR Fixes <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your...
diff --git a/broker/src/main/java/org/apache/rocketmq/broker/config/v1/RocksDBConsumerOffsetManager.java b/broker/src/main/java/org/apache/rocketmq/broker/config/v1/RocksDBConsumerOffsetManager.java index 824fc0fee3e..59af1ebfca3 100644 --- a/broker/src/main/java/org/apache/rocketmq/broker/config/v1/RocksDBConsumerOffs...
6
5
2
[{"id": "G0", "claim": "The command's new rpc mode should also support the -b parameter so an individual broker can be specified for the export (are there situations where that is necessary?).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ExportMetadata...
null
apache__rocketmq__9157
apache/rocketmq
9,157
defect
de4e48d28acf549c0d83fed8c0b39e13e9fa82fa
2ed4f777e5838abebfc4414475273e6ecefb8f16
[ISSUE #9156] Use fastjson2 in AclUtils#getAclRPCHook
Fixes #9156, use fastjson2 to replace fastjson1.
diff --git a/acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java b/acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java index f32acaf2f74..d13c0362bec 100644 --- a/acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java +++ b/acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java @@ ...
2
2
0
[{"id": "G0", "claim": "Reverting Assert.assertEquals to plain assertEquals (static import) has no benefit, so the test line should be kept as it was.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Changing the test's assertion calls loses git b...
null
apache__rocketmq__9483
apache/rocketmq
9,483
defect
cfddd12c2c03b67ed78c8b27f4856021c5f1e003
ada9a1c99df2a78f38a3611401fc30ad3597c8f0
[ISSUE #8920] Refactor SSL context loading process to support multiple protocols dynamic loading
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. --> ### Which Issue(s) This PR Fixes <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your-w...
diff --git a/proxy/src/main/java/org/apache/rocketmq/proxy/ProxyStartup.java b/proxy/src/main/java/org/apache/rocketmq/proxy/ProxyStartup.java index e37ba975fec..cfb0efce8e0 100644 --- a/proxy/src/main/java/org/apache/rocketmq/proxy/ProxyStartup.java +++ b/proxy/src/main/java/org/apache/rocketmq/proxy/ProxyStartup.java...
7
5
1
[{"id": "G0", "claim": "The GrpcTlsReloadHandler nested class in GrpcServer should not be static.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TlsCertificateManager should not be a singleton; dependency injection should be used instead.", "category": "...
null
apache__rocketmq__9528
apache/rocketmq
9,528
defect
9337904cdf44e9de74204bf1bfb1b5e82a4b7f59
e1d42cecce474dd5c843371e5c869c358e503430
[ISSUE #9254] Optimize the logs of the message store
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. --> ### Which Issue(s) This PR Fixes <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your...
diff --git a/store/src/main/java/org/apache/rocketmq/store/ConsumeQueue.java b/store/src/main/java/org/apache/rocketmq/store/ConsumeQueue.java index 79e5368216b..134846872c8 100644 --- a/store/src/main/java/org/apache/rocketmq/store/ConsumeQueue.java +++ b/store/src/main/java/org/apache/rocketmq/store/ConsumeQueue.java...
2
2
1
[{"id": "G0", "claim": "The state machine should take the load result into consideration before transiting to the next state after loading the commit log.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ERROR state should use -1 as its value rath...
null
apache__rocketmq__9924
apache/rocketmq
9,924
defect
beee84fa44a064b10ada99bc655fb707c1f772f2
6d0fd8d3fe72fa4e81ab1881ddb9ef8ac1a061d1
[ISSUE #9923] Transactional messages should not send custom delayed messages
Fixes #9923 .
diff --git a/client/src/main/java/org/apache/rocketmq/client/impl/producer/DefaultMQProducerImpl.java b/client/src/main/java/org/apache/rocketmq/client/impl/producer/DefaultMQProducerImpl.java index b6af66b67b2..4ea9b094bd5 100644 --- a/client/src/main/java/org/apache/rocketmq/client/impl/producer/DefaultMQProducerImpl...
1
1
1
[{"id": "G0", "claim": "In sendMessageInTransaction, when a transactional message carries a delay setting, the code should throw an exception instead of silently clearing the property, so the user can perceive the usage error.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__samza__1063
apache/samza
1,063
defect
43819f4746a4cd01b2ece2a65d892fb8a30978e0
3a29a294b9ff2aafb6c72341b09b695ed04d8e28
SAMZA-2234: Passing context to Samza SQL UDFs
This change provides ability for the UDFs to access the Samza context. Context is needed by the UDFs for various reasons 1. To create metrics 2. To access configs 3. Access any external contexts
diff --git a/samza-api/src/main/java/org/apache/samza/sql/udfs/ScalarUdf.java b/samza-api/src/main/java/org/apache/samza/sql/udfs/ScalarUdf.java index ff674877e3..5dda42fb9f 100644 --- a/samza-api/src/main/java/org/apache/samza/sql/udfs/ScalarUdf.java +++ b/samza-api/src/main/java/org/apache/samza/sql/udfs/ScalarUdf.ja...
1
1
0
[{"id": "G0", "claim": "The javadoc for Expression.execute should name the SamzaSqlExecutionContext parameter 'sqlContext' and add another @param entry on the next line for the regular Samza 'context'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
apache__samza__1085
apache/samza
1,085
defect
e4d0ad11ca360e429f14e291074147dc04dd7fe7
2093ad40ddcdb355d27caa156fdb627f2a6cd464
Samza-2253: Upgrading calcite to 1.19
Upgrading calcite to latest build to include bug fixes with compound boolean checks and others. Subqueries with flatten needed some change to get it working.
diff --git a/gradle/dependency-versions.gradle b/gradle/dependency-versions.gradle index 9279051f34..6fe812f517 100644 --- a/gradle/dependency-versions.gradle +++ b/gradle/dependency-versions.gradle @@ -19,7 +19,7 @@ ext { apacheCommonsCollections4Version = "4.0" avroVersion = "1.7.1" - calciteVersion = "1.17....
1
1
1
[{"id": "G0", "claim": "The pull request should not disable the SAMZA-2252 subquery-with-flatten end-to-end test (@Ignore) while leaving the flatten functionality broken, since that capability is required for the Ambry use-case — either make it work or wait on the change until the fix is in.", "category": "correctness"...
null
apache__samza__1117
apache/samza
1,117
defect
ec536e14a1aa3d0fbd31c76418b605ea82c8b8d9
d976075117c267487b77fe073ca7e6dda1e974ab
[SAMZA-2283] Samza Sql Diagnostics: use Nanosecond for logical operator processing time and query latency
1) Use nanoTime for SamzaSql specific latency metrics (i.e., logical operator processing time, and query latency) 2) remove some unused imports
diff --git a/samza-api/src/main/java/org/apache/samza/system/IncomingMessageEnvelope.java b/samza-api/src/main/java/org/apache/samza/system/IncomingMessageEnvelope.java index e8bb3315fb..41310dede4 100644 --- a/samza-api/src/main/java/org/apache/samza/system/IncomingMessageEnvelope.java +++ b/samza-api/src/main/java/or...
10
9
4
[{"id": "G0", "claim": "Passing System.nanoTime() where the constructor documents an epoch-millis arrival timestamp conflates two incompatible time bases; nanoTime should not be mixed with epoch millis.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
apache__samza__1127
apache/samza
1,127
defect
da0bf393bc5b6e03985b28ae706c3e05ae5e6992
dedd754a45baeeb32637533c8bb15fa072268fe6
SAMZA-2291: Custom IME Put in InMemoryManager runs into Offset mismatch even if offsets are correctly set
- Fixed the untested code path - Fixed the bug in InMemoryManager
diff --git a/samza-core/src/main/java/org/apache/samza/system/inmemory/InMemoryManager.java b/samza-core/src/main/java/org/apache/samza/system/inmemory/InMemoryManager.java index 2c2e9aeebd..cfb1675b8a 100644 --- a/samza-core/src/main/java/org/apache/samza/system/inmemory/InMemoryManager.java +++ b/samza-core/src/main/...
1
1
1
[{"id": "G0", "claim": "The put(SystemStreamPartition, IncomingMessageEnvelope) method should check that envelope.getOffset() is not null before dereferencing it in the offset comparison.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__samza__1136
apache/samza
1,136
defect
4b012d90d482fc906d4737bb693f806e2ff32a3e
88a05060c16cc047cc6cb7eadc9939cfdbdb0cbd
SAMZA-2298: Fix CoordinatorStreamStore creation for LocalApplicationRunner
**Root Causes** For standalone, to prevent a double bootstrap of the coordinator stream in the coordinator stream metadata store from the `StreamProcessor` and from the `ZkJobCoordinator`, the initialization of the metadata store was moved up to the `LocalApplicationRunner`. However, during the refactor, the creation ...
diff --git a/samza-core/src/main/java/org/apache/samza/runtime/LocalApplicationRunner.java b/samza-core/src/main/java/org/apache/samza/runtime/LocalApplicationRunner.java index 9337d9bd22..cdf1a33dbe 100644 --- a/samza-core/src/main/java/org/apache/samza/runtime/LocalApplicationRunner.java +++ b/samza-core/src/main/jav...
3
1
0
[{"id": "G0", "claim": "Justify or reconsider why the namespace passed to getMetadataStore when creating the coordinator stream store is hardcoded as \"NoOp\".", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Confirm whether createUnderlyingCoordinatorStream...
null
apache__samza__1144
apache/samza
1,144
defect
0c5c3a56104b0872a2cc7692fd87db691621a887
d0394038710975cc4153c803c4ab780b14aeb721
SAMZA-2309: Remove readFn requirement for remote tables
@dengpan-yin @dengpanyin @xinyuiscool Removed validation for read table requied
diff --git a/samza-api/src/main/java/org/apache/samza/table/descriptors/RemoteTableDescriptor.java b/samza-api/src/main/java/org/apache/samza/table/descriptors/RemoteTableDescriptor.java index b0590c5f15..6461639614 100644 --- a/samza-api/src/main/java/org/apache/samza/table/descriptors/RemoteTableDescriptor.java +++ b...
1
1
1
[{"id": "G0", "claim": "After removing the readFn requirement, there should be validation that at least one of a read function or a write function is present in RemoteTableDescriptor, and the readfn-required validations in the RemoteTable and AsyncRemoteTable constructors and any affected tests should be handled too.",...
null
apache__samza__1153
apache/samza
1,153
defect
713a8bf68c2f4f81f7c575f66b1cf091ad81113c
d5a867cbbcc65ef29a4896a9238ae845bddf4847
SAMZA-2320: Samza-sql: Refactor validation to cover more cases and make it more extensible.
Code changes involve the following: 1. AvroTypeFactoryImpl: Change API access modifiers from private to protected to be called from derived classes. 2. SamzaSqlValidator: 2.1 Change order of validation of select query fields and output fields so that the error messages make more sense. 2.2 Take care of the case...
diff --git a/samza-sql/src/main/java/org/apache/samza/sql/avro/AvroTypeFactoryImpl.java b/samza-sql/src/main/java/org/apache/samza/sql/avro/AvroTypeFactoryImpl.java index 4c069384b2..d6c41cc522 100644 --- a/samza-sql/src/main/java/org/apache/samza/sql/avro/AvroTypeFactoryImpl.java +++ b/samza-sql/src/main/java/org/apac...
9
6
1
[{"id": "G0", "claim": "The new isTopLevel parameter is passed to isOptional and convertSchema but never used by either method, so it should not be passed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request description should be ext...
null
apache__samza__1160
apache/samza
1,160
defect
713a8bf68c2f4f81f7c575f66b1cf091ad81113c
2aec233184ea6e8cf4e5d07c5d933df8233169df
Transactional State [1/5]: Added Store Checkpoint API
This PR adds a new 'checkpoint' API to KeyValueStore that allows taking persistent (on-disk) snapshots of the local store state during commits for implementations that support it. In RocksDB, this creates a new [Checkpoint](https://github.com/facebook/rocksdb/wiki/Checkpoints) directory. For supporting transacti...
diff --git a/build.gradle b/build.gradle index b7385f9c98..2c35918380 100644 --- a/build.gradle +++ b/build.gradle @@ -184,6 +184,7 @@ project(":samza-core_$scalaSuffix") { compile "net.sf.jopt-simple:jopt-simple:$joptSimpleVersion" compile "org.apache.commons:commons-collections4:$apacheCommonsCollections4Ve...
5
1
0
[{"id": "G0", "claim": "Does absence of a returned Path denote a no-op / not-implemented checkpoint or an implementation failure — the javadoc should specify the semantics, and the author proposes clarifying it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
apache__samza__1161
apache/samza
1,161
defect
713a8bf68c2f4f81f7c575f66b1cf091ad81113c
f59bc1926f61d9d3289b40cc994e4c5ca4fd2209
Transactional State [2/5]: Added a ChangelogSSPIterator API
This PR changes the KeyValueStorageEngine restore API and implementation to take a new ChangelogSSPIterator instead of a plain Iterator. The new ChangelogSSPIterator is similar to the existing SystemStreamPartitionIterator with the following differences: 1. This new iterator has 2 modes: `Restore` and `Trim`. 2....
diff --git a/build.gradle b/build.gradle index b7385f9c98..2c35918380 100644 --- a/build.gradle +++ b/build.gradle @@ -184,6 +184,7 @@ project(":samza-core_$scalaSuffix") { compile "net.sf.jopt-simple:jopt-simple:$joptSimpleVersion" compile "org.apache.commons:commons-collections4:$apacheCommonsCollections4Ve...
4
3
1
[{"id": "G0", "claim": "The restore loop should throw an exception if the iterator transitions to RESTORE after being in TRIM, unless that cannot happen by guarantee of the ChangelogIterator.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The restor...
null
apache__samza__1173
apache/samza
1,173
defect
6d91400536612aa75af752fa66a31f99236c7b54
28ff7200c00ac4e2c6d0ce5a958411494bf7fa69
SAMZA-2333: [AM isolation] Use cytodynamics classloader to launch job coordinator
This change uses cytodynamics to load Samza framework code from a different package than the Samza application. This allows dependencies to be isolated between framework code and application code. This flow is only enabled by setting the config `samza.cluster.based.job.coordinator.dependency.isolation.enabled`. Made...
diff --git a/build.gradle b/build.gradle index b7385f9c98..cb18225f08 100644 --- a/build.gradle +++ b/build.gradle @@ -189,6 +189,7 @@ project(":samza-core_$scalaSuffix") { compile "org.scala-lang:scala-library:$scalaVersion" compile "org.slf4j:slf4j-api:$slf4jVersion" compile "net.jodah:failsafe:$failsa...
12
11
2
[{"id": "G0", "claim": "The cytodynamics dependency version needs to be replaced by a real (non-SNAPSHOT) version before this is checked in.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new cytodynamics dependency should also be added to the L...
null
apache__samza__1180
apache/samza
1,180
defect
a3dd6fd07166cc0a02c6b1401b3ab0d0386cd429
a9f06daf9abd7ece0a97d4058c3eda359b866c5a
SAMZA-2340: [Container Placements] Introduce ContainerManager for handling validation for failures & starts of active & standby containers
**Summary** - Introduce a ContainerManager that can act a single entity maintaining state for validation, starts & failures of any requests relating to active & standby containers - The ContainerProcessManager & ContainerAllocator should call the ContaineProcessManager for any state validation & for fetching the ne...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/ContainerAllocator.java b/samza-core/src/main/java/org/apache/samza/clustermanager/ContainerAllocator.java index 361d1ebcec..7e21c044c8 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/ContainerAllocator.java +++ b/samza-core/src...
3
2
0
[{"id": "G0", "claim": "The fields clusterResourceManager and standbyContainerManager could be made final.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ContainerManager could be turned into an interface implemented by this class and StandbyCon...
null
apache__samza__1192
apache/samza
1,192
defect
6258d2b38d75764d0605dcded1cfdc7ca5e90604
44cb423078ffbbd0f5767029bbb09f1689ccd2b3
SAMZA-2354: Improve UDF discovery in samza-sql.
This patch is comprised of following changes: 1. Currently to plugin a udf implementation into samza-sql engine, users have to set the fully qualified class name of their UDF implementation in `samza.sql.udfClasses` configuration. Any user error made in defining the fully-qualified name of udf-class configuration ...
diff --git a/build.gradle b/build.gradle index 2c35918380..845b3160d0 100644 --- a/build.gradle +++ b/build.gradle @@ -334,6 +334,7 @@ project(":samza-sql_$scalaSuffix") { compile "org.apache.avro:avro:$avroVersion" compile "org.apache.calcite:calcite-core:$calciteVersion" compile "org.slf4j:slf4j-api:$s...
4
4
2
[{"id": "G0", "claim": "Do not delete ConfigBasedUdfResolver.java — keep the existing config-based UDF resolver implementation.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the LinkedIn-specific reference from the code comment.", "category": "ma...
null
apache__samza__1236
apache/samza
1,236
defect
454bfabcbf702e02ad0678ae51a677a2c2230bd5
3264d0e68df2bace853812314670467cca551166
SAMZA-2419: removing duplicate cleaning of stores
**Issues:** Code block for cleaning logged stores according to config value is duplicated and references incorrect & incomplete pathnames. **Changes:** Removing duplicate code block, and correcting the directories marked for deletion. When the clean.on.container.start config is true for a store and transactional st...
diff --git a/samza-core/src/main/java/org/apache/samza/storage/TransactionalStateTaskRestoreManager.java b/samza-core/src/main/java/org/apache/samza/storage/TransactionalStateTaskRestoreManager.java index 8133fac7be..e4e04870a6 100644 --- a/samza-core/src/main/java/org/apache/samza/storage/TransactionalStateTaskRestore...
2
1
0
[{"id": "G0", "claim": "The kept clean.store.start block in getStoreActions should resolve the directory to delete from loggedStoreBaseDirectory instead of nonLoggedStoreBaseDirectory.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The cleaning lo...
null
apache__samza__1251
apache/samza
1,251
defect
db259fa6ba338588c9c7b12135f6a01e8bd39c99
23ae3230ab2f0a715cb5b8858d62bedd04d0fba4
SAMZA-2431: Fix the checkpoint and changelog topic auto-creation.
Symptom: Checkpoint and changelog kafka topics of a samza job may be created with cleanup.policy set to 'delete' instead of 'compact' for certain cases. Cause: - *Checkpoint:* The control-flow in KafkaStreamSpec to build checkpoint spec swallows the essential kafka-topic configuration rather it passes empty config...
diff --git a/samza-api/src/main/java/org/apache/samza/system/StreamSpec.java b/samza-api/src/main/java/org/apache/samza/system/StreamSpec.java index a1ad5e4cde..c122371484 100644 --- a/samza-api/src/main/java/org/apache/samza/system/StreamSpec.java +++ b/samza-api/src/main/java/org/apache/samza/system/StreamSpec.java @...
6
5
1
[{"id": "G0", "claim": "Fix the indentation of the rewritten checkpoint-spec lines in KafkaSystemAdmin.toKafkaSpec.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use the already-bound rocksDbTtl value instead of reading the TTL out of the confi...
null
apache__samza__1255
apache/samza
1,255
defect
5bef72595faa8c8cdc9e35b09342e36a5085c10b
20cd9489454a8fe06cb55770a2d0992862b97cc0
SAMZA-2429: Update LocalApplicatoinRunner to load full job config from config loader when present.
Design: https://cwiki.apache.org/confluence/display/SAMZA/SEP-23%3A+Simplify+Job+Runner Changes: 1. Update unit test only public constructor of LocalApplicationRunner to take SamzaApplication and Config as well to be consistent with other constructors. 2. Update private constructor of LocalApplicationRunner to ta...
diff --git a/samza-core/src/main/java/org/apache/samza/runtime/LocalApplicationRunner.java b/samza-core/src/main/java/org/apache/samza/runtime/LocalApplicationRunner.java index 9ad52b1f1d..8a4f069c4e 100644 --- a/samza-core/src/main/java/org/apache/samza/runtime/LocalApplicationRunner.java +++ b/samza-core/src/main/jav...
3
3
1
[{"id": "G0", "claim": "The new flow calls getCoordinationUtils and getDefaultCoordinatorStreamStoreFactory with the initial config instead of the full config, so the full config should be loaded (via the config loader) before those calls.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
apache__samza__1261
apache/samza
1,261
defect
4e136a9948f5e8762b0f8f182ff2c7e47717bd54
69c8fa58e5574862d459ee8aacf222d070cd7f3e
SAMZA-2447: Checkpoint dir removal should only search in valid store dirs
**Symptom:** NPE when attempting to remove old checkpoint directories. **Cause:** Removal of old checkpoints assumes every file in the logged store base directory is also a directory, which may not be true if the user has configured it to a path that is not exclusive to store contents. **Changes:** Check that t...
diff --git a/samza-core/src/main/scala/org/apache/samza/storage/TransactionalStateTaskStorageManager.scala b/samza-core/src/main/scala/org/apache/samza/storage/TransactionalStateTaskStorageManager.scala index 20c7271a2f..0335710a35 100644 --- a/samza-core/src/main/scala/org/apache/samza/storage/TransactionalStateTaskSt...
1
1
0
[{"id": "G0", "claim": "If the new test exercises the specific sub-case where listFiles returns null, the test method should be renamed to reflect that (e.g. testRemoveOldCheckpointsWhenXYZ).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__samza__1263
apache/samza
1,263
defect
ca641dcf7450682a69e8eda53b9bc40702b4ad7a
d45cf5df41eddbd9c5686fbd54de51715801f554
SAMZA-2448: [Scala cleanup] Clean up and convert some parts of samza-kafka to java
Issues: Most of samza-kafka is now in Java, so it would be good to convert more classes from Scala to Java. Some Java classes are within the src/main/scala directory. Changes: 1. Moved some classes around so that they are in the proper location. 2. Rewrote KafkaUtil.scala into KafkaUtil.java 3. Removed some unuse...
diff --git a/samza-kafka/src/test/scala/org/apache/samza/config/TestRegExTopicGenerator.scala b/samza-core/src/test/scala/org/apache/samza/config/TestRegExTopicGenerator.scala similarity index 97% rename from samza-kafka/src/test/scala/org/apache/samza/config/TestRegExTopicGenerator.scala rename to samza-core/src/test/...
2
1
0
[{"id": "G0", "claim": "The checkpoint topic name format string \"__samza_checkpoint_ver_%d_for_%s_%s\" should be defined as a static final constant instead of being inlined in getCheckpointTopic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
apache__samza__1267
apache/samza
1,267
defect
841c9a77679c1c0ca203b1070e229b8bb26b8e8e
847005cd8fde6309fc3b1b769c17d891ac970026
SAMZA-2402: Tie Container placement service and Container placement handler and validate placement requests
**Design:** SEP-22: Container Placements in Samza **Changes:** Following abilities are added as a part of this PR: 1. Container placement service is now tied with Container Placement Handler for dispatching container placement requests 2. Ability to queue actions is added along with de-queuing if there is alread...
diff --git a/samza-api/src/main/java/org/apache/samza/container/placement/ContainerPlacementResponseMessage.java b/samza-api/src/main/java/org/apache/samza/container/placement/ContainerPlacementResponseMessage.java index 996bfe8d60..8a06d88a09 100644 --- a/samza-api/src/main/java/org/apache/samza/container/placement/Co...
19
15
0
[{"id": "G0", "claim": "The dequeued-actions cache class lacks javadoc stating its thread-safety guarantees, which the author noted he would add.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The createContainerProcessManager method, which only w...
null
apache__samza__1297
apache/samza
1,297
defect
d02216726e03695096b680f0f5bff9c0d6ca2e6c
087a20f160e7f411b1bfa7a138e0b58f60875a8f
SAMZA-2379: Support Container Placements for job running in degraded state
**Design**: [SEP-22: Container Placements in Samza](https://cwiki.apache.org/confluence/display/SAMZA/SEP-22:+Container+Placements+in+Samza) **Changes:**: Today if the config "cluster-manager.container.fail.job.after.retries" is set to false that means after exhausting all the retry on the containers, Job Coordinato...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/ContainerAllocator.java b/samza-core/src/main/java/org/apache/samza/clustermanager/ContainerAllocator.java index 2e223fc600..ae25e86a2d 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/ContainerAllocator.java +++ b/samza-core/src...
7
6
0
[{"id": "G0", "claim": "The test-only stopStreamProcessor(SamzaResource, int) overload in MockClusterResourceManager should be annotated (e.g. @VisibleForTesting) or commented as package-private for testing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
apache__samza__1299
apache/samza
1,299
defect
cd535d00bb4b3e07dbd96bf0bee453419a114e07
8e392154ec2cc4b69c6240598b8568249c6bfcdb
SAMZA-2477: JobModel isn't updated with latest "task.inputs" if enabled regex topic rewriter
### Symptom JobModelManager provides readJobModel() function to let `JobCoordinator`, `ClusterBasedJboCoordinator` and etc know the latest JobModel information. If the users enable regex topic rewriter in their config, `readJobModel()` function will dynamically load the latest Kafka topic list and generate new Task...
diff --git a/samza-core/src/main/scala/org/apache/samza/coordinator/JobModelManager.scala b/samza-core/src/main/scala/org/apache/samza/coordinator/JobModelManager.scala index e2dbf3f8f1..aa798f360f 100644 --- a/samza-core/src/main/scala/org/apache/samza/coordinator/JobModelManager.scala +++ b/samza-core/src/main/scala/...
1
1
0
[{"id": "G0", "claim": "Rename the method parameter to `originalConfig` and rename `newConfig` to `config` to minimize the diff in this PR and remove unnecessary rename-only redirections in the commit log.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__samza__1305
apache/samza
1,305
defect
8fe7c7f7b1d830f67d86b2242fc975d918e02ace
5834237f20f98f29be3616544618dbbe4a4ce371
SAMZA-2479: Add configurable default for min compaction lag ms
**Feature:** Allow changelog min.compaction.lag.ms to be assigned a configurable default value that will apply to all stores if present, and unless overriden by a store-specific config. The need for a different value comes from an evaluation done internally (within LI) that we can have a more relaxed setting than 4h...
diff --git a/samza-core/src/main/java/org/apache/samza/config/StorageConfig.java b/samza-core/src/main/java/org/apache/samza/config/StorageConfig.java index b5687c87dd..a8b870268f 100644 --- a/samza-core/src/main/java/org/apache/samza/config/StorageConfig.java +++ b/samza-core/src/main/java/org/apache/samza/config/Stor...
2
2
1
[{"id": "G0", "claim": "The new default should live under the JobConfig hierarchy (e.g. job.default.changelog...) instead of the stores.* namespace, because stores.default.... dilutes the implicit contract that what follows 'stores' is a store name and makes 'default' a reserved store name.", "category": "design", "ver...
null
apache__samza__1309
apache/samza
1,309
defect
896cfee840dbf111245095946e4504232e97d1fe
3b3cb4f1dbc6c158742806878386fdc62a1b8213
SAMZA-2453: Update ClusterBasedJobCoordinator to support Beam jobs
Design: https://cwiki.apache.org/confluence/display/SAMZA/SEP-23%3A+Simplify+Job+Runner Changes: 1. Invoke app.main.class with app.main.args when present instead of invoking ClusterBasedJobCoordinator#run API Changes: N/A Upgrade Instructions: For beam jobs, beam's main class and pipeline options nee...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java b/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java index f894bcff5c..69c5f1fa81 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.j...
2
2
0
[{"id": "G0", "claim": "Add comments explaining the Beam use cases: what expected main/args are passed in and what is done with them.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the else branch of toArgs (emitting --config key=valu...
null
apache__samza__1334
apache/samza
1,334
defect
b0fdb826fbff75922ad22392b1521d8f611c7621
9ab7fc7347ee39eada9c815bef5df85b1c524e76
SAMZA-2496: TestContainerHeartbeatMonitor does not properly stop the ContainerHeartbeatMonitor
Symptom: In some environments, the samza-core unit test suite fails with `Process 'Gradle Test Executor N' finished with non-zero exit value 1 This problem might be caused by incorrect test process configuration.` Cause: `ContainerHeartbeatMonitor` submits a delayed "force shutdown" task (uses `System.exit(1)`) to shu...
diff --git a/samza-core/src/main/java/org/apache/samza/container/ContainerHeartbeatMonitor.java b/samza-core/src/main/java/org/apache/samza/container/ContainerHeartbeatMonitor.java index 55fa8da8c8..1a131c35d0 100644 --- a/samza-core/src/main/java/org/apache/samza/container/ContainerHeartbeatMonitor.java +++ b/samza-co...
1
1
0
[{"id": "G0", "claim": "The test need not wait 2 seconds; buildScheduledExecutorService should take a CountDownLatch and run the Runnable directly so the wait can be avoided.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
apache__samza__1338
apache/samza
1,338
defect
c527ec5a151e0da570dfdc3896c30694ac7c34f6
065526abd60e0457d3d5116300ba3e1b039aa859
SAMZA-2502: Byte array keys be partitioned based on array contents in…
Issue: InMemorySystemProducer uses the hashCode of the partition key to decide to which partition the message goes. This works well when the key is an object whose hashCode method can be override. But in the case when the partition key is serialized as a byte[], the message can go to any partition. It turns out that t...
diff --git a/samza-core/src/main/java/org/apache/samza/system/inmemory/InMemorySystemProducer.java b/samza-core/src/main/java/org/apache/samza/system/inmemory/InMemorySystemProducer.java index 246a558c27..342d2c83a7 100644 --- a/samza-core/src/main/java/org/apache/samza/system/inmemory/InMemorySystemProducer.java +++ b...
1
1
1
[{"id": "G0", "claim": "The new test file TestInMemorySystemProducer.java has no Apache license header, so the rat check fails; add the copyright header to the file.", "category": "licensing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
apache__samza__1339
apache/samza
1,339
defect
291e8540bec120363df07bcd4468d446590e0e0f
67c10152052753eb1e2de171078e671865603de0
SAMZA-2503 : Adding retry when getting ssp metadata from kafka
Currently, we only fetch ssp metadata from kafka only once, ideally we should add retry: - to be consistent with function getSystemStreamMetadata() - avoid any unexpected failure due to transient errors. Issue: Currently Samza will only fetch ssp metadata from kafka once. So some transient errors may cause the jo...
diff --git a/samza-kafka/src/main/java/org/apache/samza/system/kafka/KafkaSystemAdmin.java b/samza-kafka/src/main/java/org/apache/samza/system/kafka/KafkaSystemAdmin.java index ecb95a92fb..145ff1dd14 100644 --- a/samza-kafka/src/main/java/org/apache/samza/system/kafka/KafkaSystemAdmin.java +++ b/samza-kafka/src/main/ja...
3
3
2
[{"id": "G0", "claim": "The new overloaded getSSPMetadata(ssps, retryBackoff) method should be package private instead of public.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Unit tests should be added for the new retry logic in getSSPMetadata.", "cate...
null
apache__samza__1342
apache/samza
1,342
defect
b193d45a8cd53996a0272817cc37a59255058092
67f169720537a490f640000839204347ad5ef54e
SAMZA-2509: New config name to represent if split deployment feature is enabled
#### Issues Currently, we are using `samza.cluster.based.job.coordinator.dependency.isolation.enabled` to show if Samza application enables split deployment on job coordinator. However, we also need one similar config for the job container with the same purpose. So we'd better consolidate them to one generic conf...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java b/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java index 0cb80b20fc..0bd66dcaee 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.j...
1
1
0
[{"id": "G0", "claim": "The PR's comments should use the term \"split deployment\" instead of \"isolated\"/\"isolation\", since \"isolation\" may become confusing once the terminology is generally replaced by \"split deployment\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introd...
null
apache__samza__1344
apache/samza
1,344
defect
fff0bb072f3a118eb8cf71257f54ef3aa8eedbd6
d7a756ca5b593df037368e13729c1449cbdc1ae7
SAMZA-2510: Incorrect shutdown status due to race between runloop and process callback thread
**Symptom**: A race between the process callback thread and the runloop thread can result in incorrect shutdown status for shutdown triggered by end of stream. **Issue**: Currently runloop performs message choosing and dispatching in a loop indefinitely until interrupted by a shutdown request or an exception during pr...
diff --git a/samza-core/src/main/java/org/apache/samza/container/RunLoop.java b/samza-core/src/main/java/org/apache/samza/container/RunLoop.java index a509a27abb..779192b9f0 100644 --- a/samza-core/src/main/java/org/apache/samza/container/RunLoop.java +++ b/samza-core/src/main/java/org/apache/samza/container/RunLoop.ja...
3
3
0
[{"id": "G0", "claim": "The new test testExceptionIsPropagatedAfterShutdown may non-deterministically cover only the throwable path rather than the shutdownNow path, so it should be renamed to testExceptionIsPropagated and a deterministic race test should be built with a hook in TestTask instead.", "category": "testing...
null
apache__samza__1347
apache/samza
1,347
defect
fff0bb072f3a118eb8cf71257f54ef3aa8eedbd6
8e509fc18f82f1b7a6334a02f4150661517901c9
SAMZA-2511 : Adding logic to handle container stop fail
Problem: The standby container manager does not handle container-stop-failures. These events can happen as a result of certificate/authentication issue during the execution of the container-stop. The problem is the standby-container-failover flow relies on a stop-container succeeding and in this case does not complete...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterResourceManager.java b/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterResourceManager.java index 8ea3c30185..43b3d36ef6 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterResourceManager.java +++ b/sa...
6
4
1
[{"id": "G0", "claim": "The ContainerAllocator only relinquishes resources when there are no requests in the queue, so it is worth manually releasing the acquired resource in the container stop-fail case.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
apache__samza__1349
apache/samza
1,349
defect
9f2d6ddac33d877da163ea5d0177f53824abed63
8a3c780c51511a9414ca15555230474b0c1b4e45
SAMZA-2514: Refactor codes to make runWithClassLoader method more generic
#### Issues Currently, we define the `runWithClassLoader` method in `ClusterBasedJobCoordinator` to support split deployment. However, the job container needs a similar `runWithClassLoader` method to support split deployment. So we'd better make the `runWithClassLoader` method more generic, then `LocalContainerRunner`...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java b/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java index 0bd66dcaee..ed99ad4e02 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.j...
1
1
0
[{"id": "G0", "claim": "The exception message in the new executeRunForRunnerClass helper still names runClusterBasedJobCoordinator and should be updated to reflect the generic runMethodName.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__samza__1352
apache/samza
1,352
defect
e86951f102c7a854d343b1f80dc2796be29c9c81
e56a1a6f593ac85df8f11191f9d6e6ec0b0b35c2
SAMZA-2516: Migrate BaseKeyValueStorageEngineFactory to be an abstract class instead of trait
Issues: 1. If using Scala 2.11, there is a compile error when trying to use a Java class extend a Scala trait with implemented methods. BaseKeyValueStorageEngineFactory can be considered part of the Samza API, but it is a Scala trait with an implemented method, so that restricts extension. 2. It would be good to migr...
diff --git a/build.gradle b/build.gradle index 94d353b9f9..dc3c623203 100644 --- a/build.gradle +++ b/build.gradle @@ -624,6 +624,7 @@ project(":samza-kv_$scalaSuffix") { compile project(':samza-api') compile project(":samza-core_$scalaSuffix") compile "org.scala-lang:scala-library:$scalaVersion" + te...
8
6
1
[{"id": "G0", "claim": "If there is no difference in the store wrapping order between the disallow-large-messages and allow branches, refactor that section into a function parameterised by the getDisallowLargeMessages result.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"...
null
apache__samza__1358
apache/samza
1,358
defect
0080433d0a97a4de9173732dec12812a23b350c9
c340bd00ed9a20d9c992fbf5ba009041ccac22ee
SAMZA-2522: Add metadata generator for azure storage blob
**Feature:** This PR extends the existing AzureBlobSystemProducer by adding the ability to enhance an azure storage blob with metadata - basically key-value pairs to the blob's metadata (sits outside of the blob's actual content). This aids tremendously in ingesting these blobs into Kusto (Azure's data explorer). *...
diff --git a/docs/learn/documentation/versioned/jobs/samza-configurations.md b/docs/learn/documentation/versioned/jobs/samza-configurations.md index 5d4daed3e9..932c4c8b92 100644 --- a/docs/learn/documentation/versioned/jobs/samza-configurations.md +++ b/docs/learn/documentation/versioned/jobs/samza-configurations.md @...
3
2
1
[{"id": "G0", "claim": "SYSTEM_BLOB_METADATA_GENERATOR_CONFIG_PREFIX may need a trailing '.' at the end so that the prefix gets stripped off in getSystemMetadataGeneratorConfigs.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "For consistency, the ne...
null
apache__samza__1364
apache/samza
1,364
defect
5e73b1f6f08a876037b8d97baad9947c4d5a077c
6ac55fe66e57aa6e11a67dacef14bc62f1d3696a
SAMZA-2534: AzureBlobSystemProducer: Enable adding of number of records in blob as metadata of the blob
Feature: Enable addition of number of records in a blob to the blob's metadata. Changes: BlobMetadataContext passed as input to BlobMetadataGenerator interface now have an additional field giving the number of records in the blob. This can be used as needed by the generator. API changes: BlobMetadataContext pass...
diff --git a/samza-azure/src/main/java/org/apache/samza/system/azureblob/avro/AzureBlobAvroWriter.java b/samza-azure/src/main/java/org/apache/samza/system/azureblob/avro/AzureBlobAvroWriter.java index 6e74461c5b..5220410ac5 100644 --- a/samza-azure/src/main/java/org/apache/samza/system/azureblob/avro/AzureBlobAvroWrite...
2
1
0
[{"id": "G0", "claim": "Use AtomicLong for totalNumberOfRecordsInBlob so that all access to the member is atomic, expressing the atomicity without relying on method synchronization.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add javadoc to incrementNum...
null
apache__samza__1368
apache/samza
1,368
defect
160bbb22a9812a78054723279e87a8b618418775
0c712ae0122c4bfb12ba81adee3e0ed5e7adf386
SAMZA-2532: Refactor MetricsSnapshotReporter and MetricsSnapshotReporterFactory
Changes: The refactoring is done to make the reporter stable when exceptions are encountered. The patch also breaks down MetricsSnapshotReporterFactory#getMetricsReporter into smaller overridable pieces to make it more extendable/re-usable. Tests: Unit test API Changes: None Upgrade Instructions: None Usage I...
diff --git a/samza-core/src/main/scala/org/apache/samza/metrics/reporter/MetricsSnapshotReporter.scala b/samza-core/src/main/scala/org/apache/samza/metrics/reporter/MetricsSnapshotReporter.scala index f9cf819dc7..fed0716481 100644 --- a/samza-core/src/main/scala/org/apache/samza/metrics/reporter/MetricsSnapshotReporter...
6
4
1
[{"id": "G0", "claim": "The info log 'Blacklisted metric %s because it matched ...' should be logged once with all metrics or at debug level.", "category": "logging", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The identifier named pollingInterval is confusing versus repor...
null
apache__samza__1369
apache/samza
1,369
defect
160bbb22a9812a78054723279e87a8b618418775
c1674c88a5d11a88dcade41bc654d5e9c5d9d643
SAMZA-2533: Fix DiagnosticsUtil to use configured MetricsReporterFactory
DiagnosticsUtil#buildDiagnosticsManager currently hard codes the creation of MetricsSnapshotReporter. This patch fixes this and creates the MetricsReporter using the factory defined in configs. Edit (06/01): This patch also changes `DiagnosticsUtil#buildDiagnosticsManager` to use two separate producers for the Me...
diff --git a/samza-core/src/main/java/org/apache/samza/util/DiagnosticsUtil.java b/samza-core/src/main/java/org/apache/samza/util/DiagnosticsUtil.java index 7c83466775..ce8a86d97e 100644 --- a/samza-core/src/main/java/org/apache/samza/util/DiagnosticsUtil.java +++ b/samza-core/src/main/java/org/apache/samza/util/Diagno...
1
1
1
[{"id": "G0", "claim": "A test should be added covering the PR's change, such as in TestDiagnosticsManager.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__samza__1381
apache/samza
1,381
defect
47a6890cedb507b721fda369658feafbaa67e17d
8c890dc693ef582f6215958004873f2edf049e94
SAMZA-2547: Add missing "tableId" for SendToTableOperatorSpec in Samza job execution plan
#### Symptom There is `tableId` information for `StreamTableJoinOperatorSpec` in Samza job execution plan: ```json "samza-hello-fluent-api-remote-table-venice-i001-alazhang-join-1": { "opId": "samza-hello-fluent-api-remote-table-venice-i001-alazhang-join-1", "tableId": "table-id", "opCode": "JOIN", ...
diff --git a/samza-core/src/main/java/org/apache/samza/execution/JobGraphJsonGenerator.java b/samza-core/src/main/java/org/apache/samza/execution/JobGraphJsonGenerator.java index 4b111749dc..a6717fd6d2 100644 --- a/samza-core/src/main/java/org/apache/samza/execution/JobGraphJsonGenerator.java +++ b/samza-core/src/main/...
1
1
0
[{"id": "G0", "claim": "The hand-written dummy TestStreamTableJoinFunction inner class in the test should be replaced with a mock of StreamTableJoinFunction so the dummy code can be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__samza__1384
apache/samza
1,384
defect
322bfdd7cedcbaa6112d61623111ac2e7726f88f
1d85cbeb832ed5b3411599f52d505790aef5a76e
SAMZA-2549 - Samza-sql: Add query optimizations for remote table joins
**Feature:** Samza Sql currently does not have a query optimizer. As a result, we rely on users to write their queries in such a way that the sql execution is optimized which is often clumsy and non-intuitive. Adding Query optimization will make sql query more intuitive at the same time making the plan optimized. *...
diff --git a/samza-sql/src/main/java/org/apache/samza/sql/dsl/SamzaSqlDslConverter.java b/samza-sql/src/main/java/org/apache/samza/sql/dsl/SamzaSqlDslConverter.java index b09d3d6321..acc5b42321 100644 --- a/samza-sql/src/main/java/org/apache/samza/sql/dsl/SamzaSqlDslConverter.java +++ b/samza-sql/src/main/java/org/apac...
14
6
2
[{"id": "G0", "claim": "Setting EnumerableConvention.INSTANCE on the trait set to drive the transform is a trick that will lead to complex branches during the later conversion stage; the reviewer asks whether using Calcite Conventions, where rules and translation happen together, would not be the better way.", "categor...
null
apache__samza__1386
apache/samza
1,386
defect
a5f7a66cfde97ab0aa3bfcf662d827a4aeb324e1
d41bc558c61f35e91537ff6f4787d0574b1f29f9
[SAMZA-2557] Adding support for nested rows access via dot path.
This is an initial draft on how to support the nested row access in Samza SQL. There are multiple #interconnected items. 1. Added a the actual definition of a ROW Calcite Data Type [**EASY FINAL**]. 2. Added a Row Converter form Samza Type System to Calcite Type System [**Okay for now but will need more work fo...
diff --git a/samza-sql/src/main/java/org/apache/samza/sql/avro/AvroRelConverter.java b/samza-sql/src/main/java/org/apache/samza/sql/avro/AvroRelConverter.java index d70497e03a..a16594dffc 100644 --- a/samza-sql/src/main/java/org/apache/samza/sql/avro/AvroRelConverter.java +++ b/samza-sql/src/main/java/org/apache/samza/...
6
3
1
[{"id": "G0", "claim": "The FILTER_ON_JOIN optimization rule the PR adds to the planner does not work well with remote joins and should be removed in favor of the remote-join optimization from the reviewer's other PR.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
apache__samza__1394
apache/samza
1,394
defect
188b9bbb7bd87a4d5aebbb6e214935f7434c7495
8539d84943cda7421b868f0b370b0ea6fbae5534
SAMZA-2551: Upgrade all modules to automatically use checkstyle 6.11.2 (part 3: includes samza-kafka)
Issues: The samza-kafka module never had checkstyle enabled, so it was inconsistent with Samza checkstyle. Changes: Enable checkstyle for samza-kafka and make the code consistent with checkstyle. Tests: Ran compilation and unit tests. API/Upgrade/Usage changes: N/A Note for reviewers: There is no expected change ...
diff --git a/build.gradle b/build.gradle index dfbe2e630e..c3e85a410e 100644 --- a/build.gradle +++ b/build.gradle @@ -385,6 +385,7 @@ project(":samza-tools_$scalaSuffix") { project(":samza-kafka_$scalaSuffix") { apply plugin: 'scala' + apply plugin: 'checkstyle' // Force scala joint compilation sourceSe...
1
1
0
[{"id": "G0", "claim": "The comments the PR adds above the preventJavadocUnusedImports suppressions are unclear and do not explain why unused imports are allowed in API and descriptor javadocs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__samza__1401
apache/samza
1,401
defect
6a3c6e49eafb661f83a499fc8dac0e2377f38ca8
0cc1f26349ac643c0dcbf36f953b9c2896a710f2
SAMZA-2560: Generate SamzaSQLRelRecord using avro schema of input event instead of cached-schema.
*Symptom:* Input messages consumed by the Samza SQL queries were incorrectly serialized. *Cause:* Samza SQL engine uses `AvroRelConverter` to convert the input messages from Avro-type to `SamzaSqlRelRecord` before they're processed by the high-level operators in samza. Currently `AvroRelConverter` incorrectly conv...
diff --git a/samza-sql/src/main/java/org/apache/samza/sql/avro/AvroRelConverter.java b/samza-sql/src/main/java/org/apache/samza/sql/avro/AvroRelConverter.java index 9afad9c79c..b7cee000e7 100644 --- a/samza-sql/src/main/java/org/apache/samza/sql/avro/AvroRelConverter.java +++ b/samza-sql/src/main/java/org/apache/samza/...
2
2
0
[{"id": "G0", "claim": "Revert the change to the Validate.notEmpty validation messages in SqlIOConfig here and below, restoring the original 'System %s is not supported' wording.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a simple unit test, or a...
null
apache__samza__1404
apache/samza
1,404
defect
f5faae09fa45844ba55326a7f10a475d9e1ee8e3
4807acf6b01bedbfd2a6a7f4d13df76f2840ca59
SAMZA-2562: [Scala cleanup] Clean up Scala in samza-kv-inmemory and samza-kv-couchbase
Issues: 1) `samza-kv-couchbase` uses the Scala Gradle plugin but does not have Scala code 2) `samza-kv-inmemory` is in Scala, but we are no longer using Scala in Samza, so it would be good to move to Java. 3) `samza-kv-inmemory` is missing unit tests Changes: 1) Rewrite `samza-kv-inmemory`in Java (no functional ...
diff --git a/build.gradle b/build.gradle index 711aa202be..e30776a917 100644 --- a/build.gradle +++ b/build.gradle @@ -608,24 +608,15 @@ project(":samza-kv_$scalaSuffix") { } project(":samza-kv-inmemory_$scalaSuffix") { - apply plugin: 'scala' - - // Force scala joint compilation - sourceSets.main.scala.srcDir "...
4
3
0
[{"id": "G0", "claim": "The TODO comment in delete() about the double-counted delete metrics should link the Jira ticket.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TODO comment in snapshot() about the unmet immutability constraint should ...
null
apache__samza__1406
apache/samza
1,406
defect
f5faae09fa45844ba55326a7f10a475d9e1ee8e3
37d9fba55a6cc63e9191c931f33597ea41b8092a
SAMZA-2561: Add config map to DiagnosticsManager
Issues: Currently, the Diagnostics data emitted by the DiagnosticsManager does not include basic job level information. Changes: Added the config of the job to be emitted by the DiagnosticsManager and put inside the DiagnosticsStreamMessage. API Changes: With this change, the DiagnosticsStreamMessage class will emit ...
diff --git a/samza-core/src/main/java/org/apache/samza/util/DiagnosticsUtil.java b/samza-core/src/main/java/org/apache/samza/util/DiagnosticsUtil.java index 0b88fa044f..721155d324 100644 --- a/samza-core/src/main/java/org/apache/samza/util/DiagnosticsUtil.java +++ b/samza-core/src/main/java/org/apache/samza/util/Diagno...
10
9
3
[{"id": "G0", "claim": "The config should not be added to the MetricsHeader, since that would emit the entire config map (potentially tens of MB) in every message; remove it from the header, its accompanying constructors and the test changes, and emit it in the MetricsMessage exactly once at container start instead.", ...
null
apache__samza__1408
apache/samza
1,408
defect
3b7d0d19d1f65048f2ac2194226a83e6223bbd3b
984978ba9127dee4d5a1ccbbf12e269111253661
SAMZA-2574: improve flexibility of SystemFactory interface
improve SystemFactory interface by providing user-defined clientId prefix so that we can access more information of the clients created: with changes, user can add specific clientId prefix for clients to help monitor clients. API Changes: Added three default functions in SystemFactory. Since they are default functi...
diff --git a/samza-api/src/main/java/org/apache/samza/system/SystemFactory.java b/samza-api/src/main/java/org/apache/samza/system/SystemFactory.java index a1aae3711b..268b46d939 100644 --- a/samza-api/src/main/java/org/apache/samza/system/SystemFactory.java +++ b/samza-api/src/main/java/org/apache/samza/system/SystemFa...
1
1
0
[{"id": "G0", "claim": "Rename the new methods' callerClass parameter to consumerIdPrefix / producerIdPrefix / adminIdPrefix.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__samza__1411
apache/samza
1,411
defect
c8bf03d8804df45310783aa28919c20b54d0ca65
1dd9fbb3571d1e6fad66b665c6e6e53e37f9ac6f
SAMZA-2577 : Adding support for Async-Logger in Log4j2 Stream Appender
Problem: In both StreamAppender for log4j1 and log4j2 a blocking queue is used to coordinate between the append()-ing threads and a single thread send()-ing to Kafka. This is a bounded, blocking, lock-synchronized queue. To avoid deadlock scenarios (see SAMZA-1537), the append()-ing threads have a timeout of 2 seco...
diff --git a/samza-log4j2/src/main/java/org/apache/samza/logging/log4j2/StreamAppender.java b/samza-log4j2/src/main/java/org/apache/samza/logging/log4j2/StreamAppender.java index 9d3e4772ad..e15e801344 100644 --- a/samza-log4j2/src/main/java/org/apache/samza/logging/log4j2/StreamAppender.java +++ b/samza-log4j2/src/mai...
3
3
2
[{"id": "G0", "claim": "Now that keyBytes is cached at the instance level, the local keyBytes byte array in startTransferThread should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The log.warn in the queue-timeout drop path needs t...
null
apache__samza__1413
apache/samza
1,413
defect
5d98e256bc0c38c6a6fc3fc03cf0a882aad13d42
ba5c9261aa9d93e625304e2989f0aeec772460c7
SAMZA-2578: Excessive trimming during transactional state restore
**Symptom:** On transactional state restore, trimming may execute indefinitely. **Cause:** Newly trimmed messages of the changelog are passed back to the trim process (and are then re-trimmed) by the changelog ssp iterator. **Changes:** Introduce a bounded iterator which can be given an end offset to stop after...
diff --git a/samza-api/src/main/java/org/apache/samza/system/BoundedSSPIterator.java b/samza-api/src/main/java/org/apache/samza/system/BoundedSSPIterator.java new file mode 100644 index 0000000000..675b7fc873 --- /dev/null +++ b/samza-api/src/main/java/org/apache/samza/system/BoundedSSPIterator.java @@ -0,0 +1,84 @@ +/...
6
6
0
[{"id": "G0", "claim": "The field declarations of BoundedSSPIterator need layout cleanup: group the final fields together (nit), which in-thread became adding a blank line between the private final fields and the private peeks field.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "i...
null
apache__samza__1418
apache/samza
1,418
defect
216a87fe4c6fa8e0ed48ad7488e296a88d41376e
e72e2b58ac559814f3323bd01c45c06b9603f78a
SAMZA-2583: Fix NPE in update SamzaHistogram Gauge values
Symptopm: NullPointerException when creating SamzaHistogram Cause: SamzaHistogram gauges are instantiated via passed in metric registry newGauge api. The new Gauge api in turn tries to instantiate HistogramGauge. The newGauge api calls getValue on HistogramGauge which in turn tries to update the Histogram Gauge v...
diff --git a/samza-api/src/main/java/org/apache/samza/metrics/SamzaHistogram.java b/samza-api/src/main/java/org/apache/samza/metrics/SamzaHistogram.java index 38cf0fb005..021bb63014 100644 --- a/samza-api/src/main/java/org/apache/samza/metrics/SamzaHistogram.java +++ b/samza-api/src/main/java/org/apache/samza/metrics/S...
2
2
1
[{"id": "G0", "claim": "Add an inline comment explaining when gauges can be null so the null guard's condition is documented.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a unit test for the NPE issue so the null-gauge fix does not get refac...
null
apache__samza__1424
apache/samza
1,424
defect
f7f9f3c7905b047f262383bcc64ebb01ab73f421
3fc3b15c374249a1f2c501881a4f71da2e9c323e
SAMZA-2584: Refactor ClusterBasedJobCoordinator
Issues: In the deployment flow of a beam job, we will have a complicate flow: ClusterBasedJobCoordinator#main -> Beam main class -> JobCoordinatorLaunchUtil -> ClusterBasedJobCoordinator. Changes: 1. Move ClusterBasedJobCoordinator#main to ClusterBasedJobCoordinatorRunner#main 2. Update run-jc.sh to invoke Clust...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java b/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java index 68e2f7711e..6295ed6e9a 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.j...
2
2
1
[{"id": "G0", "claim": "The pull request is missing the change to run-jc.sh, which still launches the old ClusterBasedJobCoordinator entry point whose main method this refactor removed instead of the new ClusterBasedJobCoordinatorRunner.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "i...
null
apache__samza__1426
apache/samza
1,426
defect
6ff6f5588d9516d7f72ed0fc8d7862f7c92d06d9
9691cea65a3b561ada9ae0c5d54f6a2e35a644ac
SAMZA-2587: IntermediateMessageSerde exception handling
Symptom: The user provided serde failed to deserialize a message. Then, IntermediateMessageSerde tried to deserialize the message for the second time, which caused OOM and container died. Direct cause: The user provided serde would construct an array based on the encoded array size. Given wrong size, the serde cons...
diff --git a/samza-core/src/main/java/org/apache/samza/serializers/IntermediateMessageSerde.java b/samza-core/src/main/java/org/apache/samza/serializers/IntermediateMessageSerde.java index a8f9852d9f..f76bf3b4e4 100644 --- a/samza-core/src/main/java/org/apache/samza/serializers/IntermediateMessageSerde.java +++ b/samza...
6
5
1
[{"id": "G0", "claim": "Consider adding a little clarification about what versions older than 0.13.1 did to make those versions incompatible with this new code.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Maybe consider adding a comment to the ...
null
apache__samza__1428
apache/samza
1,428
defect
d689fd2568ea9dd457ed1c7c9cb193f4ae6fa631
6fd6dbff23322c707797aee8b575fddba1ae62d2
SAMZA-2589: Consolidate Beam and High/Low Samza Apps launch workflow
Issues: app.main.class is only set for Beam apps which causes different workflow on AM when launching a job. Changes: 1. Introduce DefaultApplicationMain to capture launch workflow for High/Low level jobs so on AM, all jobs are launched in the same way: ClusterBasedJobCoordinatorRunner#main -> app.main.class -> JobCo...
diff --git a/gradle/dependency-versions.gradle b/gradle/dependency-versions.gradle index 061f0b7f6e..28acb2a1b8 100644 --- a/gradle/dependency-versions.gradle +++ b/gradle/dependency-versions.gradle @@ -36,7 +36,7 @@ jerseyVersion = "2.22.1" jettyVersion = "9.4.20.v20190813" jodaTimeVersion = "2.2" - joptSimp...
1
1
0
[{"id": "G0", "claim": "getAppMainArgs() looks unused, and now that the main class is no longer optional it should probably be removed as well.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
apache__samza__1431
apache/samza
1,431
defect
764f09c6239cdec961fe4f52ae97b8f374db107d
39a94abd7e410eb6f026d2c49776359eb9e7ddbc
Adding internal table-api config for table-api rate limits
Issues: currently the table api read/write rate limit is not emitted by samza Changes: 1. Emit table API read/write rate limit in RemoteTableDescriptor. The names of the new metrics are: **tables.table-id.io.read.credits** and **tables.table-io.write.credits** Tests: 1. Unit Tests API Changes: None Upgra...
diff --git a/samza-api/src/main/java/org/apache/samza/table/descriptors/RemoteTableDescriptor.java b/samza-api/src/main/java/org/apache/samza/table/descriptors/RemoteTableDescriptor.java index 23234cdcdf..52f8ac4c8a 100644 --- a/samza-api/src/main/java/org/apache/samza/table/descriptors/RemoteTableDescriptor.java +++ b...
3
3
1
[{"id": "G0", "claim": "Undo the whitespace-only reflows of existing lines (e.g. re-splitting the Class.forName line and re-joining the withRateLimiter and asyncCallbackPoolSize lines), since they pollute git blame and make review harder.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope...
null
apache__samza__1439
apache/samza
1,439
defect
60fa35906d1b4534fd23d8c32b898ec61f0411d7
c5f3467073d8a96b402f1341c827acbaf9a14615
SAMZA-2600: Extract constants for string literals used in AM and container
**Issue:** AM and container share a few string literals but these are not constants and if the strings do not exactly match on both, no tests fails but the job certainly will. **Changes:** in the existing CoordinationConstants, new constants created for string literals: "containerHeartbeat", "executionContainerId", ...
diff --git a/samza-core/src/main/java/org/apache/samza/container/ContainerHeartbeatClient.java b/samza-core/src/main/java/org/apache/samza/container/ContainerHeartbeatClient.java index e6208ba07b..773e715e55 100644 --- a/samza-core/src/main/java/org/apache/samza/container/ContainerHeartbeatClient.java +++ b/samza-core/...
3
3
0
[{"id": "G0", "claim": "The endpoint construction should extract reusable format constants (e.g. servlet format, param format, endpoint format) instead of a bare \"%s%s?%s=%s\" format string, for reuse and readability.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
apache__samza__1442
apache/samza
1,442
defect
120f2fb5caf9f0606a7ee233e7445c4db469f413
8b3993662fefd3e958e0a0004af7d9f51778444e
SAMZA-2602: Dynamic heartbeat establish with new AM
**Feature:** Main feature is YARN AM high availability. The feature ensures that the new AM can establish connection with already running containers to avoid restarting all running containers when AM dies. This PR enables an already running container to establish heartbeat connection with the new AM and introduces a co...
diff --git a/samza-core/src/main/java/org/apache/samza/config/JobConfig.java b/samza-core/src/main/java/org/apache/samza/config/JobConfig.java index 0b274e9074..e447ddd4c3 100644 --- a/samza-core/src/main/java/org/apache/samza/config/JobConfig.java +++ b/samza-core/src/main/java/org/apache/samza/config/JobConfig.java @...
8
6
3
[{"id": "G0", "claim": "The configurable table in the docs should be updated for the newly added job.coordinator.high-availability.enabled configuration.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded retry count for reconnecting to ...
null
apache__samza__1445
apache/samza
1,445
defect
120f2fb5caf9f0606a7ee233e7445c4db469f413
1a58b6dee7969021c3b97659e65f58eac0f355eb
SAMZA-2604: Datamodel change to capture physical container id for AM HA
**Feature:** Main feature is Cluster based Job coordinator (aka AM) high availability (HA) (TODO: sep/doc how?). The feature ensures that the new AM can establish connection with already running containers to avoid restarting all running containers when AM dies. This PR enables capturing of the physical execution envir...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java b/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java index 63ee3c73f6..36aa7513a2 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.j...
2
1
0
[{"id": "G0", "claim": "The ExecutionContainerIdManager (and its NamespaceAwareCoordinatorStreamStore) should be created inside the ifPresent block so it is not created unless execEnvContainerId is available.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
apache__samza__1449
apache/samza
1,449
defect
c212cac420864d09f2663da2e51c23e4718d6812
83705050341d614de5835874a1ecba676d8c6a61
SAMZA-2609: Data model changes to track lifecycle information of job coordinator
**Description**: With AM HA, the new AM will regenerate job model, do job planning and rewrite configurations and may have to spin up containers. The new rewritten configurations, job model can change from the existing metadata on which the containers are running. In order to handle this change of metadata, we need a...
diff --git a/samza-api/src/main/java/org/apache/samza/job/JobCoordinatorMetadata.java b/samza-api/src/main/java/org/apache/samza/job/JobCoordinatorMetadata.java new file mode 100644 index 0000000000..8328db49ac --- /dev/null +++ b/samza-api/src/main/java/org/apache/samza/job/JobCoordinatorMetadata.java @@ -0,0 +1,107 @...
10
9
2
[{"id": "G0", "claim": "The class javadoc should read \"deployment and attempt are defined\" instead of \"deployment and attempt as defined\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The generateJobCoordinatorMetadata javadoc should also in...
null
apache__samza__1483
apache/samza
1,483
defect
a2827db501afc98d420ada50cf7a914436b8dd66
3f85fe455d5fd299b4a29e5de6bdc58f0e55b344
SAMZA-2641: Do not silently fail when InputOperator is not found in OperatorGraph for a SystemStream
**Symptom**: Samza job fails with a TaskCallbackTimeoutException if InputOperator is not found in OperatorGraph for a SystemStream **Cause:** Currently, the pipeline silently fails when there is no InputOperator for a SystemStream in the OperatorGraph as the code doesn't handle such cases. The pipeline just sil...
diff --git a/samza-core/src/main/java/org/apache/samza/task/StreamOperatorTask.java b/samza-core/src/main/java/org/apache/samza/task/StreamOperatorTask.java index 5a474cd4af..3ed9f47d1e 100644 --- a/samza-core/src/main/java/org/apache/samza/task/StreamOperatorTask.java +++ b/samza-core/src/main/java/org/apache/samza/ta...
5
5
0
[{"id": "G0", "claim": "The test file mixes static star imports; the team settled on no star imports, so the pull request should add explicit imports and also clean up the existing mockito star imports in the file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
apache__samza__1484
apache/samza
1,484
defect
da8d1582cc4cff22c23d80dc117ea4f076ca3827
74a520a9c50070eccc729737870b5dd0b965b646
SAMZA-2633: Rolling upgrades cause downtime to upgraded processors for the entire deployment window
**Description**: During rolling upgrades, the current debounce timer gets extended every time when there is a quorum change notification. As a result, processors that were upgraded earlier in the deployment window remain unavailable waiting for work assignment. In some scenarios, this cause processors to be unavailable...
diff --git a/samza-core/src/main/java/org/apache/samza/zk/ZkJobCoordinator.java b/samza-core/src/main/java/org/apache/samza/zk/ZkJobCoordinator.java index 102f357e25..4c49d9af76 100644 --- a/samza-core/src/main/java/org/apache/samza/zk/ZkJobCoordinator.java +++ b/samza-core/src/main/java/org/apache/samza/zk/ZkJobCoordi...
5
5
2
[{"id": "G0", "claim": "The javadoc should read 'unless in the event of concurrent rebalance' instead of 'unless the event of concurrent rebalance'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The leader's skip-rebalance check compares whole Jo...
null
apache__samza__1496
apache/samza
1,496
defect
86932b9c36a7e69cd0189e522835bb2af6bab634
c0f3c219f58636fdde7a2aea3e1e528212bc883d
SAMZA-2650: [Scala cleanup] Convert ShellCommandBuilder from scala to java
Issues: For Samza on Kubernetes, we might need to update/extend this class, so converting to Java in order to reduce the Scala touchpoints. Changes: 1. Converted `ShellCommandBuilder` to Java 2. Updated unit tests for `ShellCommandBuilder` to add some more code coverage Tests: Rewrote unit tests first, then ch...
diff --git a/samza-core/src/main/java/org/apache/samza/job/ShellCommandBuilder.java b/samza-core/src/main/java/org/apache/samza/job/ShellCommandBuilder.java new file mode 100644 index 0000000000..02b0fc86cd --- /dev/null +++ b/samza-core/src/main/java/org/apache/samza/job/ShellCommandBuilder.java @@ -0,0 +1,51 @@ +/* +...
1
1
0
[{"id": "G0", "claim": "Use `StringUtils#isBlank` for the command path check instead of the manual null/isEmpty test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__samza__1500
apache/samza
1,500
defect
2563caafcb53c913c6f40342219480e7ef56aa34
b13be4042c4e0bfeb83793d160916b44a2fdbfc3
[SAMZA-2655] Expose RocksDB maxOpenFiles setting as Samza parameter
This PR contains changes to expose maxOpenFiles & maxFileOpeningThreads as Samza job parameters. Changes build & pass tests ``` $ ./gradlew clean build ... > Task :samza-yarn_2.11:compileTestScala Pruning sources from previous analysis, due to incompatible CompileSetup. Note: Some input files use or override...
diff --git a/docs/learn/documentation/versioned/jobs/configuration-table.html b/docs/learn/documentation/versioned/jobs/configuration-table.html index b588e641fc..21e852cbe6 100644 --- a/docs/learn/documentation/versioned/jobs/configuration-table.html +++ b/docs/learn/documentation/versioned/jobs/configuration-table.ht...
2
2
1
[{"id": "G0", "claim": "The new documentation for both new configs should say \"files\" (and \"threads used to open RocksDB files\") rather than \"LOG files\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The second added line wrongly calls opti...
null
apache__samza__1503
apache/samza
1,503
defect
7cc4eaa96fff244f6dce9c18af804917db7c3b2b
7c0044c3bf44866aae4ee32b0fe20c5128841ad5
Fix StorageConfig bug from newly introduced BlobStoreRestore factory config
Description: Newly introduced config `store.restore.factory` falls in the same pattern as StorageEngine config defined by `store.<store_name>.factory`. This fix ignores `store.restore.factory` from `getStorageFactoryClassName` for now. A follow up TODO is added to change this later when restore factory is changed to r...
diff --git a/samza-core/src/main/java/org/apache/samza/config/StorageConfig.java b/samza-core/src/main/java/org/apache/samza/config/StorageConfig.java index aa8df958fb..9a5424d6a9 100644 --- a/samza-core/src/main/java/org/apache/samza/config/StorageConfig.java +++ b/samza-core/src/main/java/org/apache/samza/config/Stor...
1
1
1
[{"id": "G0", "claim": "The change in getStorageFactoryClassName will not fix the bug; getStoreNames would likely have to be changed so it does not return the store restore/backend factory config as a store name.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__samza__1507
apache/samza
1,507
defect
1f0f8bdb669894fc7b9c5947d2a8fc9e45d66014
2b20001a6574cb352c79dff575b69131dfcf197a
SAMZA-2660: Add authentication via TokenCredential for AzureBlobSystemProducer
Feature: Providing an alternate form of authenticating with Azure Storage to set up the connection. Existing form of authentication is via account name and account key for the Azure Storage. Note that this impacts only the authentication and not the actual blob creation which happens later in the lifecycle of the syste...
diff --git a/build.gradle b/build.gradle index 3ab84787cc..f7c085bb7b 100644 --- a/build.gradle +++ b/build.gradle @@ -214,6 +214,7 @@ project(":samza-azure_$scalaSuffix") { dependencies { compile "com.azure:azure-storage-blob:12.0.1" + compile "com.azure:azure-identity:1.0.0" compile "com.microsoft.a...
1
1
0
[{"id": "G0", "claim": "The methods of AzureBlobClientBuilder need javadoc documenting the hierarchy of credentials used to create the client and the behavior, especially in methods where the behavior forks.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__samza__1511
apache/samza
1,511
defect
4c11067b0e2d7c6cb1f9c472c0843eea861a632e
010bc4eb090d5f7786ce9c85d700bef747c26a9c
Samza-2665: AzureBlob SystemProducer: stop block upload retrying when InterruptedException is thrown
Symptom: interrupted thread stays stuck for a long time. Cause: retry several times for all exceptions during block upload. Changes: for interrupted exception, stop retry and throw exception that will be bubbled up. Tests: added unit test API changes: None Usage/upgrade instructions: N/A Backwards compatible: y...
diff --git a/samza-azure/src/main/java/org/apache/samza/system/azureblob/avro/AzureBlobOutputStream.java b/samza-azure/src/main/java/org/apache/samza/system/azureblob/avro/AzureBlobOutputStream.java index e615808193..3c925e2524 100644 --- a/samza-azure/src/main/java/org/apache/samza/system/azureblob/avro/AzureBlobOutpu...
2
1
0
[{"id": "G0", "claim": "The new error message in the InterruptedException catch block should be built with String.format instead of string concatenation.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why an interrupted thread ...
null
apache__samza__1519
apache/samza
1,519
defect
4824bfe32711a9f9e755c3b3aa8bd8877e9023d6
08dee21622757b73d6f1456cc5db274b76fccef4
SAMZA-2670: Update granularity of JobCoordinatorMetadataManager.checkForMetadataChanges and epoch id extraction
Issues: 1. With some new coordination changes coming in a future PR, the current granularity of checkMetadataChanges is insufficient. The new logic needs to know what kind of metadata changes occurred, not just if there was a change or not. 2. Epoch id fetching is currently YARN-specific. This will not work for non-Y...
diff --git a/docs/learn/documentation/versioned/container/metrics-table.html b/docs/learn/documentation/versioned/container/metrics-table.html index 3bab5be6bc..b7cd752b4c 100644 --- a/docs/learn/documentation/versioned/container/metrics-table.html +++ b/docs/learn/documentation/versioned/container/metrics-table.html @...
4
3
1
[{"id": "G0", "claim": "generateJobCoordinatorMetadata should keep taking config as an explicit parameter instead of reading it from jobModel, because JobModel does not always have config populated (e.g. standalone).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
apache__samza__1520
apache/samza
1,520
defect
39e5806c7b876b60e41d86f6ef51c6a28482c229
26edb28a0feef6ff88787e99bcbed081824e4f4d
SAMZA-2672: Extract creation of stream monitors into separate classes for reuse
Issues: Construction of stream monitors (`StreamPartitionCountMonitor`, `StreamRegexMonitor`) is directly implemented in the job coordinators. Therefore, it is hard to reuse the code across multiple places. Changes: 1. Extract construction logic into factory classes for `StreamPartitionCountMonitor` and `StreamRege...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java b/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java index e956413884..0c2dc5c588 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.j...
6
3
0
[{"id": "G0", "claim": "Rename the generic `build` methods to `buildInputStreamRegexMonitor()` / `buildInputStreamPartitionCountMonitor()`, since the factory name alone is generic enough to allow building monitors for output streams in the future.", "category": "maintainability", "verdict": "supported", "priority": "P2...
null
apache__samza__1532
apache/samza
1,532
defect
c4d059a4db6cae86af046b8a28c33c0316a59e69
c896e866d2a814e830767a8050cb13981c8156be
SAMZA-2693: Make Samza log4j appenders agnostic of where they are running
Issues: `StreamAppender` is coupled with Samza being run in YARN: 1. `StreamAppender` specifically checks for `isApplicationMaster`, which is a YARN-only term, and it has different initialization logic if it is or isn't in the application master. 2. `StreamAppender` is coupled with `JobModelManager`, which is only u...
diff --git a/build.gradle b/build.gradle index ab91933a3a..0166d8bdb4 100644 --- a/build.gradle +++ b/build.gradle @@ -448,6 +448,7 @@ project(":samza-log4j2_$scalaSuffix") { compile project(":samza-core_$scalaSuffix") compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion" testCompile "jun...
9
5
3
[{"id": "G0", "claim": "Making LoggingContextHolder a required constructor parameter of the log4j2 StreamAppender is a breaking change for extending classes; add a second (backwards-compatible) constructor for testing instead of forcing all extenders to update, questioning why log4j2 needs the parameter when log4j uses...
null
apache__samza__1533
apache/samza
1,533
defect
c4d059a4db6cae86af046b8a28c33c0316a59e69
5c1e7e7fe7f9dcca68c8f2bc03f81b92ea5386b8
Fix container physical memory monitoring to fetch all children process RSS memory with 1 process
Symptom: CI is broken by https://github.com/apache/samza/pull/1530 Changes: Fix by changing fetching children process RSS memory in 1 process instead of multiple processes. Otherwise, when there are a lot of children processes, it will take too long to spin up all the processes to fetch RSS memory for each child pro...
diff --git a/samza-core/src/main/java/org/apache/samza/container/host/PosixCommandBasedStatisticsGetter.java b/samza-core/src/main/java/org/apache/samza/container/host/PosixCommandBasedStatisticsGetter.java index 8fdff3b0a8..50cd72a44a 100644 --- a/samza-core/src/main/java/org/apache/samza/container/host/PosixCommandBa...
2
2
0
[{"id": "G0", "claim": "Add a log.info line in getAllCommandOutput that logs the commands being executed (cmdArray).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Rename getTotalPhysicalMemory to getTotalPhysicalMemoryUsageBytes so the purpos...
null
apache__samza__1553
apache/samza
1,553
defect
3054a86ecca7fd1909fd230042c698507e4eba05
c8016dfaed8cd21012de8bec486cf9b3acedca45
SAMZA-2704: Wire in diagnostics reporter for Kubernetes job coordinator
Issues: `StaticResourceJobCoordinator` does not emit diagnostics information. Changes: 1. Construct and start `DiagnosticsManager` in `StaticResourceJobCoordinator`. 2. Minor improvement to `DiagnosticsManager.stop` to ensure it always shuts down all components. Tests: `./gradlew build` API changes: N/A The...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/JobCoordinatorLaunchUtil.java b/samza-core/src/main/java/org/apache/samza/clustermanager/JobCoordinatorLaunchUtil.java index 053b913e9a..837f2c6e64 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/JobCoordinatorLaunchUtil.java ++...
3
3
0
[{"id": "G0", "claim": "The diagnostics manager should be started alongside coordinatorCommunication.start() in the start() lifecycle, not inside setUpDiagnostics during setup, for readability and symmetry with the quietlyStop handling in stop().", "category": "design", "verdict": "supported", "priority": "P2", "scope"...
null
apache__samza__1566
apache/samza
1,566
defect
b01b05184f6dd28779f537b62991dc920a94b6c8
6567a2e05f7833dd54a57dfcc4d320aa8812c39d
SAMZA-2075: Add execEnvContainerId and execEnvAttemptId for diagnostics for Kubernetes job coordinator
Issues: In YARN today, a deployment attempt id which is shared between containers for a single Samza job can be extracted from the exec-env-container-id in the diagnostics information emitted by a job. However, in other execution environments (e.g. Kubernetes), there may not be an exec-env-container-id that can be pars...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/ContainerProcessManager.java b/samza-core/src/main/java/org/apache/samza/clustermanager/ContainerProcessManager.java index 4ef9c68ea3..254e16ec00 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/ContainerProcessManager.java +++ b...
1
1
0
[{"id": "G0", "claim": "The constant, field, getter and header key \"exec-env-attempt-id\" added by this PR should be renamed, e.g. exec-env-job-attempt-id, job-attempt-id or samzaEpochId to match the ENV variable's name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__samza__1571
apache/samza
1,571
defect
05d5916f6b8e900fba09c2183663cd14ebeaf654
2fadabff3b23b9c570d7141f2bf6389c6e902b2f
Fix rollback stale checkpoints
Symptom: Checkpoint v2 preference could cause stale checkpoints to get picked up when newer v1 checkpoints are available Cause: Kafka checkpoint manager selects the checkpoints based on the `task.checkpoint.read.versions` priority list. This does not account for the fact that the prioritized checkpoint may be stale ...
diff --git a/samza-core/src/main/java/org/apache/samza/config/TaskConfig.java b/samza-core/src/main/java/org/apache/samza/config/TaskConfig.java index 06a8727480..a2b96ebdfd 100644 --- a/samza-core/src/main/java/org/apache/samza/config/TaskConfig.java +++ b/samza-core/src/main/java/org/apache/samza/config/TaskConfig.ja...
1
1
0
[{"id": "G0", "claim": "The variable 'LiveCheckpointMaxAgeMillis' should be renamed to start with a lowercase l ('liveCheckpointMaxAgeMillis').", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
apache__samza__1580
apache/samza
1,580
defect
4584d5d8aadf12d2f2c80d5c73cc97fde7910cc8
dbfc3e704a04e2cc1c565167128b9c6edc740991
SAMZA-2689 [Elasticity] generate JobModel and update RunLoop with (elastic) tasks processing keyBuckets of SystemStreamPartition
**Feature:** Elasticity (SAMZA-2687) for a Samza job allows job to have more tasks than the number of input SystemStreamPartition(SSP). Thus, a job can scale up beyond its input partition count without needing the repartition the input stream. This is achieved by having elastic tasks which is the same as a task for al...
diff --git a/samza-api/src/main/java/org/apache/samza/system/IncomingMessageEnvelope.java b/samza-api/src/main/java/org/apache/samza/system/IncomingMessageEnvelope.java index 73922536fa..d13d78395a 100644 --- a/samza-api/src/main/java/org/apache/samza/system/IncomingMessageEnvelope.java +++ b/samza-api/src/main/java/or...
14
12
1
[{"id": "G0", "claim": "The key-bucket computation should take Math.abs of the hashCode before the modulo (Math.abs(envelopeKeyorOffset.hashCode()) % elasticityFactor) because, the reviewer believes, a negative hashCode could otherwise produce a wrong bucket.", "category": "correctness", "verdict": "supported", "priori...
null
apache__samza__1581
apache/samza
1,581
defect
c5831bfc01b2e70ba57c4bd3505c6a84a73c8a7b
71d518fcd58e21530ad9ac1ca52f8ee5a9d1d955
Upgrade to Kafka 2.4 and fix flaky tests
1. Upgrade Kafka version in dependency-versions.gradle 2. Issue: StreamApplicationIntegrationTestHarness is flaky because in the test there is a Kafka consumer subscribes to input topic and consumes from it then, the same consumer subscribes to the changelog topic. During this change, Kafka needs to revoke...
diff --git a/gradle/dependency-versions.gradle b/gradle/dependency-versions.gradle index ff99eb6346..7d2b019f03 100644 --- a/gradle/dependency-versions.gradle +++ b/gradle/dependency-versions.gradle @@ -36,7 +36,7 @@ jodaTimeVersion = "2.10.10" joptSimpleVersion = "5.0.4" junitVersion = "4.12" - kafkaVersion ...
1
1
1
[{"id": "G0", "claim": "The harness's new per-topic Kafka consumers bypass the base-class consumer lifecycle: the reviewer asks that they follow it by having the consumer construction in setUp() instead of in consume() and each consumer stopped (currently missing), and asks whether the inherited `consumer` member shoul...
null
apache__samza__1582
apache/samza
1,582
defect
43ff95f58f193766b8adb6b85e1d45b078c43721
20e118e6b57ed39fbb47e0ea64b543d49be57029
Fix - filter only configured stores in backup/restore init
Problems addressed: 1. During init, SnapshotIndex blobs of stores that were previously configured and has blob ID in the checkpoint topic are being downloaded and deserialized. This may create problems if the blob is missing in the blob store or if the blob is incorrectly serialized. This causes the container to fai...
diff --git a/samza-core/src/main/java/org/apache/samza/serializers/model/SamzaObjectMapper.java b/samza-core/src/main/java/org/apache/samza/serializers/model/SamzaObjectMapper.java index 7888f1fbef..bdd869bb89 100644 --- a/samza-core/src/main/java/org/apache/samza/serializers/model/SamzaObjectMapper.java +++ b/samza-co...
1
1
0
[{"id": "G0", "claim": "Fix the checkstyle problems in the pull request's code before merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__samza__1583
apache/samza
1,583
defect
2e7c2fe6c095d05b1b75fc0c2768ad0e9a81a085
ad596c87c1c8c07ca58b29e29974227b29444a29
SAMZA-2721: Container should exit with non-zero status code in case of errors during launch
**Problem**: ContainerLaunchUtil during its launch sequence swallows exception and proceeds to shutdown with 0 status code. This causes AM to not restart the container. **Description**: With the run method, as part of launch sequence we have various initialization steps before kicking off the container. In case of...
diff --git a/samza-core/src/main/java/org/apache/samza/runtime/ContainerLaunchUtil.java b/samza-core/src/main/java/org/apache/samza/runtime/ContainerLaunchUtil.java index 7314a8625d..42d3c91319 100644 --- a/samza-core/src/main/java/org/apache/samza/runtime/ContainerLaunchUtil.java +++ b/samza-core/src/main/java/org/apa...
3
2
2
[{"id": "G0", "claim": "The combined catch-block log.error uses {} placeholders for the throwables, which likely does not print their full stack traces, so the two exceptions should be logged in separate statements instead (possibly with a null check on containerRunnerException).", "category": "correctness", "verdict":...
null
apache__samza__1585
apache/samza
1,585
defect
bee7f257f1fa2c25bebd47b1e65dbe6a2bcdc882
8a6a0af58d4ce345a8c7589439748ef7c5872cd5
SAMZA-2719: [Elasticity] fix container level metrics when elasticity is enabled
Symptom: Certain container level metrics have incorrect values when elasticity is enabled. Metrics affected: chose-object, process-calls, messages-chosen. Cause: With elasticity enabled, a container may process only some of the messages of an SSP and not all of the messages in the SSP. the messages processed belong ...
diff --git a/samza-core/src/main/java/org/apache/samza/container/RunLoop.java b/samza-core/src/main/java/org/apache/samza/container/RunLoop.java index 9b0912fd23..c4d257845f 100644 --- a/samza-core/src/main/java/org/apache/samza/container/RunLoop.java +++ b/samza-core/src/main/java/org/apache/samza/container/RunLoop.ja...
6
6
1
[{"id": "G0", "claim": "The code comment above the runTasks keyBucket branch should be rewritten to explain that the condition happens when only a subset of an SSP's keyBuckets is consumed here and the envelope's processing is therefore skipped and its metric decremented.", "category": "documentation", "verdict": "supp...
null
apache__samza__1588
apache/samza
1,588
defect
06ef532b7d0f6492deaceec573e9f7060d2d9b64
7bf33fcb425cb0622029f721e1d7933e045044ee
SAMZA-2720: Allow custom task executor to be injected and used.
Feature: [SAMZA-2720](https://issues.apache.org/jira/browse/SAMZA-2720) Changes: Allow custom task executor to be injected and used. 
Tests: Added unit testing and verified working on local deployment. API Changes: This backwards compatible change introduces a way to inject custom task executor. The default ...
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 83639a321c..44e7c4d1d7 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,4 +1,3 @@ -#Mon Jun 01 15:50:38 PDT 2020 distributionBase=GRADLE_USER_HOME distributi...
3
3
0
[{"id": "G0", "claim": "The config names and variable names should use \"factory\" instead of \"type\" (s/type/factory in the config names and variable names).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The null check on the task executor fa...
null
apache__samza__1598
apache/samza
1,598
defect
400d1972ca8da08ad0e24d6158048102f1fb3061
2cda1742469b5dcb0a3a623544875d59cf6661e1
SAMZA-2733: [Elasticity] Compute last processed offsets when container starts up using checkpoints from previous deploys when elasticity was enabled
Feature: Elasticity (SAMZA-2687) for a Samza job allows job to have more tasks than the number of input SystemStreamPartition(SSP). Thus, a job can scale up beyond its input partition count without needing the repartition the input stream. This current PR is to compute the last processed offsets when container starts ...
diff --git a/samza-core/src/main/java/org/apache/samza/config/JobConfig.java b/samza-core/src/main/java/org/apache/samza/config/JobConfig.java index 6384747153..b637325a64 100644 --- a/samza-core/src/main/java/org/apache/samza/config/JobConfig.java +++ b/samza-core/src/main/java/org/apache/samza/config/JobConfig.java @...
12
7
0
[{"id": "G0", "claim": "The task-name regex Patterns should be compiled once as final static class members instead of per call, to improve performance.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using the max (instead of the min) offset when com...
null
apache__samza__1603
apache/samza
1,603
defect
c4d42a4d29a71f08e75907c77c8fdc433e0a620a
e52b6502c5ff5ca899b0265e6416b64473cc4a3e
SAMZA-2739: Improve SystemStreamPartition key deserializer to not be rigid about ssp having only 3 fields
**Improvement**: Improve the deserialization logic used for SSP key. Existing logic expects two ‘.’ & 3 [fields/parts in](http://fields.in/) the serialized format of SSP. The logic looks for index of ‘.’ and uses substring to fetch the fields of SSP. this prevents the addition of a 4th field (KeyBucket introduced in ht...
diff --git a/samza-core/src/main/java/org/apache/samza/serializers/model/SamzaObjectMapper.java b/samza-core/src/main/java/org/apache/samza/serializers/model/SamzaObjectMapper.java index bcc3ae48ef..e04edeef50 100644 --- a/samza-core/src/main/java/org/apache/samza/serializers/model/SamzaObjectMapper.java +++ b/samza-co...
1
1
1
[{"id": "G0", "claim": "Add a test (or at least manual verification) that the new SamzaObjectMapper can deserialize SSP-key data serialized by the old mapper, and that the old mapper can handle data serialized by the new mapper.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__samza__1604
apache/samza
1,604
defect
c4d42a4d29a71f08e75907c77c8fdc433e0a620a
16808fa38d04f9ee936c716e59879c2ff0306b7d
SAMZA-2740: Provide a way to specify a static file name for container metadata file
Issue: For environments in which apps run in isolated containers (e.g. Kubernetes), there is no need to have unique file names for container metadata files. It is much easier to find these files when they have static names instead of depending on the exec-env-container-id. A concrete Kubernetes use case for this is to ...
diff --git a/samza-core/src/main/java/org/apache/samza/config/JobConfig.java b/samza-core/src/main/java/org/apache/samza/config/JobConfig.java index e3658ce03a..d252955391 100644 --- a/samza-core/src/main/java/org/apache/samza/config/JobConfig.java +++ b/samza-core/src/main/java/org/apache/samza/config/JobConfig.java @...
1
1
0
[{"id": "G0", "claim": "It would be useful to add a LOG.info line logging the metadata directory and file name that getMetadataFile chooses.", "category": "observability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__samza__1605
apache/samza
1,605
defect
20e6529b8df1a8089cd92bd5463c4dbb893a73ed
7583a1943a546b2d440cf83511d3d7c438b07b4b
SAMZA-2742: [Pipeline Drain] Add Drain components and integrate them with SamzaContainer and JC
**Feature:** [Pipeline Drain] SAMZA-2741 aims to support the ability to drain pipelines to allow incompatible intermediate schema changes. This PR is a part of the Pipeline Drain work and aims to add some pipeline Drain components- DrainManager, DrainMonitor and DrainNotification and integrate them with Samza Contai...
diff --git a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java b/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java index 286a040877..d5ecbcbdc8 100644 --- a/samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.j...
7
6
2
[{"id": "G0", "claim": "DrainManager as added will be hard to use in external controllers; provide a util class with a main() that can be invoked from a script (like checkpoint-tool.sh) to write Drain messages.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
apache__samza__1615
apache/samza
1,615
defect
493de64bb8c0228bbda11822ae3c84c2085263bf
3548463ed3a296dfea49945d350b9c7c7fb10a5e
SAMZA-2749: Startpoint bug fix
**Symptom**: Using startpoints to trigger full bootstrapping is not reliable in the current implementation, we observed that the bootstrapping only happened on the part of expected partitions. **Cause**: Within Samza (the main class to pay attention to is OffsetManager.scala), there is a bug in which a startpoin...
diff --git a/samza-core/src/main/java/org/apache/samza/startpoint/StartpointManager.java b/samza-core/src/main/java/org/apache/samza/startpoint/StartpointManager.java index 083b483d6b..40278210da 100644 --- a/samza-core/src/main/java/org/apache/samza/startpoint/StartpointManager.java +++ b/samza-core/src/main/java/org/...
3
2
0
[{"id": "G0", "claim": "Log the error when the fanOutStore write fails with IOException in removeFanOutForTaskSSPs (and likewise for the IOException from reading the fanout in the same method) instead of only rethrowing it as a SamzaException.", "category": "observability", "verdict": "supported", "priority": "P2", "sc...
null
apache__samza__1636
apache/samza
1,636
defect
c1bc4426ba426f2f16aa2831140fd32d38211994
44211cbfc28fc199419c26f824c69418786281d5
SAMZA-2762: new cpu usage metric which counts child processes usage
# Symptom We have observed that some use cases used quasar(TensorFlow framework) to do model inference and this framework spawn child processes(non-JVM) to run TensorFlow serving. These child processes were using high CPU usage(200%) however their CPU usage can't be captured by the existing CPU usage metric `process...
diff --git a/build.gradle b/build.gradle index 39687057ff..1b6fcaddd1 100644 --- a/build.gradle +++ b/build.gradle @@ -192,6 +192,9 @@ project(":samza-core_$scalaSuffix") { compile "org.scala-lang:scala-library:$scalaVersion" compile "org.slf4j:slf4j-api:$slf4jVersion" compile "net.jodah:failsafe:$failsa...
13
8
1
[{"id": "G0", "claim": "The extra blank line after the DefaultSystemStatisticsGetter class declaration should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "getProcessCpuLoadBetweenTicks(previousProcessSnapshots.get(...)) may be call...
null
apache__samza__1637
apache/samza
1,637
defect
c1bc4426ba426f2f16aa2831140fd32d38211994
858de69c4ecfbd22701d42ce4cee3b903bc17d9f
SAMZA-2765: [Pipeline Drain] Adding config for task callback timeout during drain
# Improvement: This PR is a part of the Pipeline Drain work and aims to provide a way to specify a task callback timeout to be used for pipeline drain. The standard `task.callback.timeout.ms` parameter might be too small for the drain operation to complete. Drain operation will involve clearing of intermediate state...
diff --git a/samza-core/src/main/java/org/apache/samza/config/TaskConfig.java b/samza-core/src/main/java/org/apache/samza/config/TaskConfig.java index a2b96ebdfd..b5eb52b451 100644 --- a/samza-core/src/main/java/org/apache/samza/config/TaskConfig.java +++ b/samza-core/src/main/java/org/apache/samza/config/TaskConfig.ja...
3
3
2
[{"id": "G0", "claim": "The 30-minute default drain callback timeout seems too high for applications to get notified in case of faults; the reviewer asks for the rationale behind such a high value, whether there is a systematic way to compute it, and that the downstream dependencies and SLAs be documented as part of th...
null
apache__samza__1639
apache/samza
1,639
defect
c1bc4426ba426f2f16aa2831140fd32d38211994
3d6aa802bb74e52933f33b4310f1c74fff43d9b2
SAMZA-2741: [Pipeline Drain] Fix processing of Drain messages for High-Level and Low-level API
# Symptoms and Cause: There were a few issues with the processing of drain messages that this PR attempts to fix. The following issues were encountered during the end-to-end testing with test pipelines. 1. It was observed that the `RunLoop` was running into an exception when a task was trying to consume from interm...
diff --git a/samza-core/src/main/java/org/apache/samza/container/RunLoop.java b/samza-core/src/main/java/org/apache/samza/container/RunLoop.java index 3334adc744..3cbd14f031 100644 --- a/samza-core/src/main/java/org/apache/samza/container/RunLoop.java +++ b/samza-core/src/main/java/org/apache/samza/container/RunLoop.ja...
3
3
1
[{"id": "G0", "claim": "It is not safe to use the presence of intermediate streams to decide whether the job is high-level or low-level API, and since drain is presumably only supported on high-level APIs, the !hasIntermediateStreams check gating the low-level drain flow can be deleted.", "category": "correctness", "ve...
null
apache__samza__1640
apache/samza
1,640
defect
dd8ecf185152ec7ff0739a10c700dca6802f8a37
ccc5faebd3583cec354e04cfd7b67f923e7cdd03
SAMZA-2741: [Pipeline Drain] Fix ApplicationUtil.isHighLevelApiJob to work for anonymous and lambda `SamzaApplication` classes
# Summary `ApplicationUtil.isHighLevelApiJob` doesn't work for cases where `SamzaApplication` were created as an anonymous class or lambda # Cause Anonymous class names and lambdas classes cannot be created using `Class forName()`. As a result, the current logic currently assumes that the class name was incorrect....
diff --git a/samza-core/src/main/java/org/apache/samza/application/ApplicationUtil.java b/samza-core/src/main/java/org/apache/samza/application/ApplicationUtil.java index cf52a25687..cc733bdc6b 100644 --- a/samza-core/src/main/java/org/apache/samza/application/ApplicationUtil.java +++ b/samza-core/src/main/java/org/apa...
2
2
1
[{"id": "G0", "claim": "The log message 'Got isHighLevelApiJob flag: {}.' exposes the field/accessor name and should be replaced with something meaningful.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The ApplicationApiType enum should be intr...
null
apache__samza__1641
apache/samza
1,641
defect
dd8ecf185152ec7ff0739a10c700dca6802f8a37
5d28111bf615316a166d770be5a065def0bae38d
LISAMZA-27395 removing the current recursive call prevention logic
Issue: We observed logging data loss happens in StreamAppender The RC is the current implementation of the “[append()](https://github.com/apache/samza/blob/master/samza-log4j/src/main/java/org/apache/samza/logging/log4j/StreamAppender.java#L146)” method uses one AtomicBoolean variable to detect if the thread is call...
diff --git a/samza-log4j2/src/main/java/org/apache/samza/logging/log4j2/StreamAppender.java b/samza-log4j2/src/main/java/org/apache/samza/logging/log4j2/StreamAppender.java index c369282b8c..42c62ca5bf 100644 --- a/samza-log4j2/src/main/java/org/apache/samza/logging/log4j2/StreamAppender.java +++ b/samza-log4j2/src/mai...
2
1
1
[{"id": "G0", "claim": "If the recursive-calls metric removed by this pull request is published in any Samza documentation, remove it from there as well.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a unit test to this patch for validating the...
null
apache__samza__1650
apache/samza
1,650
defect
d102d208e3bc356fbdd6027643661e7768ab2ed3
617dd934624b275e809d47a8efdd0be4b30c7529
Make blob store related retry tunables configurable
What: - Moved tunables related to blob store retry logic behind configuration. - Tunables and their new configuration are: - Max retries -> "blob.store.retry.policy.max.retries" - Max retry duration -> "blob.store.retry.policy.max.retries.duration.ms" - Backoff delay -> "blob.store.retry.policy.backo...
diff --git a/samza-core/src/main/java/org/apache/samza/config/BlobStoreConfig.java b/samza-core/src/main/java/org/apache/samza/config/BlobStoreConfig.java index 769ba29ca6..691afd24a9 100644 --- a/samza-core/src/main/java/org/apache/samza/config/BlobStoreConfig.java +++ b/samza-core/src/main/java/org/apache/samza/confi...
9
7
5
[{"id": "G0", "claim": "FutureUtil is a use-case-agnostic util class and should not take a use-case-specific BlobStoreConfig parameter, so remove it from executeAsyncWithRetries.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the LinkedIn-internal...
null
apache__samza__1652
apache/samza
1,652
defect
d102d208e3bc356fbdd6027643661e7768ab2ed3
5416520dfcade31a54d0ee4996b76d963fac00de
Fix deadlock in StreamAppender
Issue: In StreamAppender, there is a synchronized block around setupSystem(), which should be called the first time (after loggingContext config is set up) any logger logs something. It could lead to a deadlock situation. Because if during the setupSystem(), any other threads try to do LOG.xxx(), they will be blocked...
diff --git a/samza-log4j2/src/main/java/org/apache/samza/logging/log4j2/StreamAppender.java b/samza-log4j2/src/main/java/org/apache/samza/logging/log4j2/StreamAppender.java index 42c62ca5bf..817bde1114 100644 --- a/samza-log4j2/src/main/java/org/apache/samza/logging/log4j2/StreamAppender.java +++ b/samza-log4j2/src/mai...
4
4
2
[{"id": "G0", "claim": "The initialization handling should also deal with failure semantics — e.g. set systemInitialized to true in a finally block or use an AtomicBoolean — because setupSystem provides no idempotence or retry-on-failure guarantees, so failure recovery should be handled explicitly too.", "category": "d...
null
apache__samza__1662
apache/samza
1,662
defect
03b187a6de0e123568f3ce3af94c946e6380fc8d
684c08cbb76c8222c34e02207a8893fd6e95df86
SAMZA-2778: Make AzureBlobOutputStream buffer initialization size configurable.
### Symptom: JVM crashes due to OOM exceptions. When the system has a large number of `AzureBlobWriterObjects`, the memory becomes heavily fragmented and can be susceptible to crashing when a new `AzureBlobOutputStream` is created. ### Cause: The crashes are caused by inefficient memory management when using th...
diff --git a/samza-azure/src/main/java/org/apache/samza/system/azureblob/AzureBlobConfig.java b/samza-azure/src/main/java/org/apache/samza/system/azureblob/AzureBlobConfig.java index 3026a89af5..37c6ebcf3b 100644 --- a/samza-azure/src/main/java/org/apache/samza/system/azureblob/AzureBlobConfig.java +++ b/samza-azure/sr...
5
3
2
[{"id": "G0", "claim": "The AzureBlobAvroWriter constructor that the PR marks @Deprecated should be removed rather than deprecated, since the factory handles passing in the buffer size and the class contract going forward requires the buffer size to be provided.", "category": "design", "verdict": "supported", "priority...
null
apache__samza__1667
apache/samza
1,667
defect
524d68705c23b94d9eecd16c83915e83e95ec67d
8f0c29746bbaa0af17c084d9bfd822c7fca9bba5
SAMZA-2781: Use framework thread to execute hand-offs and sub-DAG execution
**Description**: Currently, the operator implementation chains the future using synchronous APIs (thenCompose, thenApply) which results in execution of these method calls on the future completion thread which happens to be the user thread in case of asynchronous operators in application DAG. **Changes**: - Use thr...
diff --git a/samza-api/src/main/java/org/apache/samza/context/TaskContext.java b/samza-api/src/main/java/org/apache/samza/context/TaskContext.java index f50062ef19..9db6ba0fac 100644 --- a/samza-api/src/main/java/org/apache/samza/context/TaskContext.java +++ b/samza-api/src/main/java/org/apache/samza/context/TaskContex...
6
4
0
[{"id": "G0", "claim": "The local variable holding the operator thread pool should be named operatorExecutor (a naming nit).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Javadoc for getOperatorExecutor in TaskContext says the executor is f...
null
apache__samza__1677
apache/samza
1,677
defect
f8560047677c7661c4a69b49541464f73148f1b4
ed540df5cc2c5c4b0c2b6b766c9526e744504620
Add new SamzaApplicationMaster metric to track allocated containers buffered in AM
[LISAMZA-28234](https://jira01.corp.linkedin.com:8443/browse/LISAMZA-28234) Symptom: We have observed that Samza YARN AM requests 2-3x more containers than needed during job startup. Can cause temporary resource exhaustion in cluster when large jobs are launched, causing unrelated deployments to timeout/fail. Ch...
diff --git a/samza-yarn/src/main/java/org/apache/samza/job/yarn/YarnClusterResourceManager.java b/samza-yarn/src/main/java/org/apache/samza/job/yarn/YarnClusterResourceManager.java index c07a45b9a0..2436a81505 100644 --- a/samza-yarn/src/main/java/org/apache/samza/job/yarn/YarnClusterResourceManager.java +++ b/samza-ya...
2
1
0
[{"id": "G0", "claim": "The allocated-containers-in-buffer metric may also need to be decremented in stopStreamProcessor so it stays in sync with the allocatedResources map.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Documentation for the new allo...
null
apache__samza__1680
apache/samza
1,680
defect
1373db238683179123a15b246272cb0955f9b37c
69f229aed609cf14cc9510c1589c9f497a98c58f
SAMZA-2790: Cleanup RunLoop constructor explosion
**Description**: Runloop currently takes in lot of parameters and the constructor has grown to the point where it is unmanageable with multiple overloads. Introducing new configuration requires lot of updates to existing tests and components even if the parameters have no effect on all of the usages. With this PR, ...
diff --git a/samza-core/src/main/java/org/apache/samza/config/RunLoopConfig.java b/samza-core/src/main/java/org/apache/samza/config/RunLoopConfig.java new file mode 100644 index 0000000000..9c5e6f1977 --- /dev/null +++ b/samza-core/src/main/java/org/apache/samza/config/RunLoopConfig.java @@ -0,0 +1,87 @@ +/* + * Licens...
3
3
0
[{"id": "G0", "claim": "A comment should be added on the new SideInputRunLoopConfig class explaining that side inputs process only a single message per task (max concurrency 1) and have no windowing, so future readers have the context.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "i...
null
apache__samza__1681
apache/samza
1,681
defect
1373db238683179123a15b246272cb0955f9b37c
797d82bbc5da781384cc8846d5d2160fb1db5d97
SAMZA-2791: Introduce callback timeout specific to watermark messages
**Description**: Currently, watermark is implemented as a special message within Samza. However, in terms of processing semantics, it shares similar behavior to normal messages processed by the task. i.e., `task.callback.timeout.ms`, a configuration to tune the time until which runloop waits for a message to be proces...
diff --git a/docs/learn/documentation/versioned/jobs/configuration-table.html b/docs/learn/documentation/versioned/jobs/configuration-table.html index 18a782f497..296eef83cc 100644 --- a/docs/learn/documentation/versioned/jobs/configuration-table.html +++ b/docs/learn/documentation/versioned/jobs/configuration-table.ht...
1
1
1
[{"id": "G0", "claim": "The new unconditional watermark-timeout precedence can impact existing drain behavior (drain defaulting to task.callback.ms on watermarks when the drain timeout is set higher); the reviewer asks to consider taking Max(watermark timeout, drain timeout) when both are enabled, or at least to state ...
null