摘要:
1、运行结果错误。 比如 i++ 操作,表面上看只是一行代码,但实际上它并不是一个原子操作,它的执行步骤主要分为三步,而且在每步操作之间都有可能被打断。 第一个步骤是读取;第二个步骤是增加;第三个步骤是保存。 public class WrongResult { public static void 阅读全文
摘要:
1、使用 BlockingQueue ArrayBlockingQueue 完成了很多工作,比如队列满了就去阻塞生产者线程,队列有空就去唤醒生产者线程等。 import java.util.concurrent.*; public class MyProdCons { public static v 阅读全文
摘要:
For Flink applications to run reliably at large scale, two conditions must be fulfilled: The application needs to be able to take checkpoints reliably 阅读全文
摘要:
Motivation In Flink’s checkpointing, each task produces a snapshot of its state that is then written to a distributed store. Each task acknowledges a 阅读全文
摘要:
Limitations of Hadoop Hadoop can perform only batch processing, and data will be accessed only in a sequential manner. That means one has to search th 阅读全文
摘要:
Incremental Checkpoints Recovery time of incremental checkpoints may be longer or shorter compared to full checkpoints. If your network bandwidth is t 阅读全文
摘要:
A core element in Flink’s distributed snapshotting are the stream barriers. These barriers are injected into the data stream and flow with the records 阅读全文