File tree Expand file tree Collapse file tree 13 files changed +17
-13
lines changed
flink-connectors/flink-connector-base/src/test/java/org/apache/flink/connector/base/sink
flink-contrib/flink-connector-wikiedits/src/test/java/org/apache/flink/streaming/connectors/wikiedits
flink-file-sink-test/src/main/java/org/apache/flink/connector/file/sink
flink-stream-state-ttl-test/src/main/java/org/apache/flink/streaming/tests
flink-rpc/flink-rpc-core/src/main/java/org/apache/flink/runtime/rpc
flink-state-backends/flink-statebackend-changelog/src/test/java/org/apache/flink/state/changelog
main/java/org/apache/flink/table/gateway/rest/handler
test/java/org/apache/flink/table/gateway/rest
flink-table-runtime/src/test/java/org/apache/flink/table/runtime/operators/deduplicate Expand file tree Collapse file tree 13 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 18
18
package org .apache .flink .connector .base .sink ;
19
19
20
20
import org .apache .flink .api .common .restartstrategy .RestartStrategies ;
21
- import java .time .Duration ;
22
21
import org .apache .flink .runtime .client .JobExecutionException ;
23
22
import org .apache .flink .runtime .testutils .MiniClusterResourceConfiguration ;
24
23
import org .apache .flink .streaming .api .environment .StreamExecutionEnvironment ;
29
28
import org .junit .jupiter .api .extension .ExtendWith ;
30
29
import org .junit .jupiter .api .extension .RegisterExtension ;
31
30
31
+ import java .time .Duration ;
32
+
32
33
import static org .assertj .core .api .Assertions .assertThatThrownBy ;
33
34
34
35
/** Integration tests of a baseline generic sink that implements the AsyncSinkBase. */
Original file line number Diff line number Diff line change 18
18
19
19
package org .apache .flink .streaming .connectors .wikiedits ;
20
20
21
- import java .time .Duration ;
22
21
import org .apache .flink .streaming .api .functions .source .SourceFunction ;
23
22
import org .apache .flink .streaming .api .watermark .Watermark ;
24
23
import org .apache .flink .testutils .junit .RetryOnFailure ;
31
30
32
31
import java .net .InetSocketAddress ;
33
32
import java .net .Socket ;
33
+ import java .time .Duration ;
34
34
import java .util .Objects ;
35
35
import java .util .concurrent .ArrayBlockingQueue ;
36
36
import java .util .concurrent .BlockingQueue ;
Original file line number Diff line number Diff line change 22
22
import org .apache .flink .api .common .serialization .Encoder ;
23
23
import org .apache .flink .api .common .state .ListState ;
24
24
import org .apache .flink .api .common .state .ListStateDescriptor ;
25
- import java .time .Duration ;
26
25
import org .apache .flink .api .common .typeutils .base .IntSerializer ;
27
26
import org .apache .flink .api .java .tuple .Tuple2 ;
28
27
import org .apache .flink .api .java .utils .ParameterTool ;
40
39
import org .apache .flink .streaming .api .functions .source .SourceFunction ;
41
40
42
41
import java .io .PrintStream ;
42
+ import java .time .Duration ;
43
43
import java .util .Collections ;
44
44
45
45
/**
Original file line number Diff line number Diff line change 18
18
19
19
package org .apache .flink .streaming .tests ;
20
20
21
- import java .time .Duration ;
22
21
import org .apache .flink .api .java .utils .ParameterTool ;
23
22
import org .apache .flink .configuration .ConfigOption ;
24
23
import org .apache .flink .configuration .ConfigOptions ;
25
24
25
+ import java .time .Duration ;
26
+
26
27
class TtlTestConfig {
27
28
private static final ConfigOption <Integer > UPDATE_GENERATOR_SRC_KEYSPACE =
28
29
ConfigOptions .key ("update_generator_source.keyspace" ).intType ().defaultValue (100 );
Original file line number Diff line number Diff line change 19
19
package org .apache .flink .runtime .rpc ;
20
20
21
21
import org .apache .flink .annotation .VisibleForTesting ;
22
- import java .time .Duration ;
23
22
import org .apache .flink .configuration .Configuration ;
24
23
import org .apache .flink .util .AutoCloseableAsync ;
25
24
import org .apache .flink .util .concurrent .FutureUtils ;
26
25
27
26
import javax .annotation .Nullable ;
28
27
28
+ import java .time .Duration ;
29
29
import java .util .ArrayList ;
30
30
import java .util .Arrays ;
31
31
import java .util .Collection ;
Original file line number Diff line number Diff line change 19
19
package org .apache .flink .state .changelog ;
20
20
21
21
import org .apache .flink .api .common .state .StateTtlConfig ;
22
- import java .time .Duration ;
23
22
import org .apache .flink .api .common .typeutils .TypeSerializer ;
24
23
import org .apache .flink .configuration .Configuration ;
25
24
import org .apache .flink .configuration .StateLatencyTrackOptions ;
40
39
41
40
import java .io .IOException ;
42
41
import java .nio .file .Path ;
42
+ import java .time .Duration ;
43
43
44
44
/** Tests for {@link ChangelogStateBackend} delegating {@link EmbeddedRocksDBStateBackend}. */
45
45
public class ChangelogDelegateEmbeddedRocksDBStateBackendTest
Original file line number Diff line number Diff line change 19
19
package org .apache .flink .state .changelog ;
20
20
21
21
import org .apache .flink .api .common .state .StateTtlConfig ;
22
- import java .time .Duration ;
23
22
import org .apache .flink .api .common .typeutils .TypeSerializer ;
24
23
import org .apache .flink .configuration .Configuration ;
25
24
import org .apache .flink .configuration .StateLatencyTrackOptions ;
41
40
42
41
import java .io .IOException ;
43
42
import java .nio .file .Path ;
43
+ import java .time .Duration ;
44
44
45
45
/** Tests for {@link ChangelogStateBackend} delegating {@link FsStateBackend}. */
46
46
public class ChangelogDelegateFileStateBackendTest extends FileStateBackendTest {
Original file line number Diff line number Diff line change 19
19
package org .apache .flink .state .changelog ;
20
20
21
21
import org .apache .flink .api .common .state .StateTtlConfig ;
22
- import java .time .Duration ;
23
22
import org .apache .flink .api .common .typeutils .TypeSerializer ;
24
23
import org .apache .flink .configuration .Configuration ;
25
24
import org .apache .flink .configuration .StateLatencyTrackOptions ;
38
37
39
38
import java .io .IOException ;
40
39
import java .nio .file .Path ;
40
+ import java .time .Duration ;
41
41
42
42
/** Tests for {@link ChangelogStateBackend} delegating {@link HashMapStateBackendTest}. */
43
43
public class ChangelogDelegateHashMapTest extends HashMapStateBackendTest {
Original file line number Diff line number Diff line change 19
19
package org .apache .flink .state .changelog ;
20
20
21
21
import org .apache .flink .api .common .state .StateTtlConfig ;
22
- import java .time .Duration ;
23
22
import org .apache .flink .api .common .typeutils .TypeSerializer ;
24
23
import org .apache .flink .configuration .Configuration ;
25
24
import org .apache .flink .configuration .StateLatencyTrackOptions ;
41
40
42
41
import java .io .IOException ;
43
42
import java .nio .file .Path ;
43
+ import java .time .Duration ;
44
44
45
45
/** Tests for {@link ChangelogStateBackend} delegating {@link MemoryStateBackend}. */
46
46
public class ChangelogDelegateMemoryStateBackendTest extends MemoryStateBackendTest {
Original file line number Diff line number Diff line change 18
18
19
19
package org .apache .flink .table .gateway .rest .handler ;
20
20
21
- import java .time .Duration ;
22
21
import org .apache .flink .runtime .rest .handler .AbstractHandler ;
23
22
import org .apache .flink .runtime .rest .handler .HandlerRequest ;
24
23
import org .apache .flink .runtime .rest .handler .RestHandlerException ;
39
38
import javax .annotation .Nonnull ;
40
39
import javax .annotation .Nullable ;
41
40
41
+ import java .time .Duration ;
42
42
import java .util .Map ;
43
43
import java .util .concurrent .CompletableFuture ;
44
44
Original file line number Diff line number Diff line change 18
18
19
19
package org .apache .flink .table .gateway .rest ;
20
20
21
- import java .time .Duration ;
22
21
import org .apache .flink .configuration .Configuration ;
23
22
import org .apache .flink .runtime .rest .messages .MessageHeaders ;
24
23
import org .apache .flink .runtime .rest .messages .MessageParameters ;
38
37
import java .io .IOException ;
39
38
import java .net .InetAddress ;
40
39
import java .net .InetSocketAddress ;
40
+ import java .time .Duration ;
41
41
import java .util .concurrent .CompletableFuture ;
42
42
43
43
import static org .apache .flink .table .gateway .rest .util .SqlGatewayRestEndpointTestUtils .getBaseConfig ;
Original file line number Diff line number Diff line change 18
18
19
19
package org .apache .flink .table .runtime .operators .deduplicate ;
20
20
21
- import java .time .Duration ;
22
21
import org .apache .flink .table .data .RowData ;
23
22
import org .apache .flink .table .runtime .generated .GeneratedRecordEqualiser ;
24
23
import org .apache .flink .table .runtime .generated .RecordEqualiser ;
32
31
import org .apache .flink .table .types .logical .VarCharType ;
33
32
import org .apache .flink .table .utils .HandwrittenSelectorUtil ;
34
33
34
+ import java .time .Duration ;
35
+
35
36
/** Base class of tests for all kinds of processing-time DeduplicateFunction. */
36
37
abstract class ProcTimeDeduplicateFunctionTestBase {
37
38
Original file line number Diff line number Diff line change 18
18
19
19
package org .apache .flink .table .runtime .operators .deduplicate ;
20
20
21
- import java .time .Duration ;
22
21
import org .apache .flink .api .common .typeutils .TypeSerializer ;
23
22
import org .apache .flink .streaming .api .operators .KeyedProcessOperator ;
24
23
import org .apache .flink .streaming .util .KeyedOneInputStreamOperatorTestHarness ;
34
33
import org .apache .flink .table .types .logical .VarCharType ;
35
34
import org .apache .flink .table .utils .HandwrittenSelectorUtil ;
36
35
36
+ import java .time .Duration ;
37
+
37
38
/** Base class of tests for all kinds of row-time DeduplicateFunction. */
38
39
abstract class RowTimeDeduplicateFunctionTestBase {
39
40
You can’t perform that action at this time.
0 commit comments